Javascript in URL
-
- Beginner
- Posts: 2
- Joined: Sun May 19, 2002 7:23 pm
Javascript in URL
I would like to include a onmouseover and onmouseout calls to pop-ups in some menu urls. How can I do this?
-
- Beginner
- Posts: 1
- Joined: Sun May 19, 2002 7:24 pm
Re: Javascript in URL
This all depends on what you are doing with the mouseovers. Are you just wanting to swap images or are we doing something more complex?
-
- Beginner
- Posts: 1
- Joined: Sun May 19, 2002 7:24 pm
Re: Javascript in URL
I want to use it to call OverLib pop-ups (see http://www.bosrup.com/web/overlib/ ).
It requires the following
onmouseover="return overlib('message');"
onmouseout="return nd();"
I wll provide the user with addition information about the content of the link they would go to - essentially a tooltip
It requires the following
onmouseover="return overlib('message');"
onmouseout="return nd();"
I wll provide the user with addition information about the content of the link they would go to - essentially a tooltip
-
- Beginner
- Posts: 1
- Joined: Sun May 19, 2002 8:23 pm
Re: Javascript in URL
Hmmm -- looks like there some sort of conflicts between mmenu.js and overlib.js. They cannot co-exist let alone have menu items call overlib.
Not sure where the problem is.
Oh well - I sure like mmenu.js but I have a critical need for overlib pop-ups.
Not sure where the problem is.
Oh well - I sure like mmenu.js but I have a critical need for overlib pop-ups.
-
- Beginner
- Posts: 2
- Joined: Sun May 19, 2002 7:24 pm
Re: Javascript in URL
I think there is a way to make this work, I just haven't been able to work out the syntax you need to use to embed it in the menu. I'm sure Andy can work out the logic on this one though, I've seen him do it before. The problem is you have to escape from certain characters, most notably the " marks, otherwise the menu reads it an and of variable and things go boom. At best I can get nothing to happen and the menu works, or an error is reported about expected ')' and the menu works. At worst no menu.
-
- Beginner
- Posts: 2
- Joined: Sun May 19, 2002 7:24 pm
Re: Javascript in URL
Hello,
The problem is the Overlib.js file has a function called disp and the menu uses a variable called disp.
I renamed the variable in mmenu.js and everything worked. I'll make sure that this variable has a permenant fix in the new version.
BTW there are only 3 references to disp in mmenu.js so as long as you rename each instance of disp to say mdisp everything should be ok.
-- Andy
The problem is the Overlib.js file has a function called disp and the menu uses a variable called disp.
I renamed the variable in mmenu.js and everything worked. I'll make sure that this variable has a permenant fix in the new version.
BTW there are only 3 references to disp in mmenu.js so as long as you rename each instance of disp to say mdisp everything should be ok.
-- Andy