On my websites index.html page I have this script:
<SCRIPT language="JavaScript">
<!-- //
if ((screen.width==1024) && (screen.height==768))
{
document.write('<a href="active.html">Click here</a> to Enter Railways
Online);
}
else
{
document.write('This site is Best Viewed with a 1024x768 resolution. If
you want to get the best of this site, please alter your settings, otherwise
<a href="active.html">Click here</a> to enter');
}
//-->
</SCRIPT>
Which, If the resoultion is not 1024x768 will display the bottom message,
telling them to change their settings, if it is will display the top message
with just an entry link.
Is there a way of changing this so it will display the top message if the
Screen Resolution is 1024x768 and the text size is Medium.
Thanks in Advance,
Joe
--
To reply direct, Remove NOSPAM and Replace with 21fun
For the latest News, Information and Photos check out
http://www.railwaysonline.co.uk