[thelist] Javascript Timeouts

Joel Konkle-Parker jjk3 at msstate.edu
Mon Jun 24 21:01:01 CDT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks for the ideas, I appreciate them. What do you mean by
assigning the timing to a variable? What do I do with it after I
assign it?

- -joeljkp

- ---------------------------------------
http://www.ballsome.com

- -----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Ben Henick
Sent: Monday, June 24, 2002 4:10 PM
To: thelist at lists.evolt.org
Subject: Re: [thelist] Javascript Timeouts


On Mon, 24 Jun 2002, Joel Konkle-Parker wrote:

> function hideMenu(menu){
>   setTimeout("document.getElementById(menu).style.visibility =
> 'hidden'", 2000); }
>
> called by the following event handler:
>
> onmouseout="hideMenu('yadaYadaYada')"
>
> When I try to run this, however, IE gives a "'menu' not defined"
> error. What's my problem?

For one, you are not assigning the setTimeout to a variable:

myTimer = window.setTimeout(...);

Meanwhile, the second reference to menu might be causing some
difficulties.

My thought is, re-write the code so that the DHTML statement is in
its own
function and see what happens.

Setting the timeout onmouseout rather than onmouseover is a great
idea,
too.


'Luck,
- --
Ben Henick
Web Author At-Large              Managing Editor
http://www.io.com/persist1/      http://www.digital-web.com/
persist1 at io.com                  bmh at digital-web.com
- --
"Are you pondering what I'm pondering, Pinky?"
"I think so, Brain, but... (snort) no, no, it's too stupid."
"We will disguise ourselves as a cow."
"Oh!" (giggles) "That was it exactly!"



- --
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !


-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPRfO4X880CLOJa2eEQIfewCeM5q4oBhhtTqdN86WdS2czb0OhWsAoPLA
mViRCec2HFgXqmFJ5hZ3o+Z2
=uCMj
-----END PGP SIGNATURE-----





More information about the thelist mailing list