hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : can anyone help me with a js script...
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

can anyone help me with a js script...

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 04-21-2003, 01:33 AM
i-meals i-meals is offline
Disabled
 
Join Date: Mar 2003
Posts: 282
Question

can anyone help me with a js script...


can anyone provide me with a JS that will notif the user if they are not using I.E 6 with the resolution 800x600

Reply With Quote


Sponsored Links
  #2  
Old 04-21-2003, 03:25 AM
digitok digitok is offline
Web Hosting Master
 
Join Date: Jan 2003
Location: Perth, WA, Australia
Posts: 1,276
Try this
PHP Code:
<script language="JavaScript">
    
IE6 = (((document.all) && (navigator.appVersion.indexOf("MSIE 6.") != -1)) ? true false);
    var 
width screen.width;
    if ((!
IE6) || (width != 800)) {
        
alert("You are NOT using IE6 with a resolution of 800x600");
    }
</script> 
Hope it helps.

__________________
nu-metal.org :: coming soon

Reply With Quote
  #3  
Old 04-21-2003, 05:07 AM
Rich2k Rich2k is offline
Web Hosting Master
 
Join Date: May 2002
Location: UK
Posts: 2,994
Aren't you being a little restrictive as to your audience levels?

Reply With Quote
Sponsored Links
  #4  
Old 04-21-2003, 05:17 AM
digitok digitok is offline
Web Hosting Master
 
Join Date: Jan 2003
Location: Perth, WA, Australia
Posts: 1,276
Maybe he's going to make it like:
"You are NOT using IE6 with a resolution of 800x600"
"Now redirecting you to /index2.html"

__________________
nu-metal.org :: coming soon

Reply With Quote
  #5  
Old 04-21-2003, 02:26 PM
i-meals i-meals is offline
Disabled
 
Join Date: Mar 2003
Posts: 282
What I wanan do is, is warn them that the website may look a bit different sinc ethey are not using I.E 6 or because there resoulution is not 600x800

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Pingdom Talks Top Web Hosting Cities and Countries Web Hosting News 2013-03-27 18:49:54
Whistleblower Site Cryptome Hacked, Infects PCs with Drive-By Exploits Web Hosting News 2012-02-14 14:48:24
Control Panel cPanel Launches New Apache Configuration Script Web Hosting News 2011-12-28 19:41:39
Web Host HostingZoom Adds Softaculous Auto-Installer to Hosting Plans Web Hosting News 2011-08-17 17:52:34
Web Host JaguarPC Adds Auto-Installer Softaculous to Hosting Plans Web Hosting News 2011-07-27 18:55:46


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?