Matsaki
Registered
Why can't Safari just use the normal Browser standards for Javasripts?
An example I have is a Play Sound function which is used for a rollover image:
function MM_controlSound(x, _sndObj, sndFile) { //v3.0
var i, method = "", sndObj = eval(_sndObj);
if (sndObj != null) {
if (navigator.appName == 'Netscape') method = "play";
else {
if (window.MM_WMP == null) {
window.MM_WMP = false;
for(i in sndObj) if (i == "ActiveMovie") {
window.MM_WMP = true; break;
} }
if (window.MM_WMP) method = "play";
else if (sndObj.FileName) method = "run";
} }
if (method) eval(_sndObj+"."+method+"()");
else window.location = sndFile;
}
When running this JS Safari is opening the Player (QT) which I don't want, and if I comment out the last line (//else window.location = sndFile
The sound will play in Explorer or Mozilla without opening any player but in Safari it will do nothing
Did anyone have the same problems and found a fix?
An example I have is a Play Sound function which is used for a rollover image:
function MM_controlSound(x, _sndObj, sndFile) { //v3.0
var i, method = "", sndObj = eval(_sndObj);
if (sndObj != null) {
if (navigator.appName == 'Netscape') method = "play";
else {
if (window.MM_WMP == null) {
window.MM_WMP = false;
for(i in sndObj) if (i == "ActiveMovie") {
window.MM_WMP = true; break;
} }
if (window.MM_WMP) method = "play";
else if (sndObj.FileName) method = "run";
} }
if (method) eval(_sndObj+"."+method+"()");
else window.location = sndFile;
}
When running this JS Safari is opening the Player (QT) which I don't want, and if I comment out the last line (//else window.location = sndFile
The sound will play in Explorer or Mozilla without opening any player but in Safari it will do nothing
Did anyone have the same problems and found a fix?