1 reply [Last post]
roseline
Offline
newbie
Last seen: 16 years 7 weeks ago
Joined: 2004-08-05
Posts: 2
Points: 0

hi,

is it possible to write that in CSS? Calling a javascript function for a rollover image. I have a multiple CSS website and the images are not the same in each template so I have to try to call them in CSS file.
_________

<script language="JavaScript">SecondImage00=image1.jpg';</script><a href="index.php" onMouseOver="{OrigImage00=img00.src; img00.src=SecondImage00} " onMouseOut="img00.src=OrigImage00"><img alt="" name="img00" border="0" src="image2" width="200" height="20" onLoad="TempImage00=new Image(0,0); TempImage00.src=SecondImage00"></a>

____________

Thanks

Roseline Paquin
Montréal, Canada

chris hester
Offline
Regular
UK
Last seen: 16 years 46 weeks ago
UK
Joined: 2003-11-07
Posts: 21
Points: 0

Javascript in CSS definition

Sure. The details are on my site in a related article I wrote:

http://www.designdetector.com/archives/04/07/OperaStickyNotes.php