[SOLVED] Flash banner

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
CMSmonkey
Power Poster
Power Poster
Posts: 290
Joined: Thu Nov 27, 2008 4:58 pm

[SOLVED] Flash banner

Post 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?
Last edited by CMSmonkey on Tue Mar 03, 2009 2:31 am, edited 1 time in total.
CMSmonkey
Power Poster
Power Poster
Posts: 290
Joined: Thu Nov 27, 2008 4:58 pm

Re: Flash banner -- Getting closer

Post 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.
CMSmonkey
Power Poster
Power Poster
Posts: 290
Joined: Thu Nov 27, 2008 4:58 pm

Re: Flash banner

Post 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.
CMSmonkey
Power Poster
Power Poster
Posts: 290
Joined: Thu Nov 27, 2008 4:58 pm

Re: Flash banner

Post 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.
Post Reply

Return to “Layout and Design (CSS & HTML)”