1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Please Help

Discussion in 'HTML & Website Design' started by mrcountry, May 20, 2016.

  1. #1
    Im trying to add a rollover to a lightbox image, can someone tell me if this is possible and if so what am i doing wrong. The lightbox images are working correctly but i cant get the rollover to work. Please Help!

    <td width="260">
    <div align="left">
    <a onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Cowgirl-10','','images/Banners/Green-Screen-Banner-Grey.png',1)">
    <a href="images/gallery/main/Vicki Lee Cowgirl-10.jpg" rel="lightbox [main]" title="This Needs A Description">
    <img src="images/gallery/thumb/Vicki Lee Cowgirl-10-thumb.jpg" width="260" height="200" alt="** PLEASE DESCRIBE THIS IMAGE **">
    </a>
    </div>
    </td>
    </p>
    </div>
    Code (markup):

     
    Last edited by a moderator: May 20, 2016
    mrcountry, May 20, 2016 IP
  2. domainmarket.io

    domainmarket.io Well-Known Member

    Messages:
    74
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    100
    #2
    Do you have a URL you could share? And what are you wanting to display on the rollover?
     
    domainmarket.io, May 20, 2016 IP
  3. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #3
    And... Why the hell is there a <td> inside a paragraph without a <tr> wrapping it, or even a table-tag?
     
    PoPSiCLe, May 20, 2016 IP
  4. sarahk

    sarahk iTamer Staff

    Messages:
    28,500
    Likes Received:
    4,460
    Best Answers:
    123
    Trophy Points:
    665
    #4
    MM_swapImage
    seeing that puts the brakes on for me. Messing with dreamweaver output. Why not just start over and do it properly.

    FWIW I wrapped some bbcode around the code segment and added some line breaks. First rule of html is to make sure if you open something like <a> that you close it. You don't therefore problems are inevitable.
     
    sarahk, May 20, 2016 IP
  5. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #5
    As others have mentioned, the HTML is gibberish, you look to be using scripttardery to possibly do CSS' job, and all the other miserable failings that prove "the only thing you can learn from Dreamweaver is how NOT to build a website"

    I'd have to see live what it is you are TRYING to do, but I very much doubt this is tabular data, your nesting orders make no sense, good scripting if needed would hook the markup, and to be frank, if you use the outdated onevent attributes, you're probably doing something wrong.
     
    deathshadow, May 21, 2016 IP
  6. Blizzardofozz

    Blizzardofozz Well-Known Member

    Messages:
    132
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    118
    #6
    The script should be separated from the HTML. We can't see what's wrong with the code if we can't see it. Maybe the functions are not working and we can't see them.

    There is a link over link and they are not closed even properly. Why would you need that? Sorry but the HTML is bad and the javascript is bad.
     
    Blizzardofozz, May 23, 2016 IP