Thread: Screen Size detect and CSS
Results 1 to 2 of 2
Related
-
How detect are page is transferred 100% or not? Forum: Javascript Forum
Replies: 5 -
either forcing window size or forcing image size Forum: HTML Forum
Replies: 2 -
different background with different screen size Forum: CSS Forum
Replies: 3 -
screen size compatibility Forum: HTML Forum
Replies: 1 -
How to detect if a frame has completed loading? Forum: HTML Forum
Replies: 2
-
02-12-2007, 01:06 PM #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.
-
02-12-2007, 10:58 PM #2
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
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum