Limozine
04-27-2009, 02:07 PM
I replaced a background image in a header with an embedded swf file. Previously, there was a horizontal menu that appeared at the bottom of the header div. Now that the swf file is in place, the menu is gone. Here's my header code:
<div id="header">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1100" height="206">
<param name="movie" value="http://www.spotlessga.com/wp-content/themes/chasmogamous/images/header.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent">
<embed src="http://www.spotlessga.com/wp-content/themes/chasmogamous/images/header.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1100" height="206" wmode="transparent"></embed>
</object>
<div id="menu">
<ul>
<li class="first page_item<?php if (is_home()) echo ' current_page_item'; ?>"><a href="<?php echo get_option('home'); ?>/">Home</a></li>
<?php wp_list_pages('title_li=' ); ?>
</ul>
<div id="search">
<form method="get" action="<?php bloginfo('url'); ?>/">
<fieldset>
<input id="s" type="text" name="s" value="<?php the_search_query(); ?>" />
<input id="x" type="submit" value="GO" />
</fieldset>
</form>
</div>
</div>
</div>
Here's the original CSS:
#header {
width: 1100px;
height: 206px;
margin: 0 auto;
/* background: url(images/img02.gif) no-repeat top left; */
}
/* Menu */
#menu {
width: 960px;
margin: 0 auto;
padding-bottom: 30px;
}
#menu ul {
margin: 0;
padding: 23px 0 0 28px;
list-style: none;
line-height: normal;
}
#menu li {
float: left;
padding: 0 2px 0 2px;
}
#menu li.first a{
float: left;
background: #08A24A;
padding: 9px 20px;
text-decoration: none;
text-transform: uppercase;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 11px;
color: #FFFFFF;
}
#menu a {
float: left;
background: #213C9C;
padding: 10px 20px;
text-decoration: none;
text-transform: uppercase;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 11px;
color: #FFFFFF;
}
#menu a:hover {
text-decoration: none;
background: #08A24A;
padding: 9px 20px;
}
/* Search */
#search {
/* float: right; */
float: left;
width: 200px;
/* added */
margin-top: 20px;
}
#search form {
margin: 0 0 0 2px;
padding: 0;
/* margin-top: -10px; */
}
#search fieldset {
margin: 0;
padding: 0;
border: none;
}
#search input {
}
#search #s {
width: 150px;
}
#search #x {
margin: 0;
padding: 0;
width: 30px;
background: #406800;
color: #FFFFFF;
}
<div id="header">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1100" height="206">
<param name="movie" value="http://www.spotlessga.com/wp-content/themes/chasmogamous/images/header.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent">
<embed src="http://www.spotlessga.com/wp-content/themes/chasmogamous/images/header.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1100" height="206" wmode="transparent"></embed>
</object>
<div id="menu">
<ul>
<li class="first page_item<?php if (is_home()) echo ' current_page_item'; ?>"><a href="<?php echo get_option('home'); ?>/">Home</a></li>
<?php wp_list_pages('title_li=' ); ?>
</ul>
<div id="search">
<form method="get" action="<?php bloginfo('url'); ?>/">
<fieldset>
<input id="s" type="text" name="s" value="<?php the_search_query(); ?>" />
<input id="x" type="submit" value="GO" />
</fieldset>
</form>
</div>
</div>
</div>
Here's the original CSS:
#header {
width: 1100px;
height: 206px;
margin: 0 auto;
/* background: url(images/img02.gif) no-repeat top left; */
}
/* Menu */
#menu {
width: 960px;
margin: 0 auto;
padding-bottom: 30px;
}
#menu ul {
margin: 0;
padding: 23px 0 0 28px;
list-style: none;
line-height: normal;
}
#menu li {
float: left;
padding: 0 2px 0 2px;
}
#menu li.first a{
float: left;
background: #08A24A;
padding: 9px 20px;
text-decoration: none;
text-transform: uppercase;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 11px;
color: #FFFFFF;
}
#menu a {
float: left;
background: #213C9C;
padding: 10px 20px;
text-decoration: none;
text-transform: uppercase;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 11px;
color: #FFFFFF;
}
#menu a:hover {
text-decoration: none;
background: #08A24A;
padding: 9px 20px;
}
/* Search */
#search {
/* float: right; */
float: left;
width: 200px;
/* added */
margin-top: 20px;
}
#search form {
margin: 0 0 0 2px;
padding: 0;
/* margin-top: -10px; */
}
#search fieldset {
margin: 0;
padding: 0;
border: none;
}
#search input {
}
#search #s {
width: 150px;
}
#search #x {
margin: 0;
padding: 0;
width: 30px;
background: #406800;
color: #FFFFFF;
}