Java Script error?
am new to ASP.net and i have created a web user control. I want a welcome image and some buttons to be used in every form, so i have place it in the .ASCX. Now on the mouse over event of the button i want the button to be highlighted
so i have placed small javascript code in the <TD> of a table such as below:
<TD> <img src="images/btn_home.jpg" name="btn_home" width="52" height="30" id="btn_home" onMouseOver="MM_swapImage('btn_home','','images/btn_home_dn.jpg',1)" onMouseOut="MM_swapImgRestore()">
</TD>
But when the proj. is executed and i move the cursor on the button i receive an error message "Microsoft JScript runtime error: object expected".
I Have no idea about the error.
It would be great if any one could assist me on my mistake and give me a solution or a better alternative
|