|
little javascript help please
|
View this Thread in Original format
| dukes |
see if you have in an anchor with
onmouseover="___;"
and a javascript variable
var test=0
what do i have to put in the space so when the mouse goes over the value "test" changes from a 0 to a 1?
chears for any help
dukes |
|
|
| Intense_Sounds |
function foo()
{
var test=0
}
onmouseover="foo()"
something like that, basically call a function on mouseover |
|
|
| itsTrueSonic |
probably i think the best thing to do is to create a member function, like called increment() like this :
funtion increment() { test = 1; return true; }
:conf: :conf: :conf:
and add it like this :
onmouseover=************increment() |
|
|
|
|