Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:50

current page "switch" & onmouseover "seco


Poster: stuartharden
Dated: Monday March 21 2005 - 17:43:16 GMT

How do I turn off the notification of "current page" ?

That was the simple one (and I apologize for asking what must be a simple question, but I truly have searched for the answer to no avail).

More importantly, we have a draft home page that upon first load acts wonderfully, but after mousing over a couple of items, it either does not respond, or does so with ill effects (sometimes keeping the last moused over image, sometimes not, etc.)

This behavior seems to occur accross browsers and platforms, though, interestingly enough, the menu is quicker to respond in Firefox.

Any suggestions?

http://www.capitolimpact.com/draft.asp

Stuart
P.S. I realize there is a Lot of menu activity on the page in question, so feel free to make suggestions in that regard as well.


Poster: Ruth
Dated: Monday March 21 2005 - 20:12:11 GMT

Hi Stuart,
I like the page :) [once it's working it will be even better :!: ] One thing, it's about 40px too wide for 800x600 resolution, makes a scroll bar at the bottom.

When I look at the source of the page, being asp all I get is the draft page with the table. In the center section, whatever that is [some div a page gets loaded in, or an iframe, or whatever, that section where you see the Advocacy, Event Management, Resources, with the Legislative Tracking, Event Impact, Membership under the respective headings, the menu is dropping behind the top part of the section once you load or open or whatever is happening that puts something there. For example, when you first get to the page, that section has Welcome to Capitol Impact, a leading provider etc. When that is loaded the menu works fine [if that's a page, then however that page is coded is allowing the top and side menus to open subs over it. As soon as you mouseover one of the Advocacy, Even Management, Resources sections and load a new page, or whatever is happening, those pages or divs or whatever they are are not coded to allow the menu to open subs over them, the menus are dropping behind that little top section.
It's almost like the top section where the menu is, is a totally different page than the middle section. Kind of like frames would act.

I hope that gives you a place to start. And, I'll reiterate, I really like the page layout. It looks really classy.

Ruth


Poster: stuartharden
Dated: Tuesday March 22 2005 - 4:25:16 GMT

Thank you much for the information and comments. If possible, I would like include the .js files for analyis. Is there such a place for this? I have seen code in posts, but am not certain of the ideal portion(s) to include. Also, to give more information due to the .asp framework.

The goal is to have the various products described in the main section (the one that includes the people graphics) via mouseover. We needed a default image to hold place (represented by the initial "welome" statement). We could not figure out how to have the opening text display without making that menu always visible. To acomplish the presence of a Welcome statement, we made images all the same size for product text, but when one goes to a sub menu, we do not want the welcome image to show up... as it very often does, (especially after a few menus have been mousedover.)

If any of this makes sense, great; if not please let me know as I am eager for your assistance. (I can put the .js files and draft.asp page on an ftp site)

Thanks in advance-

Stuart


Poster: Ruth
Dated: Tuesday March 22 2005 - 16:56:35 GMT

Hi Stuart,

:oops: I was so caught up in the asp, I didn't realize, until I worked on it that what's in the center is menus.

I think the problem is the keepalive that you have in the menus. I am so not knowledgeable about things in programs. I did find a solution, there may be a better one that someone who knows the program, or javascript and programming can do, but this works.

1. You are going to make a new menu data file: capitolimpact_menu_data_text.js Take all the text menus, remove them from the home3.js file and put them in a new data file. Save the home3 without those files. Copy the top of the home3, the menuOpenDelay stuff and the styles you need for the text menus and put them in that new file so you have a completely new file with all the text menu stuff.

2. Change the text menu positions. The main ones will be top=195; left=20; and the subs will be top=0; left=0; Save the file as whatever you want, I called it capitolimpact_menu_text_data.js.

3. On your draft.asp page, make the table this:
Code:
<Table cellpadding=0 cellspacing=0 border=0><TR>
    <TD colspan=3><img  border=0 src="http://www.capitolimpact.com/images/topbaralone.gif" align="left"></TD>
</TR><TR>
    <TD align=left width=120><img border="0" src="http://www.capitolimpact.com/images/sidebar-alone.gif" align="left"></TD>
<TD colspan="2" width=705 valign="top"><IFRAME border=0 id=tempiframe name=tempiframe align=top marginWidth=0
      marginHeight=0 src="iframe_page.htm" frameBorder=1 scrolling=no
       width=705 height="100%"></IFRAME></TD>
</TR><TR>
   <TH colspan=3><BR>
    <img  border=0 src="http://www.capitolimpact.com/images/footer.gif" align="center"></A></TD>
   </TH>
</TR></Table>


You'll see that there's been an iframe put into that table in the position where the images would normally be.

4. create the iframe_page.htm [or asp or whatever you would have] This is the page I made
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Capital Impact Iframe Page</title>
</head>
<body><SCRIPT src="milonic_src.js" type=text/javascript></SCRIPT>
<PARAM copyright="JavaScript Menu by Milonic - http://www.milonic.com"></PARAM>
<SCRIPT type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="mmenudom.js"></SCRIPT>
<SCRIPT src="capitolimpact_menu_data_text.js"
type=text/javascript></SCRIPT>
<SCRIPT src="capitolimpact_menu_functions.js"
type=text/javascript></SCRIPT>
<table width=705 height=176 border=0  cellpadding="0" cellspacing="0">
<tr>
    <td><img src="1a_firstview.gif" width="705" height="176" border="0"></td>
</tr>
</table>
</body>
</html>


You'll see there's a table on the page with the first image that is on your existing page, and the call for the menu files. I also put the function file though I don't know what that does and if it's needed on this.

What this does is it takes that text menu and puts it on a different page which is loaded into the iframe on the main page. The other menus that are actually on the draft.asp page now open over iframe and there is no conflict between them and the text menus and them being keepalive. You may have to fiddle with the top and left positions, though I tested this and it matches the same places as your existing draft.asp page. However, if you change the image sizes and the table size on the main page to eliminate the scrollbar at the bottom of the browser, you'll have to change all the sizes on the iframe, and the menu positions

Things to note: Some browsers do not let the menu drop over iframes, notably Opera. There may be others. There is a fix for this which from what everyone says is easy. I guess if you understand what's happening it is. What you do is create a div where the iframe would be, create a really small iframe, and use a divloader script.

There is information about this HERE at this topic. Read from Leeson's 1st post to the bottom. The person who found the solution has a link to their site which uses it and to a divloader script.

Hope this helps. Perhaps someone else who knows the menu programming has an easier solution.

Ruth

Thanks


Poster: stuartharden
Dated: Tuesday March 22 2005 - 17:56:04 GMT

Thank you tremendously for your help. We will let you know when we get it working!

Stuart

Appreciation message, made available online for Ruth.


Poster: stuartharden
Dated: Wednesday March 23 2005 - 17:49:31 GMT

Thank you Ruth, more here


Poster: Ruth
Dated: Wednesday March 23 2005 - 19:23:27 GMT

Hi Stuart,
It looks really nice. My personal peeve, that bottom scroll bar is gone :)
I did notice you have an iframe. Please remember about the problems with Opera and some other browsers. They set their programs so that the iframe is always on top, so the menu will drop behind it. If you have users who use the browsers that do that, [I don't know which they are except Opera] you will need to use the div loader solution. I did figure out how to do it, but the only divloader script I know about has required license agreements for other than personal sites. If you decide to go that way, here's the linkfor them. It's the Using an iframe as a buffer.

I really like the look of your site. Thank you very much for your note, I really appreciate it.

Ruth

www.capitolimpact.com


Poster: stuartharden
Dated: Wednesday March 30 2005 - 16:07:21 BST

Ruth,

Thanks again for your insight. We have published the site and are very pleased with it. Take a look when you have a chance.

Sincerely,

Stuart[/img]


Poster: Ruth
Dated: Wednesday March 30 2005 - 16:57:57 BST

Hi Stuart,
I really like that, very stylish. And, I note that it fits nicely into 800x600 with no bottom scroll bar. And, it is very easy to use. I like it. Having said that....isn't there always a but????

I did notice, once you click any of those headers in that bottom text menu the word more changes color so it no longer matches the header colors, which it should giving the visited link color. But, it changes for all the headers when one is clicked, not just for that particular header. I don't know if that's fixable with css or not.

I doubt many people will notice it. I think I did only because I liked that the more was the same color as the words in the bottom menu. Outside of that, everything is really nice. Maybe one day I'll get creative enough [and knowledgeable enough] to get my own site to look elegant like that :!:


Ruth

Continued Thanks


Poster: stuartharden
Dated: Wednesday March 30 2005 - 17:05:04 BST

I will research the color issue...I completely agree and appreciate your eye.

Stuart