Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 09-20-2008, 02:50 PM Flash object z-index
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
I have a navigation list that needs to appear above a flash animation, but it doesnt seem to be working!

Here is the code I have for it,

Code:
<div id="headInner">
      <div id="headFlash">
        <object type="application/x-shockwave-flash"
    data="flash/bgHeadInner.swf" 
    width="850" height="100">
          <param name="movie" 
    value="flash/bgHeadInner.swf" />
        </object>
      </div>
      <ul id="nav">
        <li><a href="../contact.php">contact</a></li>
        <li><a href="../portfolio.php">portfolio</a></li>
        <li><a href="../service.htm">services</a></li>
        <li><a href="../about.htm">about</a></li>
        <li><a href="../index.php">home</a></li>
      </ul>
      
      <br class="clear" />
    </div>
Code:
#nav {
    width:420px;
    position:absolute;
    bottom:0;
    right:5px;
    z-index:2;}
        
#nav li {
    display:inline;}
    
#nav a {
    width:70px;
    font-weight:bold;
    float:right;
    font-size:80%;
    margin-left:2px;
    padding:0 5px;
    color:#2597EB;
    text-decoration:none;
    background:url(../image/bgNavLi.png) no-repeat 0 100%;}

#nav a:hover, #nav a:active {
    background:url(../image/bgNavLiHover.png) no-repeat 0 100%;}
    

#headInner {
    width:850px;
    height:100px;
    margin:0 auto;
    text-align:left;
    background:url(../image/bgHeadInner.jpg) no-repeat 100% 0;
    position:relative;}

#headFlash {
    width:100%;
    height:100px;
    position:absolute;
    z-index:1;}
Does anyone know why the flash animation is still appearing above the navigation? In IE it seems to show the very bottom of the nav, but thats it!

I should also point out that the page looks right in Dreamweaver, but just not in any browsers!

Any help would be great! thanks.
__________________

Please login or register to view this content. Registration is FREE

Last edited by pealo86; 09-20-2008 at 02:56 PM..
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
 
Register now for full access!
Old 09-20-2008, 03:29 PM Re: Flash object z-index
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
  1. Add the following parameter to the OBJECT tag:
    HTML Code:
    <param name="wmode" value="transparent">
  2. Add the following parameter to the EMBED tag:
    HTML Code:
    wmode="transparent"
This will allow the flash object to exist behind normal HTML stuff. Flash, by default, sits on top of everything like it is a God.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 09-20-2008, 03:34 PM Re: Flash object z-index
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
Thanks, but am I right in thinking that the <embed> tag is invalid HTML code? I used the tutorial that is linked from the sticky at the top of this forum because I wanted to find out how to keep my webpages valid.

aghhhhhhhhhhhh!! I think I may just have to resize the flash animation so that it doesn't clash with the navigation.

Thanks anyway! Or if there is somehow a way around it all please let me know!
__________________

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Old 09-20-2008, 03:42 PM Re: Flash object z-index
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Then just add those attributes to the OBJECT tag, as I see you're using it.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 09-20-2008, 04:38 PM Re: Flash object z-index
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
ahhh yes it works! thanks!
__________________

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Reply     « Reply to Flash object z-index
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.53938 seconds with 12 queries