Page 1 of 1
Flash Banner on CMSMS
Posted: Fri Aug 03, 2007 8:31 am
by huguix
Hi there,
I'm running CMSMS on wamp server (PHP5 - Apache2 - MySQL5) and i'm trying to put an swf on my site's header. I've allready uploaded the swf file to the correct folder. Now i have to edit the "Layout: Top menu + 2 columns" css stylesheet on the header div, right? But i can't do it on the background tag where the gif or jpg information is.. It has something to do with an object tag, but where can i place it?
i know it's easy and must be a recorrent question...thks in advance,
keep up the good work!
Hugo
Re: Flash Banner on CMSMS
Posted: Fri Aug 03, 2007 3:29 pm
by Nullig
The way I add flash banners is to put them into the template, within the "header" like:
Code: Select all
<div id="header">
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0"
id="moviename"
width="999"
height="99">
<param name="movie" value="path/to/swf" />
<param name="bgcolor" value="#6699FF" />
<param name="quality" value="high" />
<param name="allowscriptaccess" value="samedomain" />
<embed
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
name="moviename"
width="999" height="99"
src="path/to/swf"
bgcolor="#6699FF"
quality="high"
swliveconnect="true"
allowscriptaccess="samedomain">
<noembed>
</noembed>
</embed>
</object>
<hr class="accessibility" />
</div>
Of course, you'd have to change the names, paths and dimensions in the above code to suit your needs.
Nullig
Re: Flash Banner on CMSMS
Posted: Sun Aug 05, 2007 8:55 pm
by ironblaze94
Nullig wrote:
The way I add flash banners is to put them into the template, within the "header" like:
Code: Select all
<div id="header">
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0"
id="moviename"
width="999"
height="99">
<param name="movie" value="path/to/swf" />
<param name="bgcolor" value="#6699FF" />
<param name="quality" value="high" />
<param name="allowscriptaccess" value="samedomain" />
<embed
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
name="moviename"
width="999" height="99"
src="path/to/swf"
bgcolor="#6699FF"
quality="high"
swliveconnect="true"
allowscriptaccess="samedomain">
<noembed>
</noembed>
</embed>
</object>
<hr class="accessibility" />
</div>
Of course, you'd have to change the names, paths and dimensions in the above code to suit your needs.
Nullig
funny thing is i use this exact same method to allow firefox and internet explorer to show the flash. but it doesn't validate
Re: Flash Banner on CMSMS
Posted: Mon Aug 06, 2007 12:02 am
by Nullig
Yes, that method won't validate. If you're interested in validation, then you should use SWFObject to place your flash movies. It is available here:
http://blog.deconcept.com/swfobject/
Nullig