- Create Account

Combining Tipster - Fader - Scroller

Forums > Combining Scripts > Combining Tipster - Fader - Scroller
Author
Message

1) webananda Group: Members
Posts: 3 Joined: 21 Dec 2004 Location: Northern California IP: 67.180.--.--
Hi Angus,

Awesome coding...thanks for making it available...its saving me a ton of work. I've learned more playing with your code than reading books.

I've successfully integrated your Tipster and Fader code into a single HTML page, both work great! But I'm having two problems:
1. I get random "Done, but with errors on page" messages when I load the page...sometimes, not always.
2. As soon as I try to use the Scroller code snippet here (I've pared it down to this):
<script language="JavaScript1.2" type="text/javascript"><!--
var content = new DHTMLScroller('content', 'cb_main.html');
//--></script>
I  immediately start getting errors. If I omit the 'new DHTMLScroller' call, no problem. I can get the Scroller to work without the Tipster, and vice versa... maybe a clue here?

I'm a total newbie with JS, but I'm suspecting a problem with the two isDOM calls in tipster.js and dvscroll.js. Can you help?

Thanks.

2) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 210.54.--.--
In case you're reading this here first -- thank you very much for your donation! I certainly appreciate it :).

The  two (or rather, three) scripts *should* combine reasonably well together. What errors are you getting? If you're using a browser like Firefox http://www.mozilla.org or Opera http://www.opera.com you can select "Tools -> JavaScript Console" or "Window -> JavaScript Console" respectively to see a log of errors and their respective lines; much better than IE. It could be a simple syntax error somewhere.

Failing that... have you got a link to the page in question? I'd be quite happy to take a look and see if I can spot anything wrong.

Good luck - Angus.

3) webananda Group: Members
Posts: 3 Joined: 21 Dec 2004 Location: Northern California IP: 67.180.--.--
Thanks Angus. Your tip on using Firefox for its JavaScript Console was great! I found several syntax errors, all mine. Once I'd removed them, things started working. I've got tipster, fader, and scroller all working on the same page now.

Here's  the link: http://www.circularstrengthmag.com/rmax-portal/Clubbells.html It uses the Dreamweaver Halo template as a jumping off point.

The site is a conversion of an existing commercial site for a friend...its very much still 'under construction', but any feedback, criticism, or suggestions you care to make would be much appreciated.

Thanks again for the great scripts!

4) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 219.88.--.--
Hey, glad you managed to resolve the errors! Perhaps now you'll be tempted to stay with Firefox by the rest of its features like tabs, popup blocking, find-as-you-type and so forth, too ;).

I  tested in FF 1.0 and the right-side images overlaid the scrollbar a little, so perhaps reduce the width of the scroller a little. Other than that, all good.

- 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.