PDA

View Full Version : rollover buttons in photoshop


voiper99
05-05-2006, 09:22 PM
I am having difficulty getting rollover buttons to work. I have both jpg files uploaded into soho, one being rollover.jpg and the other rollover-01.jpg. They are not working, any ideas why?

lwyau
05-05-2006, 11:26 PM
Roll over requires javascript. What is your code?

jcnelson
05-06-2006, 02:13 AM
Just an idea, when we have done rollover buttons, we put the down image into the root folder instead of the template. Sure we could rewrite the javascript to include the path back to the template folder, however I just found it quicker to ftp the images into the public_html folder.

Mike Armas
05-06-2006, 09:44 AM
what is the code for you rollover. I have done it in the template and have not use java.

here is my code for this site.

http://www.preferredtesting.com/


<a href="index.php?PHPSESSID=e2f33b1b9d4bfba72305793240cdb6 f9" onMouseOver="MM_swapImage('home_top','','images/home_top-over.gif',1)" onMouseOut="MM_swapImgRestore()"><img name="home_top" src="images/home_top.jpg" width="65" height="31" border="0" alt="Home">
</a>

you can do it this way and not use java but you have to tell the path of where the image is.

I have other templates that have the images all the way in soho templates.

lwyau
05-06-2006, 09:58 AM
Well, MM_swapImage and MM_swapImgRestore are in fact javascripts which get automatically included by Soho.

Mike Armas
05-06-2006, 10:11 AM
see i didn't now that.