I have inserted a flash header on my site http://www.uisge-beatha.eu/
Viewing the site in FF, no problem (besides it is a little too narrow), however in IE I have some white space above the flash header.
To get the header running, I used a UDT:
Code: Select all
/* Java script om flash weer te geven in de template */
echo '<__script__ type="text/javascript">';
echo 'var so = new SWFObject ("uploads/Flash/flash banner/intro_header.swf", "mymovie", "960", "200", "0", "#61363c");';
echo 'so.write("header_banner");';
echo '</__script>';
Code: Select all
{literal}
<__script__ type="text/javascript" src="swfobject.js">
</__script>
<__script__ type="text/JavaScript">
<!--
//pass min and max -measured against window width
...........
Code: Select all
<!-- flash header inserted -->
<div id="header_banner">
{flash_header}
</div>
</div>
<!-- End Header -->
In the stylesheet:
Code: Select all
/*** header ***
we will hide text and replace it with a image
we need to assign a height for it so that the image wont cut off
center image
div#header {
background: url(/uploads/images/Logo_Hanse.gif) #61363c no-repeat center center;
height: 120px;
}
*/
div#header h1 a {
/* you can set your own image here left image
background: url(/uploads/images/logo_links1.gif) no-repeat 0 0px;
*/
display: block;
height: 0px; /* was 120 adjust according your image size */
/* width: 198px; eruit gehaald, zie cms-forum */
text-indent: -999em; /* this hides the text */
text-decoration:none; /* old firefox would have shown underline for the link, this explicitly hides it */
}
/* position for the search box */
div#search {
float: right;
width: 23em; /* enough width for the search input box */
text-align: right;
padding: 0.1em 0 0.2em 0;
margin: 0 1em;
}
Thanks in advance,
Gregor