• 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 ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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.

    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!

    find DIV “headerimage” in your header PHP file, change

    <div id=”headerimage”>
    </div>

    to

    <div id=”headerimage”>
    <object >…</object>
    </div>

    Right – what Rock said ??

    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 https://www.evertvinkonline.nl/wordpress and it′s in the header.

    Thanks.
    Evert

    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).

    Thread Starter ghostcom

    (@ghostcom)

    rocklv: thx a lot! it worked ??
    My site can be seen at https://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: [email protected]
    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 https://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=”https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0&#8243; 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=”https://www.macromedia.com/go/getflashplayer&#8221; 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>’);
    }

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Flash banner logo – how to?’ is closed to new replies.