I know this is stupid coming from me...

admin

Administrator
Staff member
But I never learned how the "function do(something)" worked. In rollover functions there's code like this...

function rollOver(imgName) {
//rollover function
}
and the image...

<img src='http://www.webdeveloper.com/forum/archive/index.php/img.jpg' onmouseover="rollOver('img1')">

What I don't understand is how "imgName" is passed through the function inside of the parenthesis. There are other functions like splitUp(str, obj, by). How does that work? I honestly never learned how there is this "something" that is sometimes needed in functions and put inside of the parenthesis on the function. I never learned what that was for or how to use it. If anyone can help, I'd appreciate it! Thanks.
 
Back
Top