|
Posted by Edwin van der Vaart on 05/20/06 19:43
KiwiBrian wrote:
> On a web page I have a graphic for a Shopping Cart Submit button.
> It is within a form.
> I would like to perform an image swap to an identical graphic of a different
> colour when I hover over the button.
> Can anyone show me how to do this, or point me to an implementation.
> My present code is:-
> <input type="image" name="submit" src="images/addtocart1.gif">
> This changes the cursor to a hand, and operates the button when clicked.
> I just want to add the image swap on hover. Must work identically on IE6 and
> Firefox.
You can use stylesheet for the hover effect for the button e.g.
input.button {
background-color: url(images/addtocart1.gif) #ff6666;
color: #ffffff;}
input.button:hover {
color : #000000;
background: images/addtocart2.gif) #ffcc99;}
<input class="button" type="submit" name="submit">
--
Edwin van der Vaart
http://www.semi-conductor.nl/ Links to Semiconductors sites
http://www.evandervaart.nl/ Edwin's persoonlijke web site
Explicitly no permission given to Forum4Designers, onlinemarketingtoday,
24help.info, issociate.de and software-help1.org to duplicate this post.
Navigation:
[Reply to this message]
|