PDA

View Full Version : Cross-frame menu, with multiple columns submenu. A question.



naremkim
03-04-2010, 11:44 AM
1) Script Title: AnyLink JS Drop Down Menu v2.2

2) Script URL (on DD): http://dynamicdrive.com/dynamicindex1/dropmenuindex.htm

3) Describe problem: How to make the submenu box, which appears in hover on 'Menu with multiple columns', to be appeared bottom frame ? I have once tried it putting the attribute linktarget's value as the bottom frame name in the menucontents.js file : var anylinkmenu3={divclass:'anylinkmenucols', inlinestyle:'', linktarget:'secwin'} //Third menu variable, but it doesn't work.

ddadmin
03-05-2010, 08:21 AM
Hmm there's no quick way to do this with this script unfortunately. Frames are basically treated as two separate windows inside the browser. In order for the menu to drop down inside another frame, it has to create a new instance of itself in that frame that communicates with the menu in the original frame. It's certainly possible, but not without a lot of additions to the script.

molendijk
03-05-2010, 12:51 PM
You can have your menu on top of a frameset if you do something like this (http://www.let.rug.nl/molendyk/include_menu10_on_top/include_menu10_on_top_smooth/index.html?page1.html) (just an example). You'll have to write your frameset dynamically.
===
Arie Molendijk.

naremkim
03-06-2010, 01:27 AM
Thanks you all.
I'm trying to look into your suggestion.
It must be very helpful for me.
Thanks again.

naremkim
03-09-2010, 02:08 PM
I got it !! Thanks.
It's very well and has some merits to the statical frameset.
The test site is http://www.kissesnhugs.com.
There is a problem: i.e. appearing and disappearing the submenu when on hover and hoverout the main menu are not fast and sometimes do not properly work. And when the cursor goes along with the main menu several submenus are remained.
However it is another matter.
Thanks again.

molendijk
03-09-2010, 03:45 PM
Glad to here that it functions for you.
On my machine the menus work flawlessly.
===
Arie.

naremkim
03-11-2010, 07:32 AM
Many Thanks to you.
I have a domain name homepageclinic.net.
I forwarded this domain to this site, dynamicdrive.com. If you want this domain to forward to another site I will forward it to that site. I have already forwarded another domain name homepageclinic.com to http://www.vicsjavascripts.org.uk for vwphillips, a senior coder.
I hope I can have a chance to do web business in cooperation with you in the future.

Thanks.

naremkim
03-30-2010, 12:47 PM
Hi ! There.

I arranged the menu position on the resolution of 1024x768.
The posiion appears fine on that resolution but on other it doesn't.
Isn't there any way to fix it ?

Thanks.

molendijk
03-30-2010, 01:57 PM
Try to position everything in percentages.
===
Arie.

naremkim
03-30-2010, 03:35 PM
Hi ! molendijk.

I made the position in percentage.

The right following is the menu positioning.
<div style="position:absolute;top:5.5%;left:12.4%">

<!--[if IE]>
<iframe src="frameset.html" style="position:absolute;left:0px;top:0px;width:100%;height:100%"></iframe>
<![endif]-->

<!--[if !IE]><!-->
<object type="text/html" data="frameset.html" style="position:absolute;left:0px;top:0px;width:100%;height:100%"></object>
<!--<![endif]-->

Thanks for your kind replying.

molendijk
03-30-2010, 09:27 PM
And you didn't solve the problem yet?
===
Arie.

naremkim
03-30-2010, 10:27 PM
That's what I made at first.
The position for the menu is displaced on other resolutions.

Thanks.

molendijk
03-30-2010, 10:37 PM
OK, first find out what the width of the menu is, in pixels. Give it 'width:200px' first, and see what happens. This is probably too small, so keep on trying until you have the width.
Suppose it is '400px'. Then do this:
<div style="position:absolute;top:5.5%;left:50%; width: 400px; margin-left:-200px">
This will center the menu (the margin-left is the negative value for the width divided by 2).
===
Arie.

naremkim
03-31-2010, 01:04 AM
Thanks. It almost works.
The horizental position is fine now but the virtical position still problem.
You can check it on the site. If you want to see the index.html file then I will attach the file next time.
Thank you for your cooperation.

molendijk
03-31-2010, 05:03 PM
Then give the top position of the div a value in pixels, not percentages.
===
Arie.

naremkim
04-01-2010, 01:01 AM
It's magic !

It now works very fine.

This transparent-overlap menu is more useful than cross-frame menu.

Thanks a lot, Molendijk. I appriciate it.

naremkim
04-21-2010, 04:54 AM
To Molendijk.

I sent you an e-mail in which I ask you that ' Is there any way to donate $20 to the dynamic drive ? ' and one more thing to your gmail account on 12 April.
Can you reply me ?

Thanks.

molendijk
04-21-2010, 11:49 AM
To Molendijk.

I sent you an e-mail in which I ask you that ' Is there any way to donate $20 to the dynamic drive ?
I don't know. Try to contact ddadmin.
===
Arie.

naremkim
04-22-2010, 04:55 PM
To molendijk.
I resent you the email through your account molendijkarie at gmail.
Please reply my email. Thanks.

To ddadmin.
I appricate your operation of this website.
Could you let me know how I can donate $20 to the Dynamic Drive ?
I have a PayPal account.

Thanks.

ddadmin
04-23-2010, 10:04 AM
Hi naremkim:
If you must, please just make a donation to WWF (http://www.worldwildlife.org/). It would be as meaningful to me as a direct donation. :)

naremkim
04-23-2010, 07:03 PM
Hi ! ddadmin,

I'll take another chance. Thanks.