Results 1 to 7 of 7

Thread: Add Flash on header

  1. #1
    Andros is offline Active Member
    Join Date
    Sep 2001
    Posts
    179

    Default Add Flash on header

    I am trying to replace the banner with a flash but it will not work. Here are the steps done:

    I have added before head the following:

    <script src="swfobject.js" type="text/javascript"></script>
    <script type="text/javascript">
    var params = {
    loop: "true",
    bgcolor: "#ffffff"
    };
    swfobject.embedSWF("bannerflash.swf", "bannerflash", "468", "60", "6.0.65", false, false, params, false);
    </script>

    and where I want the flash banner to appear:

    <div class="banner" id="bannerflash"><p>alternative content</p> </div>

    When accessing site I see the text alternative content.

    note: bannerflash.swf and swfobject.js have been uploaded on same theme directory index.

    Any idea?

    Thank you

  2. #2
    FSGDAG's Avatar
    FSGDAG is offline Moderator
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    are the files located at the root of your site ( /index.php ) or are the files located in the root of your template directory ( /themes/<your_theme>/index.html )????
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  3. #3
    Andros is offline Active Member
    Join Date
    Sep 2001
    Posts
    179

    Default

    Files are located ate root of template directory themes/portal_dir/

  4. #4
    FSGDAG's Avatar
    FSGDAG is offline Moderator
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Put a copy of the files in the root of your site and see if that makes a difference. Because your not specifying where the files are located, I'm pretty sure its looking for them in the root of the site.
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  5. #5
    Andros is offline Active Member
    Join Date
    Sep 2001
    Posts
    179

    Default

    Tried it but still does not work. What else might be wrong?

  6. #6
    Andros is offline Active Member
    Join Date
    Sep 2001
    Posts
    179

    Default

    Hi FSGDAG figured it out, the code <%$hook_html_header_head%> was below the flash coding. Move it to the top and everything works fine now. Thanks for your help!

  7. #7
    FSGDAG's Avatar
    FSGDAG is offline Moderator
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Glad you were able to get it!!!
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

Similar Threads

  1. Header
    By sama in forum v5.x
    Replies: 2
    Last Post: 01-14-2008, 08:05 PM
  2. Log In In Header
    By exploreflorida in forum v5.x
    Replies: 0
    Last Post: 01-28-2007, 09:16 AM
  3. Insert Flash contents???
    By cabesoul in forum Tutorials, Hints & Tips
    Replies: 7
    Last Post: 04-30-2006, 02:23 AM
  4. php in the header
    By alfo in forum v5.x
    Replies: 1
    Last Post: 11-11-2004, 03:39 AM
  5. Replies: 2
    Last Post: 08-03-2003, 03:40 AM

Posting Permissions

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