![]() |
^
|
Code:
<script language="JavaScript"> |
Or you could do this, for different banners:
PHP Code:
|
this
code: <script language="JavaScript"> if (screen.width) { if (screen.width==640) { document.write('Resolution is 640x480.'); } elseif (screen.width==800) { document.write('Resolution is 800x600.'); } elseif (screen.width==1024) { document.write('Resolution is 1024x768.'); } else { document.write('Resolution is greater than 1024x768'); } } else { document.write('Not using Internet Explorer; can't detect resolution.'); } </script> didnt werk :( it sed Expected ; |
Ehhh...try again... Should work now. :rolleyes:
BTW, Lesane, I was just trying to show how to detect the screen resolution because there are hundreds of things he could want to do with this script...I wanted to provide something that was nice and customizable, and I feel like you just repeated what I already said (but worse). It's not nice. I wouldn't be bothered, but you've been an @$$4073 to me in the past, so I can't help but feel like you're just trying to get attention (a "thank you" even) at my expense. Also, I've never heard of a screen resolution where height divided by width is not equal to 75%, so those parts in your conditionals are unnecessary. Good day. |
All times are GMT. The time now is 05:01 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|