473,738 Members | 7,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Show layer in Dreamweaver after 5 seconds

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!

Apr 24 '07 #1
3 2288
Jim said the following on 4/24/2007 12:34 PM:
How can I use Javascript to show a layer named "callout" after the
page has been delayed for 5 seconds?
setTimeout, search the archives.
Using the onLoad behavior to execute a "Call Javascript" action.
Why would you want to use the onload when you don't need to?
What is the correct syntax?
window.setTimeo ut(....)

That is a start, search the archives, post your best effort at it. It
reeks of classwork assignment if it is required that you use the onload
behavior.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Apr 24 '07 #2
Jim
On Apr 24, 11:34 am, Jim <jlrehm...@gmai l.comwrote:
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_call JS('setTimeout( \'MM_showHideLa yers(\\\'callou t\\\',\\\'\
\\',\\\'show\\\ ')\',2000);')">

Apr 26 '07 #3
Jim wrote:
On Apr 24, 11:34 am, Jim <jlrehm...@gmai l.comwrote:
>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_call JS('setTimeout( \'MM_showHideLa yers(\\\'callou t\\\',\\\'\
\\',\\\'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_call JS(setTimeout(' MM_showHideLaye rs(\'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?

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
Apr 26 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2530
by: Keller | last post by:
We're incorporating Google Adsense into our website and are trying to have the ad box scroll with the page. Ideally the layer would move with the page as people are scolling down. I've seen other sites do this, but I have no idea how to do it. When I set the layer to be 'fixed', the layer stays in place when people scroll when using Opera or Mozilla, but IE doesn't seem to like that. It's a hack, but would be OK if it worked across the...
4
1735
by: Jim | last post by:
How do I create a javascript timer to do the following: After the "submit" button is clicked on the website, wait 5 seconds and then show the button named "continue." Any help would be greatly appreciated!!!
1
1646
by: timchalk | last post by:
I believe I've found a problem with the Safari DOM when updating the text found within a layer. Although the layer is updated correctly visually, the underlying DOM seems to grow larger with duplicated elements rather than being reset with the new elements. I've created a test page which demonstrates this issue... http://www.qas.com/layer-test.htm The page contains an initially empty <div> element within <form> tags. When the page...
3
6401
by: Merlin | last post by:
Hi there, I am trying to create a form with an dynamic field that can be shown or hidden. As I saw for example on google it is possible with JS to show a layer and move the content underneath that layer further down uppon showing this layer. When a person closes that layer the content underneath the layer moves up again and closes the empty space. How is this possible? I am playing around with some code I am posting with this thread....
3
5330
by: a1000car | last post by:
I have almost 2 weeks tying to find a solution for this. Please help -How can you SHOW/HIDE an thml-dreamweaver layer from a flash movie button. My html layer name is LAYER1, and my FlashMC botton name is FLBOT1 Now, what is the actionscript that im suppouse to place in the flash button? Please respond, Thanks
16
2380
by: Dotnet | last post by:
I want to so the "right thing". But first, I have a confession to make. I've built a few ASP.NET sites now (Version 2.0), and they all work fine. However, I have (and here's the confession) used the SqlDataSource in each one of them. I've read a number of blogs and articles that tell me this is just, well, sinful. I have to adopt an n-layer/tier approach which makes use of a Data Access Layer and a Business Logic Layer. I've...
3
4633
by: therealvibe | last post by:
I have made a simple page with show hide layers with javascript and css. http://www.icatt.nl/special/test/salarisstrook_algemeen.html The idea is that the blue help text rechtangle will have to remain visible when mouse over (because there will be soon links in it) and invisible when onmouseout. I have now placed javascript on the small numbered balls and within
0
8969
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8788
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9263
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8210
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6751
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4570
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.