gary.chan-e-crusade
-
6/16/2009 2:26:25 AM
How to build a Rollover button?
Hi,
I wanna build a rollover button, I codes as belows:
<script language="Javascript"> if (document.images) { button1 = new Image button2 = new Image
button1.src = '<%# GetFileUrl("Image") %>' button2.src = '<%# GetFileUrl("RolloverImage") %>' } </script>
<a href="<%# MyFunctions.ReturnUrlSrc(Eval("Link").ToString()) %>" onmouseover="document.rollover.src=button2.src" onmouseout="document.rollover.src=button1.src"><img src="<%# GetFileUrl("Image") %>" border=0 name="rollover"></a>
However, it is not work and no error message.
Please advices
|