[thelist] SetTimeout & ClearTimeout
Gerenday, Perry (P.)
pgerenda at visteon.com
Wed Sep 12 11:56:28 CDT 2001
Just a quick response here - no real time to explorer further.
clearTimeout(time) ---- don't capitalize the "c".
Perry Gerenday, Visual Communications Artist
www.virtually-artistic.com
> -----Original Message-----
> From: jelle desramaults [mailto:nsg_chong at hotmail.com]
> Sent: Wednesday, September 12, 2001 8:24 PM
> To: thelist at lists.evolt.org
> Subject: [thelist] SetTimeout & ClearTimeout
>
>
> evolters,
>
> I hava a little timeout that should run for 0.5 seconds
> normally but should
> stop on an event.
>
> I just prepared a little bit of code for you to comment ...
>
> ------------
>
> var time
>
> function hideTimed(id) {
>
> if (ns4) time = setTimeout("document.layers['"+id+"'].visibility =
> 'hide';",500)
> else if (ie4) time =
> setTimeout("document.all['"+id+"'].style.visibility =
> 'hidden';",500)
> else if (ns6) time =
> setTimeout("document.getElementById('"+id+"').style.visibility =
> 'hidden';",500)
>
> ClearTimeout(time)
>
> }
>
> ------------
>
> this one gives me a nasty little error ["Object Expected"] ,
> pointing to the
> line containing
> the clearTimeout. (only in homesite though, online i there's
> no error bu
> tthe cleartimeout
> just doesn't excecute) I'm kinda stuck, any insight at all
> would be very
> nice.
>
> if anybody feels like checking the whole document :
> http://www.sitekick.be/testarea/b3_nav2.html
>
> Jelle Desramaults
> www.sitekick.be
More information about the thelist
mailing list