MyBB Community Forums

Full Version: Adding flash banner.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Has anyone added a .swf as a header/banner.
I know it can be done ofcourse but not sure on the code required.
I know when i used the old dreamweaver mx it was just a simple piece of code to add flash.. But when i started with Dreamweaver Cs3 it added some java script to embed the flash item.
I think that the java was or is required for newer releases of ie but not sure.
Is this the same process that is required for header.
Do i just delete the logo.gif link and place my flash code in there, or is there an easier way.

DAMINK


Ok i worked out how to do it.
I simply went to Templates /modify/delete then expanded my theme then edit header and i removed the whole header link and replaced with below code.

<object classid="clsidBig Grin27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="700" height="100">
<param name="movie" value="http://www.yourdomain.com/whatever.swf">
<param name="quality" value="high">
<embed src="http://www.yourdomain.com/header.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="700" height="100"></embed>
</object>

There is proberbly a better way to do it.
Actually that way doesnt allow the link back to index.php so perhaps add that if you want that feature.
But it does work none the less.
Hope that helps someone.

DAMINK
That's basically the best way to go.

I don't think you can wrap the swf in <a href="{$mybb->settings['bburl']"> ... </a> (you can give it a try though). I think you have to make a button (in Flash) that covers the entire swf and code the ActionScript to redirect to the index.
Thanks DennisTT.
It seems to work ok.
I have only tested in ie7 and firefox though.
I agree with the action script for a button. I thought about it last night and come up with the same conclusion.


DAMINK