Forums

Header only shows on home page (3 posts)

  1. adevore
    Member
    Posted 3 years ago #

    Using Internet Exporer 7, the flash header on the site http://www.insurance.articlesreport.com only shows on the home page, not the other pages. Very strange. On mozilla, it works normally and shows on every page.

    Here is my header.php file.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title><?php if (function_exists('seo_title_tag')) { seo_title_tag(); } else { bloginfo(''); wp_title();} ?></title>
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo(''); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
    
    <?php wp_head(); ?>
    <!--[if lte IE 6]>
    <style>
    #c1 .content a {height: 1%;}
    #c3 .content a {height: 1%;}
    #c3 .content ul {height: 1%;}
    #masthead, #tnav {
        width:expression(((document.compatMode && document.compatMode=='CSS1Compat') ? document.documentElement.clientWidth : document.body.clientWidth) < 1000 ? "1000px" : "auto");}
    </style>
    <![endif]-->
    <!--[if lte IE 7]>
    <style>
    #masthead, #columnwrapper, #tnav, #columns-bottom {zoom:1;}
    </style>
    <![endif]-->
    </head>
    <body>
    <div id="masthead">
      <div id="logo"><center><a href="<?php echo get_option('home'); ?>"></a><!-- START Flash Logo HTML Code - Copy and Paste All This -->
        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="500" height="105">
          <param name="movie" value="logo.swf">
          <param name="quality" value="high">
          <embed src="http://www.insurance.articlesreport.com/wp-content/uploads/2009/02/logo.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="105"></embed>
        </object>
    <!-- END Flash Logo HTML Code --></center></div><!-- end logo div -->
      <div id="blogtitle"><?php bloginfo(''); ?> - <?php bloginfo('description'); ?></div>
    </div><!-- end masthead div -->
    <div id="tnav">
      <div id="tnav-center">
        <ul id="BasicNav">
    	<li><a href="<?php echo get_option('home'); ?>">Home</a></li>
    <?php wp_list_pages('sort_column=menu_order&hierarchical=0&depth=1&title_li='); ?>
        </ul><!-- end BasicNav UL -->
        <div class="clearfloat">&nbsp;</div>
      </div><!-- end tnav-center div -->
    </div><!-- end tnav div -->

    `

  2. dlmfisher
    Member
    Posted 3 years ago #

    If its in the head or between the head tags it won't render.

  3. whooami
    Member
    Posted 3 years ago #

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="500" height="105">
    <param name="movie" value="logo.swf">
    <param name="quality" value="high">
    <embed src="http://www.insurance.articlesreport.com/wp-content/uploads/2009/02/logo.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="105"></embed>
    </object>

    and if you use the full URL there, than what happens??

    there are TWO pieces of browser dependent code there responsible for displaying flash. the one thats in bold above, and your use of embed, which by the way is deprecated.


    <param name="movie" value="logo.swf">

    fix that, THAT is not this:
    http://www.insurance.articlesreport.com/wp-content/uploads/2009/02/logo.swf

    its this:

    http://www.insurance.articlesreport.com/logo.swf

    or this, if you are on a category page:

    http://www.insurance.articlesreport.com/mycategory/logo.swf

    do you follow what I am saying?

Topic Closed

This topic has been closed to new replies.

About this Topic