php forum
php mysql forum
php mysql smarty
 
Topic Options
#109953 - 11/15/04 01:04 PM load a page depending on the screen
mic_scp Offline
Junior Member

Registered: 11/15/04
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

Top
#109954 - 11/16/04 04:56 PM Re: load a page depending on the screen
Burak Offline
Addict

Registered: 05/29/00
Posts: 1820
Loc: Istanbul, Turkey
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>
_________________________
one bytecode to rule them all

Top
#109955 - 11/17/04 06:33 AM Re: load a page depending on the screen
mic_scp Offline
Junior Member

Registered: 11/15/04
Posts: 11
tks burak
i think this is exactly what i wanted

Top
#109956 - 11/17/04 08:32 AM Re: load a page depending on the screen
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
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?

Top
#109957 - 11/17/04 01:18 PM Re: load a page depending on the screen
mic_scp Offline
Junior Member

Registered: 11/15/04
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.

Top
#109958 - 11/17/04 05:54 PM Re: load a page depending on the screen
Gizmo Online   shocked

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
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 - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#109959 - 11/18/04 06:34 AM Re: load a page depending on the screen
mic_scp Offline
Junior Member

Registered: 11/15/04
Posts: 11
ok Gizzy and how do i do that ?

its a simpple page with only a bckgrd image

Top
#109960 - 11/18/04 07:19 PM Re: load a page depending on the screen
Gizmo Online   shocked

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
100% Table:
Code:
<div align="center">
  <table border="0" cellpadding="0" cellspacing="0" width="100%" id="100">
    <tr>
      <td width="100%">&nbsp;</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%">&nbsp;</td>
    </tr>
  </table>
</div>
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks