Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2004
Posts: 11
Junior Member
Junior Member
Offline
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

Sponsored Links
Joined: May 2000
Posts: 1,356
Addict
Addict
Joined: May 2000
Posts: 1,356
Code
<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
Offline
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
Offline
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
Offline
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.

Sponsored Links
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
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


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Nov 2004
Posts: 11
Junior Member
Junior Member
Offline
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,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
100% Table:
Code
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="100">
<tr>
<td width="100%"> </td>
</tr>
</table>
</div>
98% Table:
Code
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="98%" id="98">
<tr>
<td width="100%"> </td>
</tr>
</table>
</div>


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)