Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.

Thread Tools Display Modes
Share |
Old 02-23-2009, 12:37 PM
jllav jllav is offline
Junior Member
Join Date: 02-23-09
Posts: 11
iTrader: 0 / 0%
Playing Music files in XHTML

My web page is using doctype:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Currently, the object tag below allows me to click on an image which initiates a music file. (In this case, when a user clicks on the Little Miss Muffet image, a song starts in Windows Media Player). But I also want to give the user the ability to control the music, ie: stop, forwad, pause it, etc. I could use an <embed> tag but that tag is no longer compatible with XHTML.

Any ideas on how I can alter the code below?

<object type="audio/wma" data="nursery rhyme">
<param name="src" value="music file" />
<param name="autoplay" value="false" />
<param name="autoStart" value="0" />
<a href="music/muffet.wma">
<img border="0" src="http://www.v7n.com/forums/images/missmuffet1.jpg" alt="Little Miss Muffet" height="190" width="120" /></a>

Thanks in advance.
Reply With Quote



Old 02-23-2009, 06:02 PM
Izzmo's Avatar
Izzmo Izzmo is offline
v7n Mentor
Join Date: 11-01-03
Location: Kansas
Posts: 1,356
iTrader: 1 / 100%
Yeah... I would probably go with a Silverlight or Flash player now a days. Embedding stuff really gets flakey with cross-browser and cross-system compatability.

It would just be easier to do a Flash Player really.
Reply With Quote
Old 02-24-2009, 07:30 AM
jllav jllav is offline
Junior Member
Join Date: 02-23-09
Posts: 11
iTrader: 0 / 0%
Gotcha, ok thanks.

I guess I’m using old technology band aids. Need to get up to speed with web 2.0 media!
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Playing HD video files (1440x1080 res) blosennin8 Tech Talk 1 10-03-2008 08:02 PM
Playing music on a website moopyseo Coding Forum 6 10-01-2007 03:36 AM
Anyone knows a javascript for playing music midis or files? crazyhorse Coding Forum 0 08-09-2004 10:16 AM
SEO - For music files T-Kai SEO Forum 14 11-10-2003 07:49 AM

V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory

All times are GMT -7. The time now is 02:28 AM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC