Solved

Embedded YouTube Video Not showing in IE

Posted on 2008-10-14
8
2,737 Views
Last Modified: 2011-10-19
Experts:

Check out the link:

http://www.dannyesquivel.com/?page_id=208

There is an embedded youtube video that is showing fine in firefox and of course is not showing up in IE7

Attached is the code and the screenshot of the error,

thks!
<?php get_header(); ?>

<style type="text/css">

<!--

.style14 {

	color: #183152;

	font-size: 24px;

}

.style15 {

	font-family: "Arial Narrow";

	font-size: 24px;

	font-weight: bold;

}

.style17 {

	color: #000000;

	margin-left: 5px;

	font-family: "Arial Narrow";

	font-size: 14px;

}

.style19 {

	color: #000000;

	margin-left: 5px;

	font-family: "Arial Narrow";

	font-size: 12px;

}

.style22 {color: #000000; margin-left: 5px; font-family: "Arial Narrow"; font-size: 12px; }

.style27 {font-size: 18px}

.style29 {

	color: #183152;

	font-size: 18px;

	font-weight: bold;

}

-->

</style>

 
 
 
 

<script src="../../../../../Scripts/AC_ActiveX.js" type="text/javascript"></script>

<script src="../../../../../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>

<div id="homepage">
 

<div id="hpmain">
 

				
 

		<div class="hpmainleft">
 

		<div class="hpfeaturedbottom">
 

			
 
 

<div style="padding-top:10px; clear:both;"></div>

				<p align="justify" class="style15">Bienvenidos a marinapena.com!</p>

				<p align="justify">  	
 

<img style="margin-right:10px; "src="<?php bloginfo('template_url'); ?>/images/marina150.jpg" alt="<?php bloginfo('name'); ?>" width="105" height="128" align="left" /><span class="style5 style13"><span class="style17">Entender lo que sentimos es abrir una puerta para comprender nuestras acciones. El desarrollo de este sitio se enfoca principalmente<br />

			    en seguir difunedo y ayudando a mas personas a encontrar el camino para enfrentar la adversidad con mayor fotaleza<br />

			    Tener conciencia y conocer el valor del amor es la clave para lograr cualquier proposito en nuestras vidas. akdkajckjanckjandckjand<br />

			    lograr cualquier proposito en nuestras vidas. akdkajckjanckjandckjand<br />

			    lograr cualquier proposito en nuestras vidas. akdkajckjanckjandckjand lograr cualquier proposito en nuestras vidas. akdkajckjanckjandckjand lograr cualquier proposito en nuestras vidas. akdkajckjanckjandckjand lograr cualquier proposito<br />

			    en nuestras vidas. akdkajckjanckjandckjand lograr cualquier proposito en nuestras vidas. akdkajckjanckjandckjand</span></p>

		</div>
 

			

          <div style="padding-top:10px;border-top:1px dotted #C0C0C0; clear:both;"></div>

          <p align="justify"><img src="<?php bloginfo('template_url'); ?>/images/BOTTON1.gif" alt="<?php bloginfo('name'); ?>" width="104" height="35" align="middle" /><span class="style5 style13"><span class="style14"><span class="style11"><span class="style22">Transtorno de D&eacute;ficit de Atenci&oacute;n. Descubre qu&eacute; es este trastorno c&oacute;mo se manifiesta y qu&eacute; hacer para controlarlo. Mas detalles puedes encontrarlos en las seccion de CEPEF.</span></span></span></p>

          <ul>

            <div class="hpfeaturedbottom">

              

              

              

              

              <div style="padding-top:10px;border-top:1px dotted #C0C0C0; clear:both;"></div>

              <p align="justify"><img src="<?php bloginfo('template_url'); ?>/images/rojogif.gif" alt="<?php bloginfo('name'); ?>" width="104" height="35" align="middle" /><span class="style5 style13"><span class="style19">Descubre cuales son los problemas de aprendizaje mas comunes y algunos m&eacute;todos<br />

  que te podr&iacute;an ayudar.</span></p>

            </div>

            <div class="hpfeaturedbottom">

              

              

              

              

              <div style="padding-top:10px;border-top:1px dotted #C0C0C0; clear:both;"></div>

              <p align="justify"><img src="<?php bloginfo('template_url'); ?>/images/naranja.gif" alt="<?php bloginfo('name'); ?>" width="104" height="35" align="middle" /><span class="style5 style13"><span class="style19">Porqu&eacute; mi hijo es desafiante.<br />

  Encuentra cuales son las causas de esta conducta y estrategias pr&aacute;cticas de intervenci&oacute;n</span></p>

            </div>

            <span class="style19">

            <h3>

	                   <p>&nbsp;</p>

          </ul>

  </div>
 

		
 

<div class="hpmainright">
 

		
 

			<!--This section is where the custom images are found for the homepage right column - note the custom field name for this image is "homepage". Recommended image size is 82x55, as the stylesheet is written for this size.-->

<div style="padding-top:10px;border-top:1px dotted #C0C0C0; clear:both;"></div>
 

			  <p>

    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(4) ) : else : ?>

    <li id="links">
 

		<h2 align="left">Enlaces Importantes</h2>
 

			<ul>
 

				<?php wp_list_bookmarks('title_li=0&categorize=0&category=28&show_images=1&show_description=28&orderby=url'); ?>

			</ul>

	  </li>

        

        </p>

        <div style="padding-top:10px;border-bottom:1px dotted #C0C0C0; clear:both;"></div>

        

    </div> 

            

        <div class="hpfeaturedbottom">

          <p align="center" class="style25"><span class="style29">Video de Marina</span> </p>

          <div>

        <script type="text/javascript">

AC_AX_RunContent( 'width','390','height','300','align','middle','src','http://www.youtube.com/v/BkMNzDYgFlk&hl=en&fs=1&rel=0&color1=0x2b405b&color2=0x6b8ab6&border=1','type','application/x-shockwave-flash','allowfullscreen','true','movie','http://www.youtube.com/v/BkMNzDYgFlk&hl=en&fs=1&rel=0&color1=0x2b405b&color2=0x6b8ab6&border=1' ); //end AC code

</script><noscript><object width="390" height="300" align="middle">

          <param name="movie" value="http://www.youtube.com/v/BkMNzDYgFlk&hl=en&fs=1&rel=0&color1=0x2b405b&color2=0x6b8ab6&border=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/BkMNzDYgFlk&hl=en&fs=1&rel=0&color1=0x2b405b&color2=0x6b8ab6&border=1" width="390" height="300" align="middle" type="application/x-shockwave-flash" allowfullscreen="true"></embed></object></noscript>

  </div>

             

	<div style="padding-top:10px;border-top:1px dotted #C0C0C0; clear:both;"></div>

        

        <div class="hpfeaturedbottom">

				

          

        <div class="style27" style="float:right; margin:0px -15px 5px 0px; width:371px">

        

        

    

       

  <?php endif; ?>

  </p>

        </span></div>

      </div>

</div>

<span class="style27">

<!-- begin r_sidebar -->

</span></div>

<span class="style27">

<!-- begin r_sidebar -->

</span>

<p class="style27">

  <!-- end r_sidebar -->

  

  

  

  

  <!-- The main column ends  -->

  

  

  

  <?php get_footer(); ?>

</p>

Open in new window

screenshot.GIF
0
Comment
Question by:esquivelp
  • 3
  • 3
  • 2
8 Comments
 
LVL 44

Accepted Solution

by:
scrathcyboy earned 250 total points
ID: 22717991
Have you checked your active-X settings in Control panel, internet options?  I have mine set to not run active X scripts because it is a security risk -- but if active scripting is disabled, then no videos will show.  Keep in mind that people running IE who don't want viruses and trojans may disable active-X scripting.
0
 
LVL 1

Author Comment

by:esquivelp
ID: 22723023
Active Scripting is enable and I have checked in several computers and none of them seems to show the video. Is it showing for you?
0
 
LVL 54

Assisted Solution

by:b0lsc0tt
b0lsc0tt earned 250 total points
ID: 22723807
It did not show for me in IE.  Do you have the Youtube page that shows the video?  What is its URL?  The reason I ask is the URL is a little diferent from the usual one in embedded videos.  I wonder if that is a problem.
One other, possible cause is the script tags below do not return a good script page.  If that is needed for part of this in IE then that is a problem.

<SCRIPT src="../../../../../Scripts/AC_ActiveX.js" type=text/javascript></SCRIPT>
<SCRIPT src="../../../../../Scripts/AC_RunActiveContent.js" type=text/javascript></SCRIPT>
They had a http 400 error so it just may be a bad file name or path in the src attribute.  Are they part of the video or that section of the page?  What about the script that starts with "AC_AX_RunContent" and ends with "//end AC code"?  Does that relate?  It is in the same section.
I did notice a problem in the code for the object.  I have corrected it in the snippet below.  Basically it ended before it should and the noscript tag was in the wrong place.  I removed the noscript and fixed the object's closing tag.
Let me know how this works or if you have a question.  I did notice you had some style tags in the body.  Those need to be in the head section of the html instead.  I doubt this is a source of the problem but should be corrected.
bol

<OBJECT height=300 width=390 align=middle><PARAM NAME="src" VALUE="http://www.youtube.com/v/BkMNzDYgFlk&amp;hl=en&amp;fs=1&amp;rel=0&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;border=1"><PARAM NAME="allowfullscreen" VALUE="true"><PARAM NAME="movie" VALUE="http://www.youtube.com/v/BkMNzDYgFlk&amp;hl=en&amp;fs=1&amp;rel=0&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;border=1"><embed src="http://www.youtube.com/v/BkMNzDYgFlk&hl=en&fs=1&rel=0&color1=0x2b405b&color2=0x6b8ab6&border=1" width="390" height="300" align="middle" type="application/x-shockwave-flash" allowfullscreen="true"></embed></OBJECT>

Open in new window

0
 
LVL 44

Expert Comment

by:scrathcyboy
ID: 22724557
It will never show with active-X disabled, as I have it.  I just wanted to alert you to this fact in case you weren't aware of the issue.
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 22725327
The default IE setting would not stop the object.  Although that could definitely be a problem with a specific user it isn't the main problem on your page.  The code just doesn't work as you have it, hopefully for the reasons I mentioned.  You should be able to embed the video and IE users should be able to see it, if they haven't changed their settings to disable it.  If they can watch a youtube video in IE then it should work for them on this page once we get the code working.
bol
0
 
LVL 1

Author Comment

by:esquivelp
ID: 22727396
Hey guys!! Guess what?? Now its working, I don´t understand why, I tried with a different video and copy the embeded and with the following script is working now, I will split the points...

Thks pals!

 <div class="hpfeaturedbottom">

          <p align="center" class="style25"><span class="style29">Video de Marina</span> </p>

        

         <object width="390" height="349"><param name="movie" value="http://www.youtube.com/v/7sjSHazjrWg&hl=en&fs=1&color1=0x2b405b&color2=0x6b8ab6&border=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/7sjSHazjrWg&hl=en&fs=1&color1=0x2b405b&color2=0x6b8ab6&border=1" type="application/x-shockwave-flash" allowfullscreen="true" width="390" height="349"></embed></object>

Open in new window

0
 
LVL 1

Author Closing Comment

by:esquivelp
ID: 31506173
thks!
0
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 22727615
If that is the code you have now that works then it is most likely because of the corrections.  The object tag is closed correctly and the noscript tags aren't in the middle of the code.
If you agree that this is the fix then did you mean to assign a B grade?  It would seem our contributions and specifically that part of mine were the exact fix.  I am glad it is working but the grade makes it seem the answer isn't complete.  Let me know if that isn't the case and there was a mistake when you closed this.  It is easy to fix.  If you have a question let me know.
I'm glad it is working.
bol
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now