W
Wade
Im attempting to help fix a problem on a local weather site. They have
this server side c# code they were using but the programmer left and
left them hanging. I removed that code and found this script in a
tutorial. It wasnt used in the manner in which Im using it right now
so I would appreciate some help.
<script type="text/javascript">
function detect() {
if(screen.width==800 || screen.height==600) {
document.write("<link rel="stylesheet" type="text/css" href="weather-
screen_b.css" media="screen" title="screen" />");
} else {
document.write("<link rel="stylesheet" type="text/css" href="weather-
screen.css" media="screen" title="screen" />");
}
}
</script>
this server side c# code they were using but the programmer left and
left them hanging. I removed that code and found this script in a
tutorial. It wasnt used in the manner in which Im using it right now
so I would appreciate some help.
<script type="text/javascript">
function detect() {
if(screen.width==800 || screen.height==600) {
document.write("<link rel="stylesheet" type="text/css" href="weather-
screen_b.css" media="screen" title="screen" />");
} else {
document.write("<link rel="stylesheet" type="text/css" href="weather-
screen.css" media="screen" title="screen" />");
}
}
</script>