N
Nitronic
I got this javascript code below and each time i got to a safari browser
it thinks its netscpe any ideas. But i threw in Safari code but it doesn't
work.
var browserName=navigator.appName;
// Menu offset y coordinate
if (browserName=="Netscape")
{
var StartTop=97; // Menu offset x coordinate
var StartLeft=-309;
}
//else
{
if (browserName=="Microsoft Internet Explorer")
{
var StartTop=105; // Menu offset x coordinate
var StartLeft=-310;
}
else if (browserName=="Safari")
{
var StartTop=95; // Menu offset x coordinate
var StartLeft=-130;
}
}
it thinks its netscpe any ideas. But i threw in Safari code but it doesn't
work.
var browserName=navigator.appName;
// Menu offset y coordinate
if (browserName=="Netscape")
{
var StartTop=97; // Menu offset x coordinate
var StartLeft=-309;
}
//else
{
if (browserName=="Microsoft Internet Explorer")
{
var StartTop=105; // Menu offset x coordinate
var StartLeft=-310;
}
else if (browserName=="Safari")
{
var StartTop=95; // Menu offset x coordinate
var StartLeft=-130;
}
}