Hey, 343, are you planning to beat me to every thread? :)
if (screen.width <= 1000)
I have been learning about screen width recently-- see nearby thread, possibly even in this same forum-- and it turns out to be a much ickier and messier subject than you would think. But you shouldn't need to do any scripting; the basic format is
:: shuffling papers ::
<link rel = "stylesheet" type = "text/css" media = "screen and (max-width:960px)" href = "two.css">
... and then it gets messy. For starters, iOS devices lie through their teeth* about their width, so you need
<meta name = "viewport" content = "width=device-width">
to cover all iOS devices-- in fact almost everything, of any kind, using webkit. Some non-webkit devices may also respond to
@media screen and (min-resolution: 192dpi)
(adjust numbers to taste). See that other thread, if you can find it.
* Some will argue that the device isn't really lying. Sure, if you've got 500/20 vision...