August 21st, 2013, 10:24 AM
could somebody please explain to me why in the image tag bigImg(this) has to use the word "this" inside the parentheses? Thanks
<img onmouseover="bigImg(this)" onmouseout="normalImg(this)" border="0" src="smiley.gif" alt="Smiley" width="32" height="32">
<p>The function bigImg() is triggered when the user moves the mouse pointer over the image.</p>
<p>The function normalImg() is triggered when the mouse pointer is moved out of the image.</p>
August 21st, 2013, 10:48 AM
you are passing the img as parameter to the function bigImg() otherwise the function wont know which image/element to modify.
but you can see this is very complicated..
PS> it is time you started learning JQUERY OR YII etc
August 21st, 2013, 12:08 PM
August 23rd, 2013, 04:37 AM
Why do you suggest that?
Originally Posted by paulh1983