So here is my small problem…
Trying to make my page layers dynamic to the users window size,…
so my layers will always appears at the right x,y
<script language=”JavaScript”>
function findXvalue()
{
var winl = (screen.width);
if (winl = 800 ) winl = 197;
if (winl = 1024 ) winl = 309;
if (winl = 1152 ) winl = 373;
if (winl = 1280 ) winl = 437;
return winl;
}
var resizeX = 0;
resizeX = findXvalue();
</script>
<body>
…
<div id=”LayerACQ” style=”position:absolute; width:189; height:115; z-index:1; left: 197; top: 148;>
…
<table>
….
</div>
I need to make the ‘left:197;’ dynamic… as per the value in my function…
Tried:
<div id=”LayerACQ” style=”position:absolute; width:189; height:115; z-index:1; left: ‘ findXvalue(); ‘ ; top: 148;>
<div id=”LayerACQ” style=”position:absolute; width:189; height:115; z-index:1; left: ‘ resizeX ‘ ; top: 148;>
and a few others….
Still never works…. (on action, puts the laye to ‘0’ cuz it does not understand the value)
Thanks to any who can help