The Sea King Posted February 10, 2008 Share Posted February 10, 2008 I tried to make the code to play music through Media Player 7 and newer. But I have no idea on to how to do that.This was my try...<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6"><param showcontrols="true" autostart="true" audiostream="true" name="FileName" value="http://www.freewebs.com/lostwaterdownloads/Peaceful.mp3"></object> Link to comment Share on other sites More sharing options...
Ingolme Posted February 10, 2008 Share Posted February 10, 2008 The <param> element only has "name" and "value" attributes. <object> elements with classid and codebase attributes will only work in Internet Explorer.try the following code: <!-- IMPORTANT: object must have a width and height defined, modify the "style" attribute to your liking --><!-- code for Internet Explorer --><object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" style="width: 200px; height: 50px;" type="audio/mpeg" data="http://www.freewebs.com/lostwaterdownloads/Peaceful.mp3"><param name="showcontrols" value="true"><param name="autostart" value="true"><param name="audiostream" value="true"><param name="FileName" value="http://www.freewebs.com/lostwaterdownloads/Peaceful.mp3"> <!-- code for other browsers --> <object data="http://www.freewebs.com/lostwaterdownloads/Peaceful.mp3" type="audio/mpeg" style="width: 200px; height: 50px;"> <param name="showcontrols" value="true"> <param name="autostart" value="true"> <param name="audiostream" value="true"> <param name="FileName" value="http://www.freewebs.com/lostwaterdownloads/Peaceful.mp3"> </object> <!-- end code for other browsers --></object> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.