Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do 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 Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 24th, 2009, 03:26 PM
Registered User
 
Join Date: Jun 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ActiveX Components-IE Conditional Comments - Writing code for IE & non-IE browsers

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>





Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to guess around ActiveX=COM Components asgarcymed VBScript 2 December 3rd, 2007 02:08 PM
ActiveX Components in asp kishore.kumar Classic ASP Components 2 March 9th, 2007 07:53 AM
Advantages /Disadvantages of ActiveX DLL & ActiveX priyank Beginning VB 6 6 February 19th, 2007 11:34 AM
Outputting Conditional Comments ole_v2 XSLT 2 November 13th, 2006 03:39 PM
Creating Activex DLL components vbmo Classic ASP Components 11 June 30th, 2003 04:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.