try changing the onclick to an onload in the body tag:
<body onload="redirectPage()">
I think that will do what you want.
happy surfing!
-J
Alternately, I believe that you could just change your javascript to do the
following (no function at all) and it would work (but I tend to feel safer
by setting it up as a function.):
<script LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
{
var url640x480 = "frontpage640.html";
var url800x600 = "frontpage.html";
var url1024x768 = "frontpage1024.html";
if ((screen.width == 640) && (screen.height == 480))
window.location.href= url640x480;
else if ((screen.width == 800) && (screen.height == 600))
window.location.href= url800x600;
else if ((screen.width == 1024) && (screen.height == 768))
window.location.href= url1024x768;
else window.location.href= url640x480;
}
// End -->
......................................................................
Jason Epstein [EMAIL PROTECTED] 212.583.1234x633 www.sixdegrees.com
Our bodies are garbage heaps: we collect experience, and from the
decomposition of the thrown-out eggshells, spinach leaves, coffee
grinds, and old steak bones of our minds come nitrogen, heat, and very
fertile soil.� Out of this fertile soil bloom our poems and stories.
���� --Natalie Goldberg
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Derrick
MacGillivary
Sent: Thursday, February 04, 1999 5:37 PM
To: [EMAIL PROTECTED]
Subject: WC:>: re: Javascript Question/Problem...
I have a Jscript which I use to redirect users with different screen
resolutions, but I cannot figure out how to do this redirect automatically.
(My scripting abilities are very limited, I downloaded this script)
If someone could have a look at this site and give me some pointers, it
would be most appreciated.
http://snoopy.v-net.org/~derrick/store/Html/index.html
Kindest Regards,
//-----------------------------------//
Derrick MacGillivary, President
Cape Breton Island Business Communications Group
88 Blackett's Lake Rd.
Sydney Forks, Nova Scotia Canada B1L 1B9
Tel: 902-567-5549
Fax: 902-564-3672
email: [EMAIL PROTECTED]
http://snoopy.v-net.org/~derrick/store/Html/frontpage.html
//-----------------------------------//
____________________________________________________________________
--------------------------------------------------------------------
Join The NEW Web Consultants Association FORUMS and CHAT:
Register Today at: http://just4u.com/forums/
Web Consultants Web Site : http://just4u.com/webconsultants
Give the Gift of Life This Year...
Just4U Stop Smoking Support forum - helping smokers for
over three years-tell a friend: http://just4u.com/forums/
To get 500 Banner Ads for FREE
go to http://www.linkbuddies.com/start.go?id=111261
---------------------------------------------------------------------
____________________________________________________________________
--------------------------------------------------------------------
Join The NEW Web Consultants Association FORUMS and CHAT:
Register Today at: http://just4u.com/forums/
Web Consultants Web Site : http://just4u.com/webconsultants
Give the Gift of Life This Year...
Just4U Stop Smoking Support forum - helping smokers for
over three years-tell a friend: http://just4u.com/forums/
To get 500 Banner Ads for FREE
go to http://www.linkbuddies.com/start.go?id=111261
---------------------------------------------------------------------