1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Please Help Me With This Code

Discussion in 'HTML & JavaScript' started by Empire007, Jul 2, 2013.

  1. Empire007

    Empire007 Regular Member

    Joined:
    Jul 22, 2012
    Messages:
    426
    Likes Received:
    67
    okay, am having a lil trouble using this code. The code works fine but i need a lil help to make it work best for me. Here is the code


    Okay, here is my problem with this code. its suppose to make the image i want cover a transparent javascript which could be an ad. e.g. adsense

    If this is the image that will cover the javascript http : //YOURDOMAINN. com/YOURIMAGE.gif
    and this is the javascript here ------> SCRIPT GOES HERE

    how can i make that its only that image (http : //YOURDOMAINN. com/YOURIMAGE.gif) that is used on top the script, because when i wish to add another image, it simply goes on top the image eg.

    this image http : //YOURDOMAINN. com/YOURIMAGE.gif is on The javascript i put in (SCRIPT GOES HERE)

    if i want to add another image, it just comes on top of this http : //YOURDOMAINN. com/YOURIMAGE.gif

    i am kinda confused there. i just want to be able to put the image on the javascript and also add more images on the html website. thanks. will be waiting for help
     
  2. Conor

    Conor Jr. VIP Jr. VIP

    Joined:
    Nov 7, 2012
    Messages:
    3,363
    Likes Received:
    5,424
    Gender:
    Male
    Location:
    South Africa
    Home Page:
  3. Empire007

    Empire007 Regular Member

    Joined:
    Jul 22, 2012
    Messages:
    426
    Likes Received:
    67
    I don't want the image to be in the same position. I just want one image to be there. while I can place another image anywhere without it shifting to where the image + script is supposed to be.
     
  4. Empire007

    Empire007 Regular Member

    Joined:
    Jul 22, 2012
    Messages:
    426
    Likes Received:
    67
    can anyone please help me
     
  5. flexnds

    flexnds Power Member

    Joined:
    Jan 4, 2010
    Messages:
    643
    Likes Received:
    680
    Occupation:
    Internet Marketing, Web development, Internet Repu
    Location:
    AZ
    Well you styled the img tag completely so each image you add is going to use the same css. YOu need to make a specific class like this

    HTML:
    <style>
    iframe{
    opacity: 0;
    border: 0px none transparent;
    position: absolute;
    top: 0px;
    left: 0px;
    height: 300px;
    width: 250px;
    filter:alpha(opacity=0);
    }
    .something{
    position: absolute;
    top: -50px;
    left: 0px;
    height: 475px;
    width: 342px;
    }
    img {
    
    
    }
    </style>
    </head>
    <body>
    <div>
    <img class="something" src="http : //YOURDOMAINN. com/YOURIMAGE.gif"/>
    SCRIPT GOES HERE
    <center>your t5ext here.<br>some text here
    toooooooooooooooooo !!!
    </div>
    </body>
     
  6. Empire007

    Empire007 Regular Member

    Joined:
    Jul 22, 2012
    Messages:
    426
    Likes Received:
    67
    thanks, alot it now works. thank you so much. :D now back to work.
     
  7. Empire007

    Empire007 Regular Member

    Joined:
    Jul 22, 2012
    Messages:
    426
    Likes Received:
    67
    is there a way that, i can make this image do two things at the same time. i know that


    <img class="something" src="http : //YOURDOMAINN. com/YOURIMAGE.gif"/> will make the user click the javascript, but is there a way that it will open another tab, like a pop up and redirect to another link again.
     
  8. royserpa

    royserpa Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 28, 2011
    Messages:
    4,649
    Likes Received:
    3,494
    Gender:
    Male
    Occupation:
    Negative Options aka Rebills!
    Location:
    Royserpa
    Home Page:
    maybe adding to the code sth like: target=_blank ??

    So code would be:

    Code:
    <a href="YOURLINKHERE.com" target=_blank><img class="something src="YOURIMAGEURL.png"></a>
    
     
  9. instalikes

    instalikes Newbie

    Joined:
    Jul 5, 2013
    Messages:
    15
    Likes Received:
    3
    Yes, but put the target='_blank' in paranetheses and youll be good to go =)
     
  10. oozyluce

    oozyluce Regular Member

    Joined:
    Jan 26, 2013
    Messages:
    277
    Likes Received:
    231
    Occupation:
    IT Coordinator, Senior Network Administrator
    Location:
    http://www.gaben.tv/
    Home Page:
    This is a poor man's version of a clickjack script and it WILL get you banned if you indend to use this with adsense.. No matter how good your cloaker is.