After 8 years in the business of web design I'm embarassed to say that I really don't know how to embed a wma file without the controls. I've tried the following but I get an error....
IN THE HEAD
<script>
}
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;
}
//-->
</script>
THE BOTTOM OF PAGE
<object data="/audio/coldblue.wma" codetype="audio/x-ms-wma"> </object>
<embed name='CS1091944428707' src='/audio/coldblue.wma' loop="False"
autostart="True" mastersound hidden="True" width="0" height="0"></embed>
But I get an Unsafe Active X control message?
IN THE HEAD
<script>
}
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;
}
//-->
</script>
THE BOTTOM OF PAGE
<object data="/audio/coldblue.wma" codetype="audio/x-ms-wma"> </object>
<embed name='CS1091944428707' src='/audio/coldblue.wma' loop="False"
autostart="True" mastersound hidden="True" width="0" height="0"></embed>
But I get an Unsafe Active X control message?