Tuesday, July 28, 2009

How do you toggle images with HTML not javascript?

Hi,





Does anyone know how to toggle images with HTML and not with javascript? Or can this even be done without javascript? Hope there is an expert out there who can help. Thanks!

How do you toggle images with HTML not javascript?
you need 3 images. one is transparent gif.





%26lt;style type="text/css"%26gt;


.pict


{


background-image: url( Flowers-pink.jpg);


background-repeat: no-repeat;


}





.pict:hover


{


background-image:url( Flowers-red.jpg);


}


%26lt;/style%26gt;





then


%26lt;img class="pict" src="TransparentPixel.gif" width="48" height="48" alt="" /%26gt;
Reply:to put an image in with html is





%26lt;img src="yourimagefile"%26gt;





but if you could be more accurate it would help...


No comments:

Post a Comment