- Create Account

Scroller + Popup

Forums > Combining Scripts > Scroller + Popup
Author
Message

1) rafcab Group: Members
Posts: 17 Joined: 3 May 2004 Location: Spain IP: 62.174.--.--
Hi,

I need to mix DHTML scroller v4.0 and Popup menus. At present I have used menus v5.1 and my first tries in mixing them are unsuccesful.
Do you recommend me to use your latest release or maybe I can continue trying the option I say above?

Thank you very much
Rafael

2) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 222.152.--.--
Mix the latest releases together; there's been a few changes to the common cross-browser code internally which means it's easiest to stick the two latest ones together rather than mix and match.

Also, they're now a lot easier to combine; all you have to do is paste the menu <link> and <script> tags into your scroller document and it should work.

Good luck - Angus.

3) Eric Group: Guests
IP: 143.107.--.--
Hi Angus,

First of all, congratulations for your very good work in these scripts! They are all excelent and helps us a lot.

I am also having a problem on mixing Popup Menus and DivScroller together. I had a menu with some submenus in it. It was working fine when I used frames and now I am working on a new version of my site to eliminate the frames and use the DivScroller. Well, I followed your instructions in the DivScroller FAQ (i.e. put the scroller script into the HEAD section, the link to the menu CSS file into the HEAD also and the SCRIPT tag for the menu into the BODY). But now, the menu doess not work anymore.

The problem is that the submenus never get shown and I get an error in IE6 telling me that "sty" is not an object. The error occurs in the following line in the HEAD section:

<script type="text/javascript" language="JavaScript1.2" src="JS/divscroll.js"></script>

I am stuck. I am quite new to Javascript and I am not able to understant some pieces of your code, so I would really appreciate your help.

Thanks in advace,
Best Regards!
Eric

4) Eric Group: Guests
IP: 143.107.--.--
hi Angus,

Here am I again. Nevermind. I was able to get it done when I combined the cross-browser sections of both scripts. Now it seems to work fine.

Just a little doubt. Can I remove one of the cross-browser sections and leave just the other in one of the scripts?

Thank you and good work!
Eric

5) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 210.55.--.--
They're similar but slightly different (a few of the functions are used by one but not both scripts). So you can delete one, as long as you copy across any lines missing from the other (the LyrFn lines, mostly).

- Angus.

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.