Flash header on Drupal theme

How do I replace the JPEG header in the following drupal theme. I have tried, but have been unsuccessful. The flash header filename is header.swf with width = 890 height 175.

The code for my page.tpl.php page is below.

Thanks
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo get_page_language($language); ?>" xml:lang="<?php echo get_page_language($language); ?>">
 
<head>
  <title><?php if (isset($head_title )) { echo $head_title; } ?></title>
  <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
  <?php echo $head; ?>  
  <script type="text/javascript" src="<?php echo get_full_path_to_theme(); ?>/script.js"></script>  
  <?php echo $styles ?>
  <?php echo $scripts ?>
  <!--[if IE 6]><link rel="stylesheet" href="<?php echo $base_path . $directory; ?>/style.ie6.css" type="text/css" /><![endif]-->  
  <script type="text/javascript"><?php /* Needed to avoid Flash of Unstyle Content in IE */ ?> </script>
</head>
 
<body>
<div class="PageBackgroundSimpleGradient">
</div>
<div class="PageBackgroundGlare">
    <div class="PageBackgroundGlareImage"></div>
</div>
<div class="Main">
<div class="Sheet">
    <div class="Sheet-tl"></div>
    <div class="Sheet-tr"><div></div></div>
    <div class="Sheet-bl"><div></div></div>
    <div class="Sheet-br"><div></div></div>
    <div class="Sheet-tc"><div></div></div>
    <div class="Sheet-bc"><div></div></div>
    <div class="Sheet-cl"><div></div></div>
    <div class="Sheet-cr"><div></div></div>
    <div class="Sheet-cc"></div>
    <div class="Sheet-body">
 
<div class="Header">
<div class="Header-jpeg"></div>  
   
<div class="logo">
 <?php if ($site_name) : ?>
 <h1 class="logo-name"><a href="<?php echo check_url($base_path); ?>" title = "<?php echo $site_name; ?>"><?php echo $site_name; ?></a></h1>
 <?php endif; ?>
 <?php if ($site_slogan) : ?>
 <div class="logo-text"><?php echo $site_slogan; ?></div>
 <?php endif; ?>
</div>
</div>
<div class="nav">
<?php
if (get_drupal_version() >= 6) {
	$menu_name = variable_get('menu_default_node_menu', 'primary-links');
	$tree = menu_tree_page_data($menu_name);
	echo art_menu_tree_output_d6($tree);
} else {
	echo art_menu_tree_output_d5(variable_get('menu_primary_menu',0));
}
?>
<div class="l"></div>
<div class="r"><div></div></div>
</div>
<div class="contentLayout">
<div class="content">
<div class="Post">
    <div class="Post-body">
<div class="Post-inner">
<div class="PostContent">
<?php if (!empty($breadcrumb)): print theme('breadcrumb', $breadcrumb); endif; ?>
<?php if (!empty($tabs)): print $tabs.'<div class="cleared"></div>'; endif; ?>
<?php if (!empty($tabs2)): print '<ul class="tabs secondary">'. $tabs2 .'</ul>'; endif; ?>
<?php if (isset($mission)): print '<div id="mission">' . $mission . '</div>'; endif; ?>
<?php if (isset($help)): print $help; endif; ?>
<?php if (isset($messages)): print $messages; endif; ?>
<?php print art_content_replace($content); ?>
 
</div>
<div class="cleared"></div>
 
</div>
 
    </div>
</div>
 
</div>
<div class="sidebar1">
<?php
if (isset($sidebar_right)) print $sidebar_right;
else if (isset($right)) print $right; 
?>
</div>
 
</div>
<div class="cleared"></div>
<div class="Footer">
    <div class="Footer-inner">
        <a href="<?php $feedsUrls = array_keys(drupal_add_feed()); if(isset($feedsUrls[0]) && strlen($feedsUrls[0])>0) {echo $feedsUrls[0];} ?>" class="rss-tag-icon" title="RSS"></a>
        <div class="Footer-text">
        <?php echo $footer_message; ?>
        <?php echo $footer; ?>
        </div>
    </div>
    <div class="Footer-background"></div>
</div>
 
    </div>
</div>
<p class="page-footer">
  <?php //echo t('Powered by ').'<a href="http://drupal.org/">'.t('Drupal').'</a>'.t(' and ').'<a href="http://www.artisteer.com/drupal">Drupal Theme</a>'.t(' created with ').'Artisteer'; ?>
 
</p>
 
</div>
 
 
<?php if ($closure_region): ?>
  <div id="closure-blocks"><?php print $closure_region; ?></div>
<?php endif; ?>
<?php print $closure; ?>
 
</body>
</html>

Open in new window

zerogAsked:
Who is Participating?
 
Carl BohmanCommented:
You should be able to simply replace line 35 (<div class="Header-jpeg"></div>) with the code to insert your flash file.  Something like the following.
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="890" HEIGHT="175" id="Header" ALIGN="">
<PARAM NAME="movie" VALUE="header.swf">
<PARAM NAME="quality" VALUE="high">
<PARAM NAME="bgcolor" VALUE="#FFFFFF">
<EMBED src="header.swf" quality="high" bgcolor="#FFFFFF" WIDTH="890" HEIGHT="175" NAME="Header" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED> </OBJECT> 

Open in new window

0
 
zerogAuthor Commented:
Thanks. I had to replace the line (<div class="Header-jpeg"></div>) with your code in the following pages, then it appeared on every page within Drupal.

page.tpl.php
page-blog.tpl.php
page-node.tpl.php
page-node-add.tpl.php
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.