![]() |
resolution detection with notification pop-up?
I have 15% of my visitors using 800x600 resolution, which makes my forum home look cramped and horrible. Can someone please explain how I can setup a script that automatically detects a visitor using this exact resolution (or perhaps any below 1024x768) and popup a window warning, or static warning on the actual page (maybe header?)...with a custom message suggesting they increase their resolution?
Even browser / version detection also would be great too, along with javascript being disabled. I would appreciate some insight on this. Thanks. |
Here is a JavaScript that does exactly this
http://tech6.com/showthread.php?t=4 You can test a working Demo of this code at www.home.vinayaks.com , simply set your res. to anything less than 1024x768 and it redirects you to an error page. |
Ok, but I do not want to block them out. I only want to post a simple small notice, a suggestion or "tip" of some sort.
If someone created a mod for this, that would be really neat. |
the above code does not block them out. If you go directly to http://www.home.vinayaks.com/home.php at res 800, you'd still be able to view the page.
So, you can simply provide a link at the error page to the main page (in my case home.php) OR you can display a message at the main page itself with the help of the above code. |
I added the below in headinclude template, my site refused to load.
Quote:
headinclude looked like this with the script code Code:
<meta http-equiv="Content-Type" content="text/html; charset=$stylevar[charset]" /> edit: with the way I linked to the custom page, the browser just looped when trying to load the page. |
Code:
tmt_url_640 = "http://www.talkjesus.com/misc.php?do=page&template=resolution_warning"; Do something like this instead !! Code:
tmt_url_640 = "http://www.talkjesus.com/misc.php?do=page&template=resolution_warning"; Quote:
By the way, does this work ? Code:
?do=page&template=resolution_warning |
All times are GMT. The time now is 09:13 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:
|