Posts: 164
Name: James
Location: marbella & surrey
|
my js is even worse than my c which is terrible. that in mind could anyone shed some light?
i have an image which has a mouseover event like this:
Code:
onmouserover="my_function(this.name);"
and a function something like this:
Code:
function my_function(object_name) { ... }
incidentally, or not, this function is in an external .js file
the function does some stuff then sets a timer and reiterates like so:
Code:
timer = setTimeout('my_function(object_name)', 10);
but for some reason the object_name is null on the second iteration.
i have also tried this.
Code:
timer = setTimeout('my_function(' + object_name + ')', 10);
any one have any idea why this might occur?
__________________
Please login or register to view this content. Registration is FREE - private villas direct from the owners - travel links always needed.
|