Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev > Mods & Themes
Reply
  #1  
Old 27th February 2013, 15:43
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 278
Default 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
__________________
http://www.bvlist.com/images/avatars/signaturepics/sigpic16443_2.gif

Last edited by Chez; 27th February 2013 at 16:29.
Reply With Quote
The Following User Says Thank You to Chez For This Useful Post:
nicukent (2nd February 2014)
  #2  
Old 27th February 2013, 16:05
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default
lol nice script i guess but no doubt most users will see it lol..

ps.

Bested = Best
Bested is not in the dictionary
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details
Reply With Quote
  #3  
Old 27th February 2013, 16:31
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 278
Default
Quote:
Originally Posted by daffy View Post
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
__________________
http://www.bvlist.com/images/avatars/signaturepics/sigpic16443_2.gif
Reply With Quote
Reply

Tags
detection , notification , resolution , screen

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 00:27. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.