kbjradmin
New Member
- Messages
- 512
- Reaction score
- 2
- Points
- 0
i need a script that will determine the inner width of a browser window. i tried this
but it doesn't seem to work. it isn't reporting an error, but not working either.
if you can fix this code or give me a new one, i don't care which, just help.
Code:
winwidth=document.all?document.body.clientwidth:window.innerwidth;
padding = (winwidth-1000)/2;
document.write("<div style=\"position:absolute;top:25px;left:" + padding + "px;\">");
if you can fix this code or give me a new one, i don't care which, just help.