Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-26-2005, 06:15 AM   PM User | #1
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
CSS positioning and z-index?

As it is right now, I have a drop-down javascript menu that is covered by a flash banner directly underneath it, in such a way that if you try to access the different levels of the javascript menu, you can't because the flash banner is hiding them....

See this page to see exactly what I'm talking about:

http://www.mediamogulsweb.com/job_search.shtml

Can someone show me an example of how I could use CSS positioning and z-index to fix this problem...I attempted this, but am having difficulties...

Thanks.
__________________
Regards, R.J.
chump2877 is offline   Reply With Quote
Old 01-26-2005, 07:08 AM   PM User | #2
mindlessLemming
Senior Coder

 
Join Date: Oct 2003
Location: Australia
Posts: 1,963
Thanks: 0
Thanked 0 Times in 0 Posts
mindlessLemming is an unknown quantity at this point
Unfortunately you can't fix this with z-index.
Here's the fix: http://dotnetjunkies.com/WebLog/jkin...07/21/488.aspx
__________________

I take no responsibility for the above nonsense.


Left Justified
mindlessLemming is offline   Reply With Quote
Old 01-26-2005, 08:57 AM   PM User | #3
ronaldb66
Senior Coder

 
Join Date: Jun 2002
Location: The Netherlands, Baarn, Ut.
Posts: 4,253
Thanks: 0
Thanked 0 Times in 0 Posts
ronaldb66 is an unknown quantity at this point
Ditch the banner...

Heh... I'd say, get rid of the banner altogether; it annoys the pants off of me... Or at least relocate it, like anywhere above your menu bar.
__________________
Regards,
Ronald.
ronaldvanderwijden.com
ronaldb66 is offline   Reply With Quote
Old 01-26-2005, 09:48 AM   PM User | #4
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Seriously, maybe you should wear a belt....

I cannot ditch the banner completely -- I have my reasons....

I've been playing around with putting the banner elsewhere, but above the toolbar is out of the question....it needs to be visible when the visitor first comes to the page, but it shouldn't disrupt the site design template...I'd love nothing more than to move the banner somewhere else and avoid the above problem, but I really don't know where else to put it....

The banner itself is rough around the edges....It will look nicer in the future...but for now, I need to figure out how to fit it nicely in the page...
__________________
Regards, R.J.

Last edited by chump2877; 01-26-2005 at 09:51 AM..
chump2877 is offline   Reply With Quote
Old 01-26-2005, 11:02 AM   PM User | #5
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by mindlessLemming
Unfortunately you can't fix this with z-index.
Here's the fix: http://dotnetjunkies.com/WebLog/jkin...07/21/488.aspx
Seems like a good fix, but I'm not that adept with DHTML (outside of the DHTML code generated by script editors)....I went to this page (http://dotnetjunkies.com/WebLog/jkin...0/30/2975.aspx) to try and adjust the code in their example to fit my page, but I can't seem to get it to work...Even with the invisible iframe in there, the div tags surrounding the flash banner set similarly, and the DHTML code in the header, the javascript menu levels are still covered by the banner....

I'm at a loss, and unfortunately I don't have the current know-how to proceed much further than I already have...If someone could walk me through how I might apply the above example code to my page, I would be very grateful....

Note: The code on my site doesn't have the DHTML in it because I was attempting to fix the page off-line...If you want me to post the code that I have so far, I will if you think it will help....

Thanks.
__________________
Regards, R.J.
chump2877 is offline   Reply With Quote
Old 01-26-2005, 09:41 PM   PM User | #6
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
How do I transfer this message thread to the javascript programming forum, without double-posting? My questions really don't pertain to HTML/CSS anymore...

Thanks.
__________________
Regards, R.J.
chump2877 is offline   Reply With Quote
Old 01-26-2005, 10:29 PM   PM User | #7
rmedek
Senior Coder

 
Join Date: Nov 2003
Location: Minneapolis, MN
Posts: 2,879
Thanks: 2
Thanked 65 Times in 56 Posts
rmedek is on a distinguished road
Just email or pm a moderator, they'll get it taken care of for you
__________________
drums | web
rmedek is offline   Reply With Quote
Old 01-27-2005, 01:36 AM   PM User | #8
sage45
Super Moderator


 
Join Date: May 2002
Posts: 1,036
Thanks: 0
Thanked 11 Times in 11 Posts
sage45 is an unknown quantity at this point
Moving per user request...

-sage-
__________________
HTML & CSS Forum Moderator

"If you don't know what you think you know, then what do you know."
R.I.P. Derrick Thomas #58
1/1/1967 - 2/8/2000
sage45 is offline   Reply With Quote
Old 01-27-2005, 01:32 PM   PM User | #9
ednark
New to the CF scene

 
Join Date: Jan 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
ednark is an unknown quantity at this point
Ive seen some site tackle this problem before.. except it was with an annoying form i believe instead of flash.. but the principle should be the same

when your menu appears you just style.display='none' or style.visiblity='hidden' the banner object... and when the menu disappears you just turn back on display for your banner...

this may not be exactly what you are looking for but it _should_ work.

(note to keep formatting space you should have the banner in a specificallly sized container element of some kind)

[edit]

I see now that is what the code in your link is doing.. except you don't need an iframe.. any parent tag containing your banner will work as a 'shim' to hold the width and the height in place when your banner is turned off....

even another trick you could do other than actually turn the sucker off is to move it off screen... when the menu loads you could simple set the margin-top and margin-left of the banner to be -9999em or something, so it would not render in a place that could overlap your menu. again it would have to be in a container 'shim' element to hold the position for it upon returning

Last edited by ednark; 01-27-2005 at 01:39 PM..
ednark is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 03:06 AM.


Advertisement
Log in to turn off these ads.