w3c approved music player, unapproved <embed> tag |
![]() ![]() |
w3c approved music player, unapproved <embed> tag |
![]()
Post
#1
|
|
Newbie ![]() Group: Member Posts: 4 Joined: Nov 2009 Member No: 753,881 ![]() |
CODE <embed src="http://assets.myflashfetish.com/swf/mp3/minime.swf?myid=35806491&path=2009/11/22" quality="high" wmode="transparent" flashvars="mycolor=704d35&mycolor2=d94e4e&mycolor3=ff9582&autoplay=true&rand=0&f=4&vol=100&pat=0&grad=false" width="160" height="68" name="myflashfetish" salign="TL" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" border="0" style="visibility:visible;width:160px;height:68px;" /> i want to add a music player to my first website, which is also my final for my html class and he said that we can but everything must validate and <embed> tag doesn't validate is there any music players out their i can put on my site that will validate? my friend said i should find a player that uses the <object> tag instead but i don't know where to look...any suggestions for a solution ? ![]() |
|
|
![]()
Post
#2
|
|
![]() /人◕‿‿◕人\ ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 8,283 Joined: Dec 2007 Member No: 602,927 ![]() |
iirc you can replace the embed tag with the object tag with almost no changes to the rest of the code.
Also, validation doesn't mean shit in the real world. For example, there isn't a single page on Myspace that validates correctly. All you get is the ability to put that buttugly "W3C valid HTML" tag on your page without lying. |
|
|
![]()
Post
#3
|
|
Newbie ![]() Group: Member Posts: 4 Joined: Nov 2009 Member No: 753,881 ![]() |
that may be so but for this final project it does matter, so yeah ..
|
|
|
![]()
Post
#4
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 1,237 Joined: May 2008 Member No: 648,123 ![]() |
Not to be too insulting, but I'm a bit curious if you've learned anything in your HTML class, or if you were taught anything. Short of doing your final for you, any <embed> tag can be formed with an <object> tag.
Values that are passed through the <embed> tag are passed through <object> with <param> tags. The "src" in <embed> is "data" in <object>. On a side note...damn excellent playlist :) |
|
|
![]()
Post
#5
|
|
Newbie ![]() Group: Member Posts: 4 Joined: Nov 2009 Member No: 753,881 ![]() |
um yeah this class is half a semester and he didn't say anything about that, can you elaborate how i can replace the tags to make it validate? and is there a way for me to keep the playlist streaming while the user is navigating through the site ? instead of having it start all over again when they go to different pages?
|
|
|
![]()
Post
#6
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 1,237 Joined: May 2008 Member No: 648,123 ![]() |
CODE <object data="SOURCE" height="XX" width="XX"> <param name="NAME" value="VALUE"> </object> Granted, how the <param> tag is formed depends on your doctype. It's an empty element. To keep it streaming while a user browses, no. The only way would be with a popup player (don't do it), frames (don't use them), or build the site with Flash (which sort of goes against the idea of an HTML class). |
|
|
![]()
Post
#7
|
|
Newbie ![]() Group: Member Posts: 4 Joined: Nov 2009 Member No: 753,881 ![]() |
haha ok thanks for you help i think im just not gonna put music, man im really behind on this project and its due tommrow so looks like a all nighter O_o
|
|
|
![]()
Post
#8
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Administrator Posts: 8,629 Joined: Jan 2007 Member No: 498,468 ![]() |
Topic Closed and Moved
PM me if you need this reopened. |
|
|
![]() ![]() |