Hi guys, I think Im almost there. I added a free script I found on the web to my index.htm page and it looks like this:
<script language="JavaScript1.2">
<!--
/*
Screen Size Redirect script (By Robert @
http://members.tripod.com/technological_tinker/ )
Submitted to Dynamicdrive.com to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit
http://dynamicdrive.com
*/
if (screen.width==800||screen.height==600) //if 800x600
window.location.replace("http://www.netscape.com")
else if (screen.width==640||screen.height==480) //if 640x480
window.location.replace("http://www.microsoft.com")
else if (screen.width==1024||screen.height==76 //if 1024x768
window.location.replace("http://www.dynamicdrive.com")
else //if all else
window.location.replace("http://freewarejava.com")
//-->
</script>
So I just altered the script and added the urls to it, and this is what it looks like in my index page:
<script language="JavaScript1.2">
<!--
/*
Screen Size Redirect script (By Robert @
http://members.tripod.com/technological_tinker/ )
Submitted to Dynamicdrive.com to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit
http://dynamicdrive.com
*/
if (screen.width==800||screen.height==600) //if 800x600
window.location.replace("http://www.uniteddistributors.ca")
else if (screen.width==640||screen.height==480) //if 640x480
window.location.replace("http://www.uniteddistributors.ca")
else if (screen.width==1024||screen.height==76 //if 1024x768
window.location.replace("http://www.uniteddistributors.ca/1024x768/")
else //if all else
window.location.replace("http://www.uniteddistributors.ca/1024x768/")
//-->
</script>
I added to the frames index.htm page & tested it out, and it seemed to work perfectly. I did a few other touch ups and uploaded it & when I viewed it, it didnt redirect. If your rez is at 800x600 and you visit the site at:
http://www.uniteddistributors.ca/ it looks alright, but if your rez is 1024x768 it wont redirect to the 1024x768. I tested it out to see if the pages are on the web by typing the url directly and its there:
http://www.uniteddistributors.ca/1024x768/
Do you know, whats wrong? I have a funny feeling its something very simple. If there's any help you can give I'd appreciate it.
Thank you