I am wondering if anyone is able to write me a javascript (I will pay big FRIH$ for it) that will output the viewers height and width of the browser
Here is the existing one that I have currently:
I tried to use that with Internet Explorer 5.5 (Included with Windows 2000) the other night and I got and undefined error (Line 4, I think
)
If anyone can get this to work with IE 5.5 Ill pay them and for bonus FRIH$: make the script automaticly update whenever I resize the screen
Last edited by garionw on Tue Sep 26, 2006 8:29 am; edited 1 time in total
Here is the existing one that I have currently:
| Code: |
|
<SCRIPT> if (parseInt(navigator.appVersion)>3) { if (navigator.appName=="Netscape") { winW = window.innerWidth-64; winH = window.innerHeight; } if (navigator.appName.indexOf("Microsoft")!=-1) { winW = document.body.offsetWidth-64; winH = document.body.offsetHeight; } } document.write("Window width = " + winW + "<br>"); document.write("Window height = " + winH + "<br>"); document.write("<img src=image1.png width=" + winW + " />"); </SCRIPT> |
I tried to use that with Internet Explorer 5.5 (Included with Windows 2000) the other night and I got and undefined error (Line 4, I think
If anyone can get this to work with IE 5.5 Ill pay them and for bonus FRIH$: make the script automaticly update whenever I resize the screen
Last edited by garionw on Tue Sep 26, 2006 8:29 am; edited 1 time in total
