javascript - Can anyone tell me why this .SWF loads fine into IE but not firefox or chrome? -


Why is this SWF loaded via Javascript? This is a required browser

HTML:

  & lt ;! DOCTYPE HTML Public "- // W3C // DTD XHTML 1.0 Transcription // N" "http: //www.w3 org / TR / xhtml1 / dTD / xhtml1-transitional.dtd" & gt; & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" xml: lang = "en" lang = "en" & gt; & Lt; Top & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = utf-8" & gt; & Lt; Title & gt; Host & amp; Nbsp; Log-in & lt; / Title & gt; & Lt ;! - saved from url = (0014): Internet - & gt; & Lt; Style type = "text / css" & gt; Body {background color: #FFFFFF; } & Lt; / Style & gt; & Lt; / Head & gt; & Lt; Body style = "margin: auto;" OnLoad = "javascript: sf.focus ()" & gt; & Lt; Br / & gt; & Lt; Script type = "text / javascript" language = "javascript" & gt; & Lt ;! - function doFSCommand (command, args) {} //} -> & Lt; / Script & gt; & Lt; Script language = "vbscript" type = "text / javascript" & gt; & Lt ;! - sub-sf_FSCommand (ByVal command, ByVal args) call doFSCommand (command, args) end sub // - & gt; & Lt; / Script & gt; & Lt; Img src = "/ img / infinite-logo.png" width = "248" height = "85" alt = "infinite" & gt; & Lt; Br> & Lt; Script language = "javascript" src = "swf.js" & gt; & Lt; / Script & gt; & Lt; Br> & Lt; / Body & gt; & Lt; / Html & gt;   

js:

  document.write ('& lt; object class =' ​​clayed: D27CDB6E-AE6D-11cf-96B8-444553540000 "codebase =" Http: //download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0 "width =" 1280 "height =" 753 "id =" sf "VIEWASTEXT & Gt; '); Document.write (' & lt; param name = "movie" value = "host login.svf" />;); Document.write (' gt; write.write (' & lt; param name = 'wmode) "Document.write ('& lt; param name =" allowScriptAccess "value =" always "/>;); Document.write (' & lt; param name = "Allowable screen" value = "true" />;);); documen T.write ('& lt; embed src = "host login swf" quality = "high" name = "sf" allowScriptAccess = "always" Allow FullScreen = "true" pluginspage = "http: //www.macromedia .com / go / getflashplayer "type =" application / x-shockwave-flash "width =" 1280 "height =" 753 "& gt; & Lt; / Embed & gt; '); Document.write ('& lt; / object & gt;');    

& lt; Embed & gt; should not tag & lt; Object & gt; > Inside & lt; Object & gt; Try going outside the tag and see if it helps.

Comments