SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 27 of 27
  1. #26
    We like music. weirdbeardmt's Avatar
    Join Date
    May 2001
    Location
    Channel Islands Girth: Footlong
    Posts
    5,882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is the code as it stands on the server right now:

    Code:
    <SCRIPT LANGUAGE="JavaScript">
    
    function redirectPage() {
    var page640x480 = "http://www.weirdbeard.f2s.com/access/error.html";
    var page800x600 = "http://www.weirdbeard.f2s.com/access/small.html";
    var page1024x768 = "http://www.weirdbeard.f2s.com/access/frames2/framesetlarge.html";
    var page1640x768 = "http://www.weirdbeard.f2s.com/access/frames2/framesetlarge.html";
    
    if ((screen.width == 640) && (screen.height == 480)) 
    window.location.href= page640x480;
    else if ((screen.width == 800) && (screen.height == 600)) 
    window.location.href = page800x600;
    else if ((screen.width == 1024) && (screen.height == 768)) {
    window.resizeTo(900,750);
    window.location.href= page1024x768; }
    else if ((screen.width == 1280) && (screen.height == 1024)) 
    window.location.href= page1640x480;
    else window.location.href= page1640x480;
    }
    
    </script>
    Is it possible that after the middle set of curly brackets it is being ditched, which is why it is not being displayed at a higher res?

    I'll try and coax some other people into having a look for me!
    I swear to drunk I'm not God.
    Matt's debating is not a crime
    Hint: Don't buy a stupid dwarf Clicky

  2. #27
    Bimbo With A Brain! silver trophy Saz's Avatar
    Join Date
    Mar 2001
    Location
    Kent, United Kingdom
    Posts
    5,275
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Tell you what. I'll move this into one of the scripting forums. People who can answer you are more likely to see it then.
    Saz: Naturally Blonde, Naturally Dizzy!
    No longer Editor of the Community Crier.

    Don't mind me, I'm having a BLONDE moment!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •