Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Directory Submission Service   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 07-02-2008, 07:34 AM   #1 (permalink)
Junior Member
 
Join Date: 05-05-08
Posts: 9
iTrader: 0 / 0%
Latest Blog:
None

acgna is liked by many
CSS Submenu Wierdness

Hi,

I'm so close to being done with my site but I have these couple issues remaining and I can't figure them out! its driving me bananas.

The menu can be viewed here: http://eccolo.com/Site2/index4.html

the problem is in the "more" submenu. it works fine when rolling over however, when you make the browser window smaller it changes position. I need it to stay in its original position.

Also, both on "our menus" and "More" buttons, I need the buttons to stay on the rollover state when the mouse moves to the sub menu.

Any help with this would be highly appreciated! Let me know If you would like to see the files, I will post the code below.

CSS:

.dropmenudiv2{
margin-left:-64px;/* this is the margin of More submenu tab */
position:absolute;
top: 0;
z-index:102;
width: 129px;
visibility: hidden;
}


HTML:

<div class="nav5"><a href="#" rel="dropmenu2"><img src="images/NavigationImages/TopMenu/trans.gif" width="65" height="28" border="0" /></a></div>


Thanks!
acgna is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 07-02-2008, 12:43 PM   #2 (permalink)
v7n Mentor
 
Join Date: 09-03-07
Location: England
Posts: 537
iTrader: 0 / 0%
Latest Blog:
None

Boogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really nice
Have you used crappy dreamweaver autogenerator for those dropdown menus?

Look here for much better ones

Those dreamweaver ones stink if you ask me (I could upset a few people there but it's MO )

Boog's
__________________
Great new 'June' Javascript Framework

June Forums - Innovative JScripting

Price is what you pay... Value is what you get.
Boogle is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-02-2008, 12:58 PM   #3 (permalink)
Junior Member
 
Join Date: 05-05-08
Posts: 9
iTrader: 0 / 0%
Latest Blog:
None

acgna is liked by many
Dreamweaver is very ugly, I agree.

http://www.dynamicdrive.com/dynamici...rome/index.htm

this seems like its exactly what I want however, how would I have the button on the menu stay in the rollover state while the mouse moves to the submenus?
acgna is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-03-2008, 03:53 AM   #4 (permalink)
v7n Mentor
 
Join Date: 09-03-07
Location: England
Posts: 537
iTrader: 0 / 0%
Latest Blog:
None

Boogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really nice
OK do the following to achieve this:

CSS: in your css stylesheet (chromstyle.css) insert the following:
Code:
.hoverstay{background: url(chromebg-over.gif) center center repeat-x;}
javascript: Then add this javascript to the head of your HTML page:
Code:
<script type="text/javascript"> function KeepTopHovered() { document.getElementById("dropStay").className = "hoverstay"; } function Reset() { document.getElementById("dropStay").className = ""; } </script>
HTML: Now add this the parts where i've highlighted:
Code:
<div class="chromestyle" id="chromemenu"> <ul> <li><a href="http://www.dynamicdrive.com">Home</a></li> <li id="dropStay" class=""><a href="#" rel="dropmenu1">Resources</a></li> <li><a href="#" rel="dropmenu2">News</a></li> </ul> </div> <!--1st drop down menu --> <div id="dropmenu1" class="dropmenudiv"> <a onmousemove="KeepTopHovered();" onmouseout="Reset();" href="http://www.dynamicdrive.com/">Dynamic Drive</a> <a onmousemove="KeepTopHovered();" onmouseout="Reset();" href="http://www.cssdrive.com">CSS Drive</a> <a onmousemove="KeepTopHovered();" onmouseout="Reset();" href="http://www.javascriptkit.com">JavaScript Kit</a> </div> <!--2nd drop down menu --> <div id="dropmenu2" class="dropmenudiv" style="width: 150px;"> <a href="http://www.cnn.com/">CNN</a> <a href="http://www.msnbc.com">MSNBC</a> <a href="http://news.bbc.co.uk">BBC News</a> </div> <script type="text/javascript"> cssdropdown.startchrome("chromemenu") </script>
That will enable the menuItem, which has the text "Resources" to stay coloured in when browsing it's sub menu.

HTH's

Boog's
__________________
Great new 'June' Javascript Framework

June Forums - Innovative JScripting

Price is what you pay... Value is what you get.
Boogle is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-03-2008, 06:22 AM   #5 (permalink)
Junior Member
 
Join Date: 05-05-08
Posts: 9
iTrader: 0 / 0%
Latest Blog:
None

acgna is liked by many
thank you very much, I will try this today.
acgna is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 09:48 PM.
© Copyright 2008 V7 Inc