Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 REsolution sniffer help..
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Spoon
Average Member

Ireland
507 Posts

Posted - 27 October 2001 :  10:20:26  Show Profile  Visit Spoon's Homepage  Send Spoon an ICQ Message
Hi all, long time no see. I was wondering if someone could help me with this piece of js. When it detects the resolution, i dont want it to open a new window, simple redirect in the same window. Hope someone can help

----------------------------

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<!--------- Res Sniffer ------------>


<script language="JavaScript1.2">
function ScreenGoToURL(Big,Medium) {
var screen_height = screen.height;
var screen_width = screen.width;
if (screen_height >= 768) {
screen_width = 1024;
screen_height = 768;
window.open(Big);

} else {
screen_width = 800;
screen_height = 600;
window.open(Medium);

}
}
</script>

<!-- End Res Sniffer -->


</head>

<BODY onLoad="ScreenGoToURL('default.asp','default1.asp')">

</body>
</html>

-----------

thanks,

Regards - Spoon

Begineer? Need help installing the forums? - www.aslickpage.com/snitz_help.html

www.ASlickPage.com - Private Messaging

Rasco
Advanced Member

Germany
3192 Posts

Posted - 27 October 2001 :  17:06:31  Show Profile  Send Rasco an ICQ Message
Hope, this will help


<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; ch****t=iso-8859-1">
<!--------- Res Sniffer ------------>
<script language="JavaScript">
function gotoURL() {
var MediumScreen = "http://www.yoursite.com/default.asp";
var BigScreen = "http://www.yoursite.com/default1.asp";
if ((screen.width == 800) && (screen.height == 600))
window.location.href = MediumScreen;
else if ((screen.width == 1024) && (screen.height == 768))
window.location.href = BigScreen;
}
</script>
<!-- End Res Sniffer -->
</head>
<body onLoad="gotoURL()">
</body></html>


Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07