Thanks again for all the help. I have got BillyRayPreachersSon's script to work fine, no errors and the CSS stylesheet switches when I change my screen resolution.
I have tried all three properties (is that the right term?): window.screen.availWidth, screen.availWidth, and screen.width and the...
Thanks for these other suggestions.
I tried BillyRayPreachersSon's script and it doesn't produce an error. Now I need to tweak the CSS and see if I can make the switching work.
I'll report back..thanks again!
martin
(webseo)
Thanks for the prompt replies.
spazdragon, I am trying this in IE6 and Firefox and I get the same basic errors in each.
When I try your code the error changes to: link is null or not an object (on line #23 because of inserting the var link; line).
Vragabond, I tried to take off the [0] on...
Hello all,
I just found this site while I was searching for a solution to a problem. I am trying to switch CSS style sheets based on browser width.
I found this post by BlindPete faq215-4537 > http://www.tek-tips.com/faqs.cfm?fid=4537 which seemed like the answer I was looking for. I'm not...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.