Results 1 to 2 of 2

Thread: InnerHTML changing flash param value

  1. #1
    Join Date
    Aug 2010

    InnerHTML changing flash param value

    I am trying to assign flash param value through innerHTML, but it values get modified in IE, it works fine in firefox.

    I am setting allowfullscreen value as true, but after innerHTML, it values got modified to false

    please save the below code as HTML and see the result.

    In the below code var newDIVValue has allowfullscreen as true, but in the alert message which i have given, it value is false.

    please provide me some idea to set the value as true.
    function changeDiv(){
    var newDIVValue =  "<object cse='js' id='flash_'classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'width='780'height='439'><param name='allowFullScreen' value='true'><param name='Movie'		value='/cs/ENGInE/flash/ENGInE_media_player.swf' ><param name='Play'			value='True' ><param name='Loop'			value='' ><param name='Quality'		value='' ><param name='Align'		value='' ><param name='SAlign'		value='' ><param name='BgColor'		value='' ><param name='Scale'		value='' ><param name='Menu'			value='' ><param name='WMode'		value='Transparent' ><param name='Base'			value='/cs/ENGInE/flash' ><param name='FlashVars'	value='' <!--[if !IE]>--><object id='flash_' type='application/x-shockwave-flash' data='/cs/ENGInE/flash/ENGInE_media_player.swf' width='780' height='439'><param name='allowFullScreen' value='true'><param name='play'			value='True' /><param name='loop'			value='' /><param name='quality'		value='' /><param name='align'		value='' /><param name='salign'		value='' /><param name='BgColor'		value='' /><param name='scale'		value='' /><param name='menu'			value='' /><param name='wmode'		value='Transparent' /><param name='base'			value='/cs/ENGInE/flash' /><param name='flashvars'	value='' /><img src='' width='780' height='439' alt='' border='0' /></object><!--[endif]--><!--[if IE]>--><img src='' width='780' height='439' alt='' border='0' /><!--[endif]--></object>";
    var div = document.getElementById("xmltest");
    div.innerHTML = newDIVValue;
      <div id="xmltest">
    Last edited by Fang; 08-17-2010 at 03:10 AM. Reason: added BB Code http://www.webdeveloper.com/forum/misc.php?do=bbcode

  2. #2
    Join Date
    Apr 2003
    Use swfobject or DOM methods to alter the html.
    At least 98% of internet users' DNA is identical to that of chimpanzees

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center