HTML Code ClinicDo you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the HTML Code Clinic section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
Working with ActiveX Components-
Internet Explorer Conditional Comments - Writing code for IE & non-IE Browsers
Hello,
1) This code is displaying just fine in IE 8, Opera 9.64 & Maxthon 2.5.1
(A QuickTime Player control followed by text.)
2) In Safari 4.0(530.17) the QuickTime player appears but NO TEXT appears... also Safari causes the audio to autoplay upon loading(that should not be happening)
3) In Firefox 3.0.11 the text appears but NO QUICKTIME PLAYER appears(only a QuickTime placeholder icon)
Could someone please describe what is actually happening and what modifications need to be performed on the code to make BOTH the text and QuickTime player appear?
Thank you.
Code:
<div class="boxContent">
<h2>Listen Up</h2>
<p style="text-align: center">
<!--[if IE]><!-->
<object data="overture.mp3" type="audio/mpeg"
classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="httpCOLON//wwwDOTappleDOTcom/qtactivex/qtpluginDOTcab"
Width="280" height="25" >
<!--<![endif]-->
<!--[if !IE]><!-->
<object data="overture.mp3" type="audio/mpeg"
width="280" height="25">
<!--<![endif]-->
<param name="src" value="overture.mp3" />
<param name="autoplay" value="false" />
<param name="autostart" value="false" />
<param name="controller" value="true" />
<param name="showcontrols" value="true" />
</object>
</p>
<p>The music for <i>Royal Wedding</i> was composed by Burton Lane,
who is best known for his work in <i>Finian's Rainbow </i>(1947)
and his Grammy Award-winning <i>On a Clear Day You Can See
Forever </i>(1965). Lane's greatest musical accomplishment may
very well be his discovery of an 11-year-old singing phenom named
Frances Gumm, whom the world now knows better as Judy Garland.</p>
</div>