Show layer in Dreamweaver after 5 seconds

J

Jim

How can I use Javascript to show a layer named "callout" after the
page has been delayed for 5 seconds?

Using the onLoad behavior to execute a "Call Javascript" action.

What is the correct syntax?

HELP!
 
J

Jim

How can I use Javascript to show a layer named "callout" after the
page has been delayed for 5 seconds?

Using the onLoad behavior to execute a "Call Javascript" action.

What is the correct syntax?

HELP!

OH MY GOD... Six hours to get this, but it works:

<body class="style2"
onLoad="MM_callJS('setTimeout(\'MM_showHideLayers(\\\'callout\\\',\\\'\
\\',\\\'show\\\')\',2000);')">
 
L

-Lost

Jim said:
OH MY GOD... Six hours to get this, but it works:

<body class="style2"
onLoad="MM_callJS('setTimeout(\'MM_showHideLayers(\\\'callout\\\',\\\'\
\\',\\\'show\\\')\',2000);')">

You are most definitely doing something wrong.

If Dreamweaver produced code like that on purpose, then the entire
Dreamweaver community would not use it to write *ANY* code.

onload="MM_callJS(setTimeout('MM_showHideLayers(\'callout\')', 2000));"

Even though I wonder what MM_callJS does/is? I am grinning right now,
thinking it is a wrapper for eval().

Surely not?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top