2008-03-22, 07:14 AM
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="clsid27CDB6E-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
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="clsid27CDB6E-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