Note: You must be registered in order to post a reply.
T O P I C R E V I E W
donnita
Posted - 08 Jul 2006 : 23:48:24 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
1 L A T E S T R E P L I E S (Newest First)
s.dav
Posted - 10 Jul 2006 : 18:40:20 Just sent you a sample ;-)