/    Sign up×
Community /Pin to ProfileBookmark

Mac JavaScript problem

Hi, I am using this code at the entrance of a website, It works fine for Windows machines, but not for MAc users. Can anyone help? Thanks

<!– Begin
function redirectPage() {

var url800x600 = “http://www.fitzgeraldmenswear.ie/main.html“;
var url1024x768 = “http://www.fitzgeraldmenswear.ie/main_s.html“;
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 –>
</script>

<title>Fitzgerald Menswear</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
</head>

<body bgcolor=”#CCCCFF”>
<center>
<img src=”images/banner2.gif” width=”761″ height=”78″>
<form>
<input type=button value=”Enter!” onClick=”redirectPage()”>
</form>
</center>

<div align=”center”></div>
</body>
</html>

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @jackit spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...