Announcement

Collapse
No announcement yet.

Unable to add a flash header

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unable to add a flash header

    Adding a Flash header.
    I am trying to add a flash movie to the header.
    Can easily add an image, but not object or java - driving me nuts. Have tried various approaches without success. Using site builder and adding the object to the HeadAd:
    PHP Code:
      <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="1000" height="300" id="header" align="middle"><param name="allowScriptAccess" value="sameDomain"><param name="movie" value="http://www.xxx.com/flash/header.swf"><param name="quality" value="high"><param name="bgcolor" value="#212121"><embed src="http://www.xxx.com/flash/header.swf" quality="high" bgcolor="#212121" width="1000" height="300" name="header" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></object

    it does not even show the code, i.e., after saving and looking at source, it is not even displayed although the Edit HeaderAd shows that the code is there.
    If I add it as a javascript:
    PHP Code:
      <script>
      function 
    RunMain()
      {
      
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="1000" height="300" id="header" align="middle"><param name="allowScriptAccess" value="sameDomain"><param name="movie" value="http://www.xxx.com/flash/header.swf"><param name="quality" value="high"><param name="bgcolor" value="#212121"><embed src="http://www.xxx.com/flash/header.swf" quality="high" bgcolor="#212121" width="1000" height="300" name="header" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></object>\n');
      }
      </
    script>
      <
    script type="text/javascript">RunMain();</script

    it ends up being displayed in the source, but it is not executed. Interetingly enough, using the javascript, I do get a notice saying that "Flash Header" will be displayed when saved (although it is not), something that does not happen with just the object.
    Have even tried hard coding it into the header template (both ways) and neither displays the flash. I get a blank area where it belongs (by all methods), but no display. It is NOT a question of the swf file not loading properly as right clicking on the blank area does not identify the area as flash.
    Any ideas? Vbb 3.x was so much easier...
    Thanx

    Adding a Flash header.
    I am trying to add a flash movie to the header.
    Can easily add an image, but not object or java - driving me nuts. Have tried various approaches without success. Using site builder and adding the object to the HeadAd:
    PHP Code:
      <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="1000" height="300" id="header" align="middle"><param name="allowScriptAccess" value="sameDomain"><param name="movie" value="http://www.xxx.com/flash/header.swf"><param name="quality" value="high"><param name="bgcolor" value="#212121"><embed src="http://www.xxx.com/flash/header.swf" quality="high" bgcolor="#212121" width="1000" height="300" name="header" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></object

    it does not even show the code, i.e., after saving and looking at source, it is not even displayed although the Edit HeaderAd shows that the code is there.
    If I add it as a javascript:
    PHP Code:
      <script>
      function 
    RunMain()
      {
      
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="1000" height="300" id="header" align="middle"><param name="allowScriptAccess" value="sameDomain"><param name="movie" value="http://www.xxx.com/flash/header.swf"><param name="quality" value="high"><param name="bgcolor" value="#212121"><embed src="http://www.xxx.com/flash/header.swf" quality="high" bgcolor="#212121" width="1000" height="300" name="header" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></object>\n');
      }
      </
    script>
      <
    script type="text/javascript">RunMain();</script

    it ends up being displayed in the source, but it is not executed. Interetingly enough, using the javascript, I do get a notice saying that "Flash Header" will be displayed when saved (although it is not), something that does not happen with just the object.
    Have even tried hard coding it into the header template (both ways) and neither displays the flash. I get a blank area where it belongs (by all methods), but no display. It is NOT a question of the swf file not loading properly as right clicking on the blank area does not identify the area as flash.
    Any ideas? Vbb 3.x was so much easier...
    Thanx

  • #2
    Wrap your javascript in <vb:literal> </vb:literal>

    Comment


    • #3
      Haven't tried it yet and leaving town for a few days, but trust you

      Thanx

      Comment


      • #4
        Spoke too soon - tried it and doesn't work.

        This is what I have:

        Code:
        <vb:literal>
        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="1000" height="300" id="header" align="middle"><param name="allowScriptAccess" value="sameDomain"><param name="movie" value="http://www.xxx.com/flash/header.swf"><param name="quality" value="high"><param name="bgcolor" value="#212121"><embed src="http://www.xxx.com/flash/header.swf" quality="high" bgcolor="#212121" width="1000" height="300" name="header" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></object>
        </vb:literal>
        Tried it also with the javascript. All I get displayed is:
        <vb:literal></vb:literal>, nothing of what is in between



        <vb:literal></vb:literal>
        Last edited by Wayne Luke; Tue 12th Nov '13, 3:28pm.

        Comment


        • #5
          What happens if you put the code in another location? Does it work there?
          Translations provided by Google.

          Wayne Luke
          The Rabid Badger - a vBulletin Cloud demonstration site.
          vBulletin 5 API - Full / Mobile
          Vote for your favorite feature requests and the bugs you want to see fixed.

          Comment


          • #6
            Well, it works everywhere EXCEPT within vb5. Have the exact thing working just fine in vb3.8.7. No matter where I put it in vb, I get nothing

            Comment


            • #7
              I guess nobody knows how to fix this ???

              Comment


              • #8
                I am still trying to get a flash movie playing in the header without any luck. Anyone have any idaeds?

                Comment

                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                Working...
                X