Flash / Internet Explorer question

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
delvsie
New Member
New Member
Posts: 7
Joined: Mon May 07, 2007 9:46 am

Flash / Internet Explorer question

Post by delvsie »

I have put Flash in the CSSMenu top + 2 columns templates
It works fine in Firefox, but there is a large gap underneath it in Internet Explorer
Please can anyone help.

http://www.fleet-arts.org/

Code: Select all

</head>

</__body>

<div id="pagewrapper">

    <!-- start accessibility skip links -->
    <ul class="accessibility">
      <li>{anchor anchor='menu_vert' title='Skip to navigation' accesskey='n' text='Skip to navigation'}</li>
      <li>{anchor anchor='main' title='Skip to content' accesskey='s' text='Skip to content'}</li>
    </ul>
    <!-- end accessibility skip links -->


    <hr class="accessibility" />
    <!-- Horizontal ruler that is hidden for visual browsers by CSS -->


   <!-- Start Header, with logo image that links to the default start page. Logo image is changed in the stylesheet  "For template: Left menu + 1 column"  FLASH APPROACHING -->
   
  <div id="header"> 
    <h1><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 

codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="600" height="80">
        <param name=movie value="uploads/images/fleetlogo.swf">
        <param name=quality value=high>
        <embed src="uploads/images/fleetlogo.swf" quality=high 

pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" 

type="application/x-shockwave-flash" width="600" height="80">
        </embed> 
      </object>

{cms_selflink dir="start" text="$sitename"}</h1>
   <hr class="accessibility" />
   </div>

   <!-- End Header -->


      <!-- Start Navigation -->
      <div id="menu_vert">
         <h2 class="accessibility">Navigation</h2>
         {menu template='cssmenu.tpl'}
      <hr class="accessibility" />
      </div>
climberusa
Forum Members
Forum Members
Posts: 126
Joined: Sun Feb 26, 2006 7:10 pm

Re: Flash / Internet Explorer question

Post by climberusa »

I don't think you question is very clear
delvsie
New Member
New Member
Posts: 7
Joined: Mon May 07, 2007 9:46 am

Re: Flash / Internet Explorer question

Post by delvsie »

Hi Climberusa
Apologies for my poorly worded question and thanks for your reply.
I am a newbie at CMSMadeSimple but am very keen to get it to work for me as I have another couple of sites I need to build with CMS.

I have embedded a Flash movie into the top of the website where the logo1.gif was in the layout > template 'CSSMenu top + 2 columns'
[The Flash movie was static when I first submitted this question, but I have now made the background gray, and added a moving part so it is more obviously Flash]

www.fleet-arts.org

Below I give the complete code for the layout > template 'CSSMenu top + 2 columns'
[When I submitted the question I just gave the section of code around the embedded Flash code]

The website looks fine in Firefox - there is a small gap of maybe 20 or 30 pixels between the bottom of the flash movie and the top of the drop-down menu.
But in Microsoft Internet Explorer there is a large ugly gap of about 110 pixels between the bottom of the flash movie and the top of the drop-down menu.

The Flash is embeded about line 68. Could you look at it and tell me if I've done anything wrong.

Code: Select all

<!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" xml:lang="en" lang="en">
<!-- Change lang="en" to the language of your site -->

<head>

<title>{sitename} - {title}</title>
<!-- The sitename is changed in Site Admin/Global settings. {title} is the name of each page -->
{metadata}
<!-- Don't remove this! Metadata is entered in Site Admin/Global settings. -->

{stylesheet}
<!-- This is how all the stylesheets attached to this template are linked to -->

{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
<!-- Relational links for interconnections between pages, good for accessibility and Search Engine Optmization -->


{literal}
<__script__ type="text/JavaScript">
<!--
//pass min and max -measured against window width
function P7_MinMaxW(a,b){
	var nw="auto",w=document.documentElement.clientWidth;
	if(w>=b){nw=b+"px";}if(w<=a){nw=a+"px";}return nw;
}
//-->
</__script>
<!--[if lte IE 6]>
<style type="text/css">
#pagewrapper {width:expression(P7_MinMaxW(720,950));}
#container {height: 1%;}
</style>
<![endif]-->
{/literal}
<!-- The min and max page width for Internet Explorer is set here. For other browsers it's in the stylesheet "Layout: Top 

menu + 2 columns" -->


<!--[if IE]>
<__script__ type="text/javascript" src="modules/MenuManager/CSSMenu.js"></__script>
<![endif]-->
<!-- The above JavaScript is required for CSSMenu to work in IE -->

</head>

</__body>

<div id="pagewrapper">

    <!-- start accessibility skip links -->
    <ul class="accessibility">
      <li>{anchor anchor='menu_vert' title='Skip to navigation' accesskey='n' text='Skip to navigation'}</li>
      <li>{anchor anchor='main' title='Skip to content' accesskey='s' text='Skip to content'}</li>
    </ul>
    <!-- end accessibility skip links -->


    <hr class="accessibility" />
    <!-- Horizontal ruler that is hidden for visual browsers by CSS -->


   <!-- Start Header, with logo image that links to the default start page. Logo image is changed in the stylesheet  "For template: Left menu + 1 column"  FLASH APPROACHING -->
   
  <div id="header"> 
    <h1><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 

codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="600" height="80">
        <param name=movie value="uploads/images/fleetlogo.swf">
        <param name=quality value=high>
        <embed src="uploads/images/fleetlogo.swf" quality=high 
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" 
type="application/x-shockwave-flash" width="600" height="80">
        </embed> 
      </object>

{cms_selflink dir="start" text="$sitename"}</h1>
   <hr class="accessibility" />
   </div>
<!-- End Header -->

<!-- Start Navigation -->
      <div id="menu_vert">
         <h2 class="accessibility">Navigation</h2>
         {menu template='cssmenu.tpl'}
      <hr class="accessibility" />
      </div>
      <!-- End Navigation -->


   <!-- Start Search-->
   <div id="search">
          {search}
   </div>
   <!-- End Search -->


   <!-- Start Breadcrumbs -->
   <div class="breadcrumbs">
        {breadcrumbs starttext='You are here' root='Home' delimiter='»'}
   <hr class="accessibility" />
   </div>
   <!-- End Breadcrumbs -->


   <!-- Start Content (Navigation and Content columns) -->
   <div id="content">

      <!-- Start Sidebar -->
      <div id="sidebar" class="hascontent">
         {content block='Sidebar'}
      </div>
      <!-- End Sidebar -->

      <!-- Start Content Area -->
      <div id="main">
         <div style="float: right;">{print showbutton=true script=true}</div>
         <h2>{title}</h2>
         {content} <br />

         <!-- Start relational links -->
	 <div class="hr"></div>
	 <div class="right49">
	 	<p>{anchor anchor='main' text='^ Top'}</p>
	 </div>
         <div class="left49">
            <p>{cms_selflink dir="previous" label="Previous page: "} <br />
            {cms_selflink dir="next"}</p>
         </div>
         <!-- The label parameter doesn't need to be there if you're using English, but is here to show how it's used if you 

don't want the English text "Previous page" -->
	 <!-- End relational links -->

      <hr class="accessibility" />
      </div>
	  <!-- End Content Area -->


   </div>
   <!-- End Content -->


   <!-- Start Footer. Edit the footer in the Global Content Block called "footer" -->
   <div id="footer">
      {global_content name='footer'}
   </div>   
   <!-- End Footer  -->


</div><!-- end pagewrapper -->
<__body>
</__html>
climberusa
Forum Members
Forum Members
Posts: 126
Joined: Sun Feb 26, 2006 7:10 pm

Re: Flash / Internet Explorer question

Post by climberusa »

Hi, sorry I took so long to get back to you. I took a look at your site and have some suggestions and fixes based on that.

First I changed the html a bit:

Code: Select all

  <div id="header"> 
  <h1><a href="http://www.fleet-arts.org/index.php?page=home" title="Home Page, shortcut key=1">Fleet Arts</a></h1>

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="600" height="80">
        <param name=movie value="http://www.fleet-arts.org/uploads/images/fleetlogo.swf">
        <param name=quality value=high>
        <embed src="http://www.fleet-arts.org/uploads/images/fleetlogo.swf" quality=high 
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" 
type="application/x-shockwave-flash" width="600" height="80">
        </embed> 
      </object>
          <hr class="accessibility" />
   </div>
<!-- End Header -->
<br class="clear" />
Notice I moved the flash outside of the h1 tag. I don't think it makes sense to have it in there and it didn't do any good as far as i could tell and it also caused some spacing issues. I also added the after the #header.

The CSS is here:

Code: Select all

       div#header {
            margin: 0;
            padding: 0;
			height: 100px;
            background: #FFF;           
            text-align: left;
        }
		div#header embed {
			float: left;
		}
       div#header h1 a {
            background:  url(http://www.fleet-arts.org/uploads/images/fleetback.gif) no-repeat 0 12px; 
            display: block;
			height: 100px;
			float: right;
			line-height: 0;
			padding: 0;
            width: 106px;
            text-indent: -700em;
		    text-decoration:none; /* old firefox would have shown underline for the link, this explicitly hides it */
}
I hope this helps. I'm not sure why you're using a flash movie in the header in this instance since there is almost no animation. You'd be much better of just using an image or even a background image in the h1 so th whole header is then clickable. Just my .02 cents. Also, I don't know what the fleetback.gif image is for. I set the background of the div to #CCC and the whole header matched the flash movie so you may try that.

Jeff
delvsie
New Member
New Member
Posts: 7
Joined: Mon May 07, 2007 9:46 am

Re: Flash / Internet Explorer question

Post by delvsie »

Hi Jeff
It works perfectly - that's great.
I used your code a week ago, then my internet connection/ phone line has been cut off, so I haven't been able to reply till now.

I understand Flash is out of favour and many disable it because of its prevalence as irritating pop-ups etc – I guess I should move on.
But it is nice to do.

Thankyou

Nick
herbshirt
Forum Members
Forum Members
Posts: 145
Joined: Thu Jul 26, 2007 3:47 am

Re: Flash / Internet Explorer & FIrefox question

Post by herbshirt »

I think mine is a similar problem... Unwanted white space. and mine won't align properly either.

Here: http://203.98.74.172/~cruicksh/

The css I have applied so far look like this:

div#FlashBanner {
height:200px;
        width:840px;
        align:center;
}

Can anyone advise how I can align it properly and remove the whitespace.
creatives
New Member
New Member
Posts: 8
Joined: Wed May 30, 2007 8:23 pm

Re: Flash / Internet Explorer question

Post by creatives »

hiya herbshirt,
looking at the source code for that page first off you have an extraneous tag at the bottom of that page just before your tag.

secondly try replacing the div for the flash with this code.

 
   
   
   
 


just to make sure there is no encoding on the text, paste it into notepad first then copy from notepad into the source code of your template.

hope that helps
herbshirt
Forum Members
Forum Members
Posts: 145
Joined: Thu Jul 26, 2007 3:47 am

Re: Flash / Internet Explorer question

Post by herbshirt »

Headin for a beer now but I'll be giving it a try Monday.

I'll let you know. Thanks!  :D
herbshirt
Forum Members
Forum Members
Posts: 145
Joined: Thu Jul 26, 2007 3:47 am

Re: Flash / Internet Explorer question

Post by herbshirt »

Still no dice.

I removed the Thanks!

but I just can't get the Flash to work. As suggested by another forum I changed the Flash Mov output to Flash 7.0 - a/s 2.0 but still nothing.

Now I'll go sort out more of those ridiculous IE problems. I don't get how a company like m/s has such a problem building a decent browser?!
ericob

Re: Flash / Internet Explorer question

Post by ericob »

I have no idea if this is related, but I just ran across this today at http://solardreamstudios.com/learn/css/cssmenus :
Thanks go out to Brian on how to get around the flash rendering issue… just add the following if you are using this menu system near a flash object and IE is giving you problems:

Code: Select all

<param name="wmode" value="transparent" />
herbshirt
Forum Members
Forum Members
Posts: 145
Joined: Thu Jul 26, 2007 3:47 am

Re: Flash / Internet Explorer question

Post by herbshirt »

I'm nearly there. I think I have some css issues though.

http://203.98.74.172/~cruicksh/index.php

It's supposed to be 880px wide but something is squashing it smaller and giving it white space top and bottom. I just can't figure it out >:(.
The .swf is definitely 880px.

I have attached the css if anyone cares to take a look.

Thanks again.
Attachments

[The extension txt has been deactivated and can no longer be displayed.]

[The extension txt has been deactivated and can no longer be displayed.]

Post Reply

Return to “Layout and Design (CSS & HTML)”