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):
And... Why the hell is there a <td> inside a paragraph without a <tr> wrapping it, or even a table-tag?
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.
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.
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.