Click here to Skip to main content
15,746,302 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I have a function
<IMG id="imgClose" onmouseover="javascript:mouseOver(this,'28 outerClose_on.GIF')" title="Close (Esc)"
							style="CURSOR: hand" onclick="javascript:CloseWindow();" tabIndex="5"  önmouseout="javascript:mouseOut(this,'28 outerClose_off.GIF')"
							src="../AxCommon/Images/28 outerClose_off.GIF" tag="4">

function mouseOver(img,name)
            img.src = '../AxCommon/Images/' + name;
   = 'hand';

        function mouseOut(img,name)
            img.src = '../AxCommon/Images/' + name;
   = 'default';

I have got an error wrong parameters when javascript function reads.

1 solution

I did not figure out what's the problem, just because there is a very convenient way of doing such things, with jQuery:[^].

If you need to learn jQuery (highly recommended), please see:[^],[^],[^],[^].

Share this answer
Espen Harlinn 16-Aug-12 10:28am    
Good idea :)
Sergey Alexandrovich Kryukov 16-Aug-12 12:34pm    
Thank you, Espen.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900