Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Timed Layer??
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

donnita
Novice

7 Posts

Posted - 08 Jul 2006 :  23:48:24  Show Profile  Visit donnita's Homepage  Reply with Quote
I am using Davide's idea that he used in the template redsea mod. I would like to expand on this idea for one of my pages.

I have a main display area that has permanent information, I would like to use a layer over the permanent information, but for it to stay there for 5 seconds or so then hide and show the permanent info without requiring a visitor to mouseover, click, etc.

I thought perhaps this bit of javascript might do the trick, but unfortunately I am new to all of this and am not quite sure how to implement it.

Java:

var timerID;

function ShowLayer(id)
{
document.getElementById().style.display = "block";
}

function HideTimedLayer(id)
{
clearTimeout(timerID);
document.getElementById(id). ?
style.display = "none";
}

function timedLayer(id)
{
setTimeout("HideTimedLayer(\"" + id + "\")",?
5000); //5000= 5 seconds
}


Thank you in advance,
Donnita

s.dav
Site Admin

Italy
3364 Posts

Posted - 10 Jul 2006 :  18:40:20  Show Profile  Visit s.dav's Homepage  Reply with Quote
Just sent you a sample ;-)

Regards, Davide
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000