|
|
|
Joined: Nov 2004
Posts: 11
Junior Member
|
Junior Member
Joined: Nov 2004
Posts: 11 |
hello
i want a page to be loaded deppending on the screen resolution .. if 800/600 load page 1, if 1024 load page 2
Is this possible? If so can anyone tell me how?
thanks
|
|
|
|
Joined: May 2000
Posts: 1,356
Addict
|
Addict
Joined: May 2000
Posts: 1,356 |
<html> <head> <title>Loading ...</title> <script> var x = screen.width; var y = screen.height; window.location.href = x >= 1024 ? "1024.html" : "800.html"; </script> </head> <body> Loading... </body> </html>
|
|
|
|
Joined: Nov 2004
Posts: 11
Junior Member
|
Junior Member
Joined: Nov 2004
Posts: 11 |
tks burak i think this is exactly what i wanted
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
that's great, cause everyone knows no one uses 1280x1024 and 1600x1200
What about people on laptops who use something like 1400x800, and anyone else who uses either pdas or macs?
What are you doing that can't be done via a fluid layout?
|
|
|
|
Joined: Nov 2004
Posts: 11
Junior Member
|
Junior Member
Joined: Nov 2004
Posts: 11 |
well Ian i'm making a page with 5 frames and i was having truoble with one of the frames. Probably there is a simple way to do it better, but i don't know how to. The page is http://paroquiareboleira.no.sapo.pt if you have any other sugestion.
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
why not just use 100% on the table width on the page in that frame; or 98% with align="center" so there is spacing like on the UBB
|
|
|
|
Joined: Nov 2004
Posts: 11
Junior Member
|
Junior Member
Joined: Nov 2004
Posts: 11 |
ok Gizzy and how do i do that ?
its a simpple page with only a bckgrd image
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
100% Table: <div align="center"> <table border="0" cellpadding="0" cellspacing="0" width="100%" id="100"> <tr> <td width="100%"> </td> </tr> </table> </div> 98% Table: <div align="center"> <table border="0" cellpadding="0" cellspacing="0" width="98%" id="98"> <tr> <td width="100%"> </td> </tr> </table> </div>
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 69
Joined: January 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|
|
|