1 Reply Latest reply on May 2, 2006 3:08 PM by Newsgroup_User

    Please help!!!

    CorrieMac
      I have read the many messages about the IE Update effecting how flash is viewed on the web. I have been working at trying to fix this problem for one of my clients for about a week now and am very frustrated. I'm a freelance webdesigner and I know very little on code. I rely heavily on FrontPage to do the code for me. Based on the information in the forum I have created the following code. However, I keep getting an error. Can someone please let me know what I'm doing wrong? Thanks so much in advance!

      Here is the code that is in the ieupdate.js file I created...
      <html>

      <head>
      function commM()
      {
      document.write<object classid="clsid 27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="150" height="220">\n');
      document.write('<param name="movie" value="nav2.swf">\n');
      document.write('<param name="quality" value="High">\n');
      document.write('<embed src="nav2.swf" pluginspage=" http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="150" height="220"></object>}<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">\n');
      document.write('<object>\n');
      <title>New Page 1</title>
      </head>

      <body>

      </body>

      </html>


      Then in the head section of my html I have...
      <script src="ieupdate.js" type="text/javascript"></script>

      Then in the place where I want the flash movie to run I have...
      <script type="text/javascript">commM();</script>


      The name of the flash file is nav2.swf What am I doing wrong? Please help!!!!
        • 1. Re: Please help!!!
          Level 7
          Here is a simple way.
          You need to do three things and I will give examples as follows.

          1. all of the <object> tag must be taken out and put into a .js file and
          placed within a function where you document.write the <object tag>
          2. you must include that .js file in the header of the html where the swf
          resided
          3. call the js function from step 1


          --Here is a sample of Step 1, save this file as commFile.js:

          function commM()
          {
          document.write('<object classid="clsid 27CDB6E-AE6D-11cf-96B8-444553540000"
          codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
          width="410" height="345">\n');
          document.write('<param name="movie" value="/mySWF.swf">\n');
          document.write('<param name="quality" value="high">\n');
          document.write('<embed src="/mySWF.swf" quality="high" +'"
          pluginspage=" http://www.macromedia.com/go/getflashplayer"
          type="application/x-shockwave-flash" width="410" height="345"></embed>\n');
          document.write('</object>\n');
          }



          --Here is a sample for Step 2, put this in the head of your html page:

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



          --Here is a sample for Step 3, place this code on the spot of the page where
          you want your flash to show up:

          <script type="text/javascript">commM();</script>


          That should be all you need.

          --

          Dan Mode
          *Must Read* http://www.smithmediafusion.com/blog
          *Flash Helps* http://www.smithmediafusion.com/blog/?cat=11