WordPress.org

Forums

Flash banner logo - how to? (8 posts)

  1. GhostCom
    Member
    Posted 8 years ago #

    I'm using the "mistylook" theme for my site and wants to replace the default banner with a flash file (swf). The current picture is loaded from the stylesheet:

    #headerimage {
    clear: both;
    background: #fff url(img/misty.jpg) no-repeat 0px 0px;
    margin: 10px;
    color: #fff;
    height: 200px;
    }
    html #headerimage {
    margin-top: 0px;
    }

    How do I change the code so that I can use my flash logo?

    Thx in advance :)

  2. Doodlebee
    Member
    Posted 8 years ago #

    Flash does not go in your stylesheet. No, no, no. Flash is *not* an image.

    You put it in your HTML document. When you complete the creation of a Flash movie, you can choose to export it. do that, and it tells you *exactly* what to plug into your HTML.

  3. Everdos
    Member
    Posted 8 years ago #

    It might be me, but I still don´t get. I use fgala theme, but i don´t no to what HTML document you refer?! I know how to upload flash objects in HTML pages, but don´t get my head around the PHP header file.

    Could someone give me the golden script or tips?

    Thanks!

  4. rocklv
    Member
    Posted 8 years ago #

    find DIV "headerimage" in your header PHP file, change

    <div id="headerimage">
    </div>

    to

    <div id="headerimage">
    <object >...</object>
    </div>

  5. Doodlebee
    Member
    Posted 8 years ago #

    Right - what Rock said :)

  6. Everdos
    Member
    Posted 8 years ago #

    Thanks a lot until so far, but I´m not there yet
    I found this before the problem however, as soon as I open it in my browser, I get 'press to activate the operation system'.
    Do you prehaps have an idea how to take this bit?
    BTW the blog is at http://www.evertvinkonline.nl/wordpress and it´s in the header.

    Thanks.
    Evert

  7. Doodlebee
    Member
    Posted 8 years ago #

    Ever - it's working fine in Firefox. If you're talking about IE, and the fact that it asks the end user if they want to open the object, there's not much you can do about that. (You can Google on it though - I *have* seen a solution before).

    Basically, IE recently lost a lawsuit. The lawsuit stated that Microsoft infringed on some company's patent, and Microsoft now has a judgement lein against them, somewhere to the tune of $500 Million. They're trying to avoid paying this fine for infringement by introducing an "update" (it was sent out to IE users on April 11) that basically prevented users of IE to automatically play objects like Flash, Java, Quicktime, etc.

    Like I said, there *is* a fix, but I can't remember what it is off the top of my head. If you Google for it, you may find it (I believe it's a javascript).

  8. GhostCom
    Member
    Posted 8 years ago #

    rocklv: thx a lot! it worked :)
    My site can be seen at http://www.ghostcom.dk

    Everdos: I had the same problem and here's the solution:

    Copy the following into notepad and name the file swfmc.js:

    // Solution for the IE Active X blocked problem.
    /*
    Programmed by Carlos Landaeta
    E-Mail: call6108@gmail.com
    Comments:
    If you were going nuts about the ACTIVEX thing and I gave you the solution,
    please email me back saying thank you ;)

    This program is under GPL License, which can be found at http://www.gnu.org/copyleft/gpl.html
    ----------------------------------------------------------------------------------------------
    Step 1 - In order to make this work you have to add this line between you <head> Tags.
    Create a directory and call it "includes". Place this file inside the folder
    <script src="includes/swfmc.js" type="text/javascript"></script>

    Step 2 - Replace your flash movie with the following code and fill it out with the information of your flash movie clip.
    <script language="javascript" type="text/javascript">
    swfmc("flashmovie.swf","width","height");
    </script>
    */

    function swfmc(movie,width,height)
    {
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="');
    // Width for Object TAG
    document.write(width);
    document.write('" height="');
    // Height for Object TAG
    document.write(height);
    document.write('">\n');
    // File for Object TAG
    document.write('<param name="movie" value="');
    document.write(movie);
    document.write('">\n');

    // Params for Object TAG
    document.write('<param name="quality" value="high">\n');
    document.write('<param name="menu" value="false">\n');

    // File for EMBED TAG
    document.write('<embed src="');
    document.write(movie);
    document.write('" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="');
    // Width for EMBED TAG
    document.write(width);
    document.write('" height="');
    // Height for EMBED TAG
    document.write(height);

    // Params for Object TAG
    document.write('" menu="false"></embed>\n');
    document.write('</object>');
    }

Topic Closed

This topic has been closed to new replies.

About this Topic