Tech Support banner

Status
Not open for further replies.
1 - 3 of 3 Posts

·
Registered
Joined
·
198 Posts
Discussion Starter #1
ok, I wrote this code and I'm thinking that it should be working, but it's not.

Code:
<script type="text/javascript">
<!--
var 800 ='<style type="text/css"><!--.signature {max-width:500px;max-height:400px;overflow:hidden;background-color:#888888;}--></style>';

var 1024 ='<style type="text/css"><!--.signature {max-width:600px;max-height:400px;overflow:hidden;background-color:#888888;}--></style>';

if (screen.width=="800"){
document.write(800)
}
else
{
document.write(1024)
}
// -->
</script>
The CSS part was working fine before I added it to this Javascript, and I don't see why it shouldn't work now.
 

·
Registered
Joined
·
2,390 Posts
Ahh beat me ... Was about to say that .. Anyway, Well Done on finding your own mistake. Best Way of Learning :wink:

Hope you have a fun computing day,
Grove :cool:
 
1 - 3 of 3 Posts
Status
Not open for further replies.
Top