Thank you, Janwillem.
I tried the code, and while it does pause before taking the user to
the site referenced in the select meny, it also deletes any reference
of the referring page in the browser history. (Is that what the 'eval'
and 'if' in the original script accomplish?)
Bob Crisler
Ashland, NE USA
"Janwillem Borleffs" <jw@jwscripts.com> wrote in message news:<40***********************@news.wanadoo.nl>.. .
Bob Crisler wrote: To better accommodate clients browsing by keyboard, I'd like to insert
a settimeout event into the MM_jumpMenu function to cause a two-second
delay before it executes. Have tried it a few ways, but no luck. The
MM_jumpMenu script in question:
<script language="JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0; } //-->
</script>
<script type="text/javascript">
function MM_jumpMenu(targ,selObj){
setTimeout(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"
, 2000);
}
</script>
JW