Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

making a image rollover effect


vadertech

Recommended Posts

Posted

Here is the code for my image below.

 

<?php

echo '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'home.jpg', HEADER_TITLE_HOME) . '</a>';

?>

 

I need some help adding some code to make rollover effect on that image.

Posted

have you tired using your style sheet?? Im not 100% what you are doing, so this may not work,but basically if you add this to the html it should work!

 

Try this

<!--

a { color: #666600; text-decoration: none; }

a:hover { color: #999900; text-decoration: underline; }

//-->

 

Or indeed add it to the style sheet, and then call it. (dont ask me how I dont know enough about php or os to help)

Posted

That would change the style for a text link but not a image.

 

If you do a search for "javascript rollover" you will find heaps of sources on how to make them.

You would also need a source for the second image (which OS doesn't provide, you could just hard code.. )

 

Its not a easy one to answer without taking some time to write the mod..

 

But if you have some basic php/html skills search for "javascript rollover" in google

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...