Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=109)
-   -   Screen resolution detection and notification (http://www.bvlist.com/showthread.php?t=8931)

Chez 27th February 2013 15:43

Screen resolution detection and notification
 
attention

Attention

Working with all sourcecodes!




A script that tests the surfer's screen size, and if it's not a certain size (ie: 800*600), suggests to the surfer to change resolution.

PHP Code:

<script language="JavaScript1.2">
<!--
var 
correctwidth=800
var correctheight=600

if (screen.width!=correctwidth||screen.height!=correctheight)
document.write("This webpage is best viewed with screen resolution "+correctwidth+"*"+correctheight+". Your current resolution is "+screen.width+"*"+screen.height+". If possible, please change the resolution!")
//-->
</script> 

Enjoy:drink:

daffy 27th February 2013 16:05

lol nice script i guess but no doubt most users will see it lol..

ps.

Bested = Best
Bested is not in the dictionary

Chez 27th February 2013 16:31

Quote:

Originally Posted by daffy (Post 39718)
lol nice script i guess but no doubt most users will see it lol..

ps.

Bested = Best
Bested is not in the dictionary

Sorry for the mistake, i rushed:fire::suicide:


All times are GMT +2. The time now is 14:39.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.