Web Design and Development Forums

Javascript & Flash video problem in IE

This is a discussion on "Javascript & Flash video problem in IE" within the JavaScript Forum section. This forum, and the thread "Javascript & Flash video problem in IE are both part of the Program Your Website category.


Go Back   Webforumz.com > Program Your Website > JavaScript Forum

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old Apr 30th, 2008, 08:00   #1 (permalink)
New Member
 
Join Date: Apr 2008
Location: viet nam
Posts: 2
Javascript & Flash video problem in IE

PLs Help me to check what is wrong with this code?

HTML: Select all
 
<!--<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
   
      function change(node) {
    var video   = document.getElementById('video_container');
    var n_video = video.cloneNode(true);
    
    n_video.src = "flash/video" + node.value + ".swf";

    video.parentNode.replaceChild(n_video, video);
}



      </SCRIPT>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
function change(node) {
    var video = document.getElementById('video_container');
    var o_param = video.getElementsByTagName('param')[0];
var src       = 'flash/video' + node.value + '.swf';
o_param.value = src;

    var embd      = video.getElementsByTagName('embed')[0];
    embd.setAttribute('src', src);

   var n_video   = video.cloneNode(true);


    
     video.parentNode.replaceChild(n_video, video);
}

  </SCRIPT>-->
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
function change(node) {
    var video = document.getElementById('video_container');
    var o_param = video.getElementsByTagName('param')[0];
var src = 'flash/video' + node.value + '.swf';
o_param.value = src;

       
      if (typeof window.event == 'undefined') {
  
          var embd = video.getElementsByTagName('embed')[0];
  
          embd.setAttribute('src', src);

      }

   var n_video = video.cloneNode(true);


    
     video.parentNode.replaceChild(n_video, video);
}

  </SCRIPT>
      <table>
         <tr>
  
          <td style="padding-left:0px;"><table width="204" border="0" cellpadding="0" cellspacing="0">
  
<tr>
                <td colspan="3" style=" border-bottom:#ffffff 1px solid"><a href="index.php?l1=163&l2=166"><img src="img/latestnews.gif" alt="news" width="204" height="41" border="0" /></a></td>
              </tr>
<tr>
                <td colspan="0" bgcolor="#c0c8c7" align="left" >  <? include("small.php"); ?></td>
              </tr>
    <tr><td height="7px" bgcolor="#ffffff"></td></tr>
          <tr>
            <td  colspan="3" bgcolor="#c0c8c7" height="10" style="padding-left:4px; border-bottom:#999999 1px solid;" align="left"  ><img src="css/arrow_blue.gif" width="8" height="9"  /><a href="quote.php"><font color="#4a5e5c"> Find Quotes and Indices</font></a></td></tr> 
</table></td>
  
        </tr>
        <table><tr width="204px" bgcolor="#c0c8c7">
  
          <td  align="right"><table width="100%" border="0" cellpadding="3">
  
<tr>

                <td>Video
                  <select name="select"    style="width:140px;" onchange="change(this);">
  
                 

                    <option id="0"  value="0">VFM - ad</option>

                      <option id="1" value="1">VFM - Introduction</option>

                      <option id="2" value="2">VFM - VietNam: The potential market</option>
  
                  </select>          </td>
  
            </tr>
            </table>

<!--<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
WIDTH="202" HEIGHT="220" id="video_container"><param name="movie" value="flash/video0.swf" /><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF><EMBED src="flash/video0.swf"  id="video_container" quality=high bgcolor=#FFFFFF WIDTH="202" HEIGHT="200"
NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT></tr></table>
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
WIDTH="170" HEIGHT="220"><param    name="quality" value="high" />
        <embed src="flash/video0.swf" width="170" height="220" loop="false" align="right"  id="video_container" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" AUTOPLAY="FALSE" play="false"></embed>  </object>   -->
  
<!--<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"" width="202" height="200"  id="video_container"><param name="movie"   value="flash/video0.swf" /> <param name="quality" value="high" /> </object> -->

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" 
    width="202" height="230" id="video_container">
    <param name="movie" value="flash/video0.swf" />
    <embed src="flash/video0.swf" width="202" height="230" 
        quality="high" name="movie"
        type="application/x-shockwave-flash"
        pluginspage="http://www.macromedia.com/go/getflashplayer"/>    
</object>


    </tr></table>
Output link:http://www.purpleasia.com/clients/VF...dex.php?l1=161
The problem is video at right hand side ,it's working in firefox but in IE can not change the video from select box.
Any ideas for this. thanks so much.
let2008 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 2nd, 2008, 09:58   #2 (permalink)
New Member
 
Join Date: Apr 2008
Location: viet nam
Posts: 2
Re: Javascript & Flash video problem in IE

http://www.purpleasia.com/clients/VF...dex.php?l1=160 --->change for above link
let2008 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't see skin on flash video Lchad Flash & Multimedia Forum 11 Aug 31st, 2007 05:09
Loading video into flash Penny Flash & Multimedia Forum 8 Jul 25th, 2007 15:16
Flash Video, NEED HELP! skilladesigns Flash & Multimedia Forum 1 Apr 25th, 2007 18:33
Problem with iframe & Javascript - Trying to communicate with a flash movie victorpantet JavaScript Forum 1 Feb 5th, 2006 03:06
Javascript Video Control Resources SynReaper JavaScript Forum 0 Jan 23rd, 2006 01:25



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 19:13.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59