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

Embedding a wma file 1

Status
Not open for further replies.

danima

Programmer
Jan 9, 2002
134
0
0
CA
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?
 
Typing "embed wma without controls" into Google gives this as the first hit:


Notice they have a "showControls" parameter set to "true". Perhaps if you set this to "false"...

Hope this helps,
Dan

Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top