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 }