View Full Version : Onclick image swap?
AshleyQuick
12-19-2002, 11:51 PM
Can someone post some code for an image swap that you have to click instead of rollover?
Thanks
Ash
joeframbach
12-19-2002, 11:55 PM
do you already have a rollover script? just change onMouseOver to onClick
AshleyQuick
12-20-2002, 12:00 AM
ok but what about onmouseout?
joeframbach
12-20-2002, 12:06 AM
var toggled=false
onClick=function()
{
if(toggled)
{
toggled=false
onMouseOut function
}
else
{
toggled=true
onMouseOver function
}
}
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.