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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

targeting browsers on mac systems

Status
Not open for further replies.

hablablow

Programmer
Sep 9, 2000
115
FR
Hi,

I use this script below to show / hide specific layer content for Opera browsers. Unfortunately it does the correct job only on windows but not on mac.
Any idea ? Add lines to target mac Os i imagine ?
Any help is greatly appreciated...
Thanks in advance...
Guillaume

THE SCRIPT:

function killOpera() {
var op = navigator.userAgent.indexOf('Opera') != -1;

if (op) {
document.getElementById('topSword').style.display = 'none';
document.getElementById('topSwordOpera').style.display = 'block';

}
}

onload = killOpera;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top