robino
11-22-2002, 07:53 AM
Hello!
I tried to flip some images in a HTML page. It worked fine but if I put it into a frame, images are all the time dowloaded from server.
Here's my source code:
<html>
<head>
<script language="JavaScript">
<!--
btn_unsel=new Image();
btn_unsel.src="btn_unsel.gif";
btn_sel=new Image();
btn_sel.src="btn_sel.gif";
//-->
</script>
</head>
<body>
<a href="whatever.html" target="main_frame"
onmouseover="btn.src='btn_sel.gif'"
onmouseout="btn.src='btn_unsel.gif'">
<img name="btn" border=0 src="btn_unsel.gif">
</a>
</body>
</html>
Any idea? Thanks.
Robino
I tried to flip some images in a HTML page. It worked fine but if I put it into a frame, images are all the time dowloaded from server.
Here's my source code:
<html>
<head>
<script language="JavaScript">
<!--
btn_unsel=new Image();
btn_unsel.src="btn_unsel.gif";
btn_sel=new Image();
btn_sel.src="btn_sel.gif";
//-->
</script>
</head>
<body>
<a href="whatever.html" target="main_frame"
onmouseover="btn.src='btn_sel.gif'"
onmouseout="btn.src='btn_unsel.gif'">
<img name="btn" border=0 src="btn_unsel.gif">
</a>
</body>
</html>
Any idea? Thanks.
Robino