78 users online (1 members and 77 guests)  


  Results 1 to 2 of 2

Related

  1. How detect are page is transferred 100% or not?    Forum: Javascript Forum
    Replies: 5
  2. Replies: 2
  3. Replies: 3
  4. screen size compatibility    Forum: HTML Forum
    Replies: 1
  5. Replies: 2
  1. #1
    Aumgn's Avatar
    New User

    Status
    Offline
    Join Date
    Feb 2007
    Location
    Glasgow
    Posts
    1

    Screen Size detect and CSS

    Dear all,

    I came to the site looking for a script which would allow me to detect a user's screen size then specify a particular jpeg background. Doorknob's post (back in '03: http://www.ahfb2000.com/webmaster_help_desk/showthread.php?t=1720) looked like the ticket, but I've encountered a difficulty.

    What I really want to do is reference a specific stylesheet based on the user's screen size. But I don't know if I can do this. I tried making modifications to the code but don't know Javascript well enough to get it right (or to know if I can do it all!).

    Thanks.

  2. #2
    vinyl-junkie's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    721

    Re: Screen Size detect and CSS

    Welcome to AHFB, Aumgn.

    I'm far from a whiz at javascript, but what I think you're looking for is a stylesheet switcher. You can search Google if you want, but this page looks like it might have a decent starting point for you. Instead of using an onclick event, you would probably want to use an onload event.

    Hope this helps.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more



Tags for this Thread