Please help!!!
I positioned a layer using 1024 x 768 resolution, and it looked great. However, when I changed my resolution to 800 x 600, the layer's placement wasn't where it should be.
Here's some of my code:
<div id="Layer1" style="position:absolute; left:86px; top:239px; width:176px; height:400px; z-index:1">
I found a javascript used during onload to detect the user's screen resolution, but I don't know how to set left & top with it:
<script language="Javascript1.1">
<!--
//this code was designed by Brian Zimmer
function detect(){
if(screen.width<1024||screen.height<768){
### SET LEFT & TOP FOR 800 x 600 ###
}
else{
### SET LEFT & TOP FOR 1024 x 768 ###
}
}
//-->
</script>
Am I on the right track?
Thank you,
Jeremy
I positioned a layer using 1024 x 768 resolution, and it looked great. However, when I changed my resolution to 800 x 600, the layer's placement wasn't where it should be.
Here's some of my code:
<div id="Layer1" style="position:absolute; left:86px; top:239px; width:176px; height:400px; z-index:1">
I found a javascript used during onload to detect the user's screen resolution, but I don't know how to set left & top with it:
<script language="Javascript1.1">
<!--
//this code was designed by Brian Zimmer
function detect(){
if(screen.width<1024||screen.height<768){
### SET LEFT & TOP FOR 800 x 600 ###
}
else{
### SET LEFT & TOP FOR 1024 x 768 ###
}
}
//-->
</script>
Am I on the right track?
Thank you,
Jeremy