C
Chris
Adding to the code below how would I get myLayer to always display in
the center of the browser regardless of how far the user has scrolled
down the page?
The best I can achieve at the moment is with css top:50% and left:50%
which is not what I want as this causes the page to jump depending on
the page's scrollheight.
Many thanks in advance,
Chris
function showStuff(evt,txt){
var node = (evt.target) ? evt.target : ((evt.srcElement) ?
evt.srcElement : null );
if (node.getAttribute("NAME") == "showlink") {
var myLayer = document.getElementById("myLayer");
myLayer.style.display= "inline";
}
}
the center of the browser regardless of how far the user has scrolled
down the page?
The best I can achieve at the moment is with css top:50% and left:50%
which is not what I want as this causes the page to jump depending on
the page's scrollheight.
Many thanks in advance,
Chris
function showStuff(evt,txt){
var node = (evt.target) ? evt.target : ((evt.srcElement) ?
evt.srcElement : null );
if (node.getAttribute("NAME") == "showlink") {
var myLayer = document.getElementById("myLayer");
myLayer.style.display= "inline";
}
}