Re: Embedded Windows Media player not launching for Macisers -
11-05-2005
, 08:01 PM
I had the opposite problem - making my Mac files work on Windows. I saved the
sound as an mp3 and linked to it. I didn't embed the player. That way, whatever
player the viewer has will play the sound. I type too slow to go through all
the steps, but DW generates this code in the <head> </head>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_checkPlugin(plgIn, theURL, altURL, autoGo) { //v4.0
var ok=false; document.MM_returnValue = false;
with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins &&
plugins.length)) {
ok=(plugins && plugins[plgIn]);
} else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1
if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null)
ok=window.MM_flash;
else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null)
ok=window.MM_dir;
else ok=autoGo; }
if (!ok) theURL=altURL; if (theURL) window.location=theURL;
}
//-->
</script>
The text links for Mac and Windows look like this, depending on your file
folder name and sound file name.
1a. <a href="anubiasongs/sound_1.mp3" onclick="MM_checkPlugin('QuickTime
Plug-In','anubiasongs/sound_1.mp3','anubiasongs/sound_1.mp3',false);return
document.MM_returnValue">Anubia Text Link Here / QuickTime Plug-In</a><br />
1b. <a href="anubiasongs/sound_1.mp3" onclick="MM_checkPlugin('Windows Media
Player','anubiasongs/sound_1.mp3','anubiasongs/sound_1.mp3',false);return
document.MM_returnValue">Anubia Text Link Here / Windows Media Player</a><br /> |