Page 1 of 1
[SOLVED] Flash banner
Posted: Sat Feb 28, 2009 9:01 pm
by CMSmonkey
I have been reading around the forum on inserting a flash banner on the page. After reading this thread
http://forum.cmsmadesimple.org/index.ph ... #msg119027 I uploaded the function.object.php file to my plugins folder and uploaded my swf file into my uploads folder.
I got the code as indicated on the Help page of the php file:
{object src='uploads/header.swf' height='300' width='800' class='flashplayer'}
{object src='uploads/header.swf' height='300' width='800' param='quality::high||bgcolor::#ffffff' alt='Download Flash Player'}
But this is where I haven't got a clue what to do next...
What do I change in my template and/or stylesheet to change my jpg banner to an swf?
Re: Flash banner -- Getting closer
Posted: Sun Mar 01, 2009 7:55 pm
by CMSmonkey
So I am making changes to the template and stylesheet trying to get it to work.
When I change the [Panoramica] templates code of:
Code: Select all
<div id="header"><h1>This template is a Pixelhaus Studios original</h1>
to
Code: Select all
<div id="header">{object src='uploads/header.swf' height='299' width='739' class='flashplayer'}
I finally see the header, but it drops my tabbed menu from the top of the page to under the header.
Here is the header's code from the stylesheet:
Code: Select all
#header{
margin:0;
padding:0;
height:299px;
width: 739px;
background-image: url(uploads/Panoramica/header.jpg);
background-repeat: no-repeat;
float:left;
}
#header h1{
display:none
}
Can someone please tell me what to adjust so that the tabbed menu stays at the top?
Thank you.
Re: Flash banner
Posted: Mon Mar 02, 2009 1:26 am
by CMSmonkey
Digging deeper into the issue....
In the Panoramica template, the header is an image contains a white area at the top and a white area at the bottom, each with their own gradient radiating from the image. (See the template here:
http://themes.cmsmadesimple.org/index.p ... eturnid=63
I would like to be able to keep the white on the edges and only make the flash header the middle part, which takes up 740x230 of the 740x300 header.
Does anyone have any suggestions how I can do this? I am not an expert with css, or the templates, and help is deeply appreciated.
Re: Flash banner
Posted: Tue Mar 03, 2009 2:30 am
by CMSmonkey
Nevermind - I got.
I created 2 extra DIVs, created the top and bottom images to mirror the originals, inserted the top and bottom images in each DIV, and created the middle DIV for the .swf one.