Header = Flash
-
Can we put a flash file in our header? If we can put a .jpg in the header it seems we could put flash. I haven’t seen a motion header yet and wondering about it.
-
Yup. No reason why you can’t. You just do an embed.
I have one flash in my header, you can create a div to put it. For example:
<div id=”flash”>
<object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ codebase=”https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0″ width=”800″ height=”55″ >
<param name=movie value=”/wordpress/wp-content/themes/…complete the route here with the nade mof the flash“><param name=quality value=high>
<param name=”wmode” value=”transparent”><embed src=”/wordpress/wp-content/themes/complete the route here with the flash.swf” quality=high pluginspage=”https://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash” type=”application/x-shockwave-flash” width=”800″ height=”55″>
</embed>
</object>
</div>e-monk, and anyone else that might copy it, that isnt valid XHTML, just so you know. You also don’t need the embed junk, thats deprecated.
A Valid example:
<object type="application/x-shockwave-flash" data="https://www.domain.com/path-to/file.swf" width="790" height="40"> <param name="movie" value="https://www.domain.com/path-to/file.swf" /> <param name="menu" value="false" /> <param name="bgcolor" value="D7d7d7" /> <param name="wmode" value="transparent" /> </object>
thanks to everyone above. after i finish my flash art and make it work i will let you know. hopefully this weekend!
whooami,
Thanks for that code. Do I put that in the header.php or in the style.css?
Thanks in advancewell, i have not finished my flash art but i wish to revisit per adamsjw2 question. i am guessing the style.css? that is where i put my rotate.php code in the header folder for a mast-header on another site.
you dont put PHP inside your stylesheet, no.
if thats what you just asked.
here is what i placed it in the stylesheet:
#header {
padding: 0;
margin: 0;
position: relative;
height: 200px;
background: url(‘images/header/rotate.php’) left center no-repeat;here is the config instructions:
<p>/* ————————- CONFIGURATION ———————–<br>
</p>
<p> Set $folder to the full path to the location of your images.<br>
For example: $folder = ‘/user/me/example.com/images/’;<br>
If the rotate.php file will be in the same folder as your<br>
images then you should leave it set to $folder = ‘.’;</p>
<p>*/<br>
</p>
<p> $folder = ‘.’;<br>
</p>
<p>/* </p>
<p> Most users can safely ignore this part. If you’re a programmer,<br>
keep reading, if not, you’re done. Go get some coffee.</p>
<p> If you’d like to enable additional image types other than<br>
gif, jpg, and png, add a duplicate line to the section below<br>
for the new image type.<br>
<br>
Add the new file-type, single-quoted, inside brackets.<br>
<br>
Add the mime-type to be sent to the browser, also single-quoted,<br>
after the equal sign.<br>
<br>
For example:<br>
<br>
PDF Files:</p>
<p> $extList[‘pdf’] = ‘application/pdf’;<br>
<br>
CSS Files:</p>
<p> $extList[‘css’] = ‘text/css’;</p>
<p> You can even serve up random HTML files:</p>
<p> $extList[‘html’] = ‘text/html’;<br>
$extList[‘htm’] = ‘text/html’;</p>
<p> Just be sure your mime-type definition is correct!</p>
<p>*/</p>
<p> $extList = array();<br>
$extList[‘gif’] = ‘image/gif’;<br>
$extList[‘jpg’] = ‘image/jpeg’;<br>
$extList[‘jpeg’] = ‘image/jpeg’;<br>
$extList[‘png’] = ‘image/png’;<br>
</p>
<p>// You don’t need to edit anything after this point.<br>
</p>
<p>// ——————— END CONFIGURATION ———————–</p>here is the author:
<p>/*</p>
<p> AUTOMATIC IMAGE ROTATOR<br>
Version 2.2 – December 4, 2003<br>
Copyright (c) 2002-2003 Dan P. Benjamin, Automatic, Ltd.<br>
All Rights Reserved.</p>
<p> https://www.hiveware.com/imagerotator.php<br>
<br>
https://www.automaticlabs.com/<br>
<br>
<br>
DISCLAIMER<br>
Automatic, Ltd. makes no representations or warranties about<br>
the suitability of the software, either express or<br>
implied, including but not limited to the implied<br>
warranties of merchantability, fitness for a particular<br>
purpose, or non-infringement. Dan P. Benjamin and Automatic, Ltd.<br>
shall not be liable for any damages suffered by licensee<br>
as a result of using, modifying or distributing this<br>
software or its derivatives.<br>
<br>
<br>
ABOUT<br>
This PHP script will randomly select an image file from a<br>
folder of images on your webserver. You can then link to it<br>
as you would any standard image file and you’ll see a random<br>
image each time you reload.<br>
<br>
When you want to add or remove images from the rotation-pool,<br>
just add or remove them from the image rotation folder.<br>
</p>I know this thread is a bit old, but does anyone know how to have a different flash movie for each category on the singles page? For example, you would go to a single post in the category ‘News’ and see a flash header saying ‘News’ at the top, and the same for each category.
I guess it’s something to do with conditional tags, but I couldn’t find one about categories.
Thanks
- The topic ‘Header = Flash’ is closed to new replies.