thewickedjester
09-16-2004, 12:32 AM
Ok, i have been searching for like 45 minutes and cant find any reason why this isnt working. its a screen resolution detector that i got of javascriptkit.com. the only thing i changed was what the correct resolution should be. when i run the site with the javascript code it in, it does nothing.
I have tried it in both Mozilla Firefox, and IE and am out of ideas
<script language="JavaScript1.2">
<!--
/*
Screen resolution detecter script: By JavaScript Kit (www.javascriptkit.com) More free scripts here! Note: Credit must stay intact for use.
*/
var correctwidth=800
var correctheight=600
if (screen.width<correctwidth||screen.height<correctheight)
document.write("This webpage is bested viewed with screen resolution "+correctwidth+"*"+correctheight+" or above. Your current resolution is "+screen.width+"*"+screen.height+". If possible, please change the resolution!")
//-->
</script>
also, would it affect this javascript from running if i had another javascript for some mouse overs running before it?
I have tried it in both Mozilla Firefox, and IE and am out of ideas
<script language="JavaScript1.2">
<!--
/*
Screen resolution detecter script: By JavaScript Kit (www.javascriptkit.com) More free scripts here! Note: Credit must stay intact for use.
*/
var correctwidth=800
var correctheight=600
if (screen.width<correctwidth||screen.height<correctheight)
document.write("This webpage is bested viewed with screen resolution "+correctwidth+"*"+correctheight+" or above. Your current resolution is "+screen.width+"*"+screen.height+". If possible, please change the resolution!")
//-->
</script>
also, would it affect this javascript from running if i had another javascript for some mouse overs running before it?