Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   Adding a menu using php call which uses js (http://www.greenguysboard.com/board/showthread.php?t=58341)

LD 2010-07-23 10:37 AM

Adding a menu using php call which uses js
 
I have a menu which uses js to make some sub-items hidden and show when the mouse rolls over. It works as a stand alone when I display in the browser:
Code:

http://www.lusciousdelights.com/menunavrev.php
But when I try adding to a page with this code:
Code:


the script does not seem to work:
Code:

http://www.lusciousdelights.com/linklist/amateurt.php
Is there some way I can make this work?

Thanks!

Nymph 2010-07-23 12:17 PM

Just a guess, but maybe if you used the full URL in the menunavrev.php to the js, and css ?

LD 2010-07-23 01:47 PM

Quote:

Originally Posted by Nymph (Post 486800)
Just a guess, but maybe if you used the full URL in the menunavrev.php to the js, and css ?

That's it!! Thanks |smooch|

Nymph 2010-07-24 10:13 PM

I"m glad it worked for ya sweetie ;)

flowersgone 2010-07-27 08:41 AM

Hi,

I noticed that you are nowing using the new menus throughout the site and not just on the test page: http://www.lusciousdelights.com/linklist/amateurt.php. When I look at the pages the menu appears to go down past its bounding box and there is sometimes no space between the menu and the ad below.

I was able to hack a test fix into a downloaded copy of one of your pages that might give you some insight into the problem and lead you towards a fix. I changed
Code:

to read
Code:

and after reloading the bounding box looked better. You might try this on the test page mentioned above. While inline styles are often not regarded as good coding, if you find that the hack works I could easily provide you with some more stylistically appropriate coding.

Best of luck,
fg

LD 2010-07-27 09:10 PM

Quote:

Originally Posted by flowersgone (Post 487039)
You might try this on the test page mentioned above. While inline styles are often not regarded as good coding, if you find that the hack works I could easily provide you with some more stylistically appropriate coding.

Best of luck,
fg

Thanks for your help. What I did was put a margin at the bottom of the div using a css rule for the class "menunav" which looks ok in IE, but not FF. Ugh...I might try your suggestion and see what happens.

flowersgone 2010-07-28 04:16 PM

Quote:

Originally Posted by LD (Post 487081)
I ... put a margin at the bottom of the div using a css rule for the class "menunav" which looks ok in IE, but not FF.

It now looks better on my systems on IE7, IE8, FF, and Safari but there is still a small overflow by the menu at the bottom on all of them. I think I have come up with a reasonably simple and reliable solution to the problem.

First replace:
Code:

with

Code:

and then a bit further down the page replace

Code:


with

Code:


This seemed to work nicely for me on all browsers mentioned above except IE7 which I didn't have a chance to test.

If this works for you, you can also remove the height specification from the .menunav css rule.

HTH,
fg

LD 2010-07-30 12:08 PM

Thanks! haven't had a chance to play around with yet, maybe this weekend.

flowersgone 2010-07-30 09:31 PM

Actually - just noticed, for this to work you actually need to change

Code:

height: 755px;
to

Code:

height: auto;
in the .menunav css rule of dl_stylelusciousr.css or remove that specification completely.

flowersgone 2010-08-06 05:55 PM

Quote:

Originally Posted by LD (Post 487286)
Thanks! haven't had a chance to play around with yet, maybe this weekend.

I can see from a more careful look at your pages that LD did give it a try and am sorry to see that you had to give up. You now have


All times are GMT -4. The time now is 03:49 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc