Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

expected ")"

Status
Not open for further replies.

Ragol1

Programmer
Oct 25, 2001
315
US
Im getting an expected ")" in this code and cant figure it out... it says its on the mac line????

<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
<!-- Hide this script from old browsers
if ((navigator.appName == &quot;Microsoft Internet Explorer&quot; &&
navigator.appVersion.indexOf(&quot;Mac&quot;) == -1 && 4
navigator.appVersion.indexOf(&quot;3.1&quot;) == -1) ||
(navigator.plugins && navigator.plugins[&quot;Shockwave Flash&quot;]) ||
navigator.plugins[&quot;Shockwave Flash 2.0&quot;]){
//Load a pre-defined HTML page with Shockwave in it into the browser window.
window.location='home.htm';
}
else {
//Load a pre-defined HTML page without Shockwave into the browser window.
window.location='index.htm';
}
// -->
</SCRIPT>
 
navigator.appVersion.indexOf(&quot;Mac&quot;) == -1 && 4
Does the 4 belong there?
 
Try this one : i haven't test it yet but i think it can worked :)

if ((navigator.appName == &quot;Microsoft Internet Explorer&quot;) &&
(navigator.appVersion.indexOf(&quot;Mac&quot;) == -1) && (4
navigator.appVersion.indexOf(&quot;3.1&quot;) == -1) ||
(navigator.plugins && navigator.plugins&quot;Shockwave Flash&quot;) ||
(navigator.plugins&quot;Shockwave Flash 2.0&quot;)){
//Load a pre-defined HTML page with Shockwave in it into the browser window.
window.location='home.htm';
}


Best Regards,


Danang Ismu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top