Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 07-07-2003, 12:26 AM detect and route
Junior Talker

Posts: 2
Trades: 0
Hi
I would like to use a detect and route script (screen resolution) for my webpage, but I am not having much success. Can anyone help, please.
cmsmolski is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-07-2003, 09:46 AM
Omega's Avatar
Extreme Talker

Posts: 234
Location: Sharpsville, PA
Trades: 0
Try these:

Generator

Dynamic Drive
__________________
-----------------------------------------------
Current Projects:
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE

Last edited by Omega; 07-07-2003 at 09:51 AM..
Omega is offline
Reply With Quote
View Public Profile Visit Omega's homepage!
 
Old 07-07-2003, 06:44 PM
Junior Talker

Posts: 2
Trades: 0
I used a script very similar to this, but I must have done something wrong. When I tried to access my page all that showed was a blank white page. I am posting the script that I used and what I did to initiate it.

The script was:
Copy the following code into your HEAD tags

<script language="JavaScript1.2">

/*
Screen Resolution Redirect
© Eddie Traversa (nirvana.media3.net)
To add more shock to your site, visit www.DHTMLShock.com
*/
function ScreenGoToURL(Big,Medium) {
var screen_height = screen.height;
var screen_width = screen.width;
var buffer = (document.all || document.layers ||documentGetElementByID) ? 30 : 48;
if (screen_height >= 768) {
screen_width = 1024;
screen_height = 768;
var window_width = 1024-12;
var window_height = 768-buffer;
var window_top = 0;
var window_left = 0;
window.open(Big,'','resizable=no,status=yes,width= ' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + '');

} else {
screen_width = 800;
screen_height = 600;
var window_width = 800-12;
var window_height = 600-buffer;
var window_top = 0;
var window_left = 0;
window.open(Medium,'','resizable=no,status=yes,wid th=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + '');

}
}
</script>

Copy the following code into your BODY tag

<BODY onLoad="ScreenGoToURL('1024x768.html','800x600.htm l')">

I renamed my index page and created a blank document with the code inserted as stated. This new blank page I named index. Is this the correct method?
sorry this is so long.
cmsmolski is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to detect and route
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11953 seconds with 12 queries