PDA

View Full Version : Email Riddler - help with rollover image



Dave25
01-03-2008, 06:00 PM
Hello - Could somebody help me with Email Riddler and getting a rollover image to work? http://www.dynamicdrive.com/emailriddler/

Thanks very much,

Dave

Here is the code, in Dreamweaver, I am usings but just can't seem to figure out how to get the rollover effect to work.

<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image19','','images/learndomain2.gif',1)"><img src="images/learndomain.gif" alt="learn domain name" name="Image19" width="281" height="30" border="0" id="Image19" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image19','','images/learnwebhost2.gif',1)"></a>

Also, tried help from previous post without any luck.
http://www.dynamicdrive.com/forums/showthread.php?t=17604&highlight=email+riddler+image

ddadmin
01-03-2008, 11:26 PM
Well, by default, the script generates a line like the below at the very end:


document.write('<a href="mailto:'+encryptedemail_id36+'">Contact Us</a>')

You can change that to work with Dreamweaver's rollover image code like so:


document.write('<a href="mailto:'+encryptedemail_id36+'" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image19\',\'\',\'images/learndomain2.gif\',1)"><img src="images/learndomain.gif" alt="learn domain name" name="Image19" width="281" height="30" border="0" id="Image19" /></a>')

Note the backslash (\) proceeding each of the single quotes within the code.

Dave25
01-12-2008, 06:50 AM
Thanks very much, it works perfectly now!:)