Closed Thread Icon

Topic awaiting preservation: function calling (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=7969" title="Pages that link to Topic awaiting preservation: function calling (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: function calling <span class="small">(Page 1 of 1)</span>\

 
Ensabanur
Bipolar (III) Inmate

From: KY
Insane since: Nov 2001

posted posted 12-06-2001 06:45

I'm trynig to create atimed fade out of text when a mouse is taken away from an <a> tag. That's no problem (I'm getting the hang of the basic js programming) but while the timer is going nothing happens when the mouse is over the other <a> tags. Each <a> tag calls its own function from a single external js script. Is there a way to add to the timer function that says if any of the other onMouseOver functions are called then ignore the timer?

You can check out what I'm talknig about here


Ensa

Hello! My name is Indigo Montoya... You kill my father... Prepare to DIE!!

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 12-06-2001 08:54

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 12-06-2001 14:10

Whenever you set a timer using setTimeout() you can assign it to an id:

mytimer = setTimeout( ... )

Then if you need to cancel that original timer function for any reason, like another mouseover, you can clear it:

clearTimeout( mytimer )

Does this sound like what you wanted to do?

Ensabanur
Bipolar (III) Inmate

From: KY
Insane since: Nov 2001

posted posted 12-06-2001 17:23

bugimus, that sound like what I want to do, but my timer function didn't use setTimeout at all it was a for loop "(i=5000;i>=0;i=i-1) was what I was using. then I set the innerHTML of my div to nothing so the text would disappear. How would I use the setTimeout to do it instead?

Hello! My name is Indigo Montoya... You kill my father... Prepare to DIE!!

« BackwardsOnwards »

Show Forum Drop Down Menu