OZONE Asylum
Forums
Stupid Basic HTML
Different screensize
This page's ID:
9635
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
well screen res scripts are everywhere, I have an example below: this is from something of mine (ignore the nofNums bits) basically you need to specify what to do at different resolutions and this does it fine, but what about people who have a really big res, but have their browser window unmaximised? you would need to check the window width and not the screen width, this is harder, especially since the unmaximised window width has no standard/average widths etc. Liquid or Flash - they are really the best two options you have. [code]var width = screen.width; var res = (((!(640-width))*640) + ((!(800-width))*800) + ((!(1024-width))*1024) + ((!(1152-width))*1152) + ((!(1280-width))*1280) + ((!(1600-width))*1600)); if(!(res)) res = 1; if (res=='640') {nofNums = 70} if (res=='800') {nofNums = 90} if (res=='1024') {nofNums = 190} if (res=='1152') {nofNums = 220} if (res=='1280') {nofNums = 270} if (res=='1600') {nofNums = 400} if (res!='640' && res!='800' && res!='1024' && res!='1152' && res!='1280' && res!='1600') {nofNums=90}[/code] [This message has been edited by smonkey (edited 05-12-2003).] [This message has been edited by smonkey (edited 05-12-2003).]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »