View Full Version : jQuery Scroll to Top Control doesn't work >.<

06-23-2011, 09:32 PM
1) Script Title: jQuery Scroll to Top Control

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex3/scrolltop.htm

3) Describe problem: Well, it doesn't seem to work. Instead of a gentle scroll animation to the top, it instantly switches to top (without any animation).

For scripts in head, I tried putting scrolltopcontrols.js even in the forum root folder, but it didn't change anything. The scripts look like this in the headinclude template:

<script type="text/javascript" src="/clientscript/scrolltopcontrol.js">
* Scroll To Top Control script- Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Project Page at http://www.dynamicdrive.com for full source code

<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>

There is a native doctype for vB forums already there, but even after I changed it to the proposed one on the code's page, it didn't change anything. Taken from source:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" lang="en">

The button to top is placed in footer template as:

<td class="tfoot" align="center"><a href="#top"><img src="/images/buttons/backtotop.png" alt="Back to Top" /></a></td>

Rawr, if anyone would be willing to work over this and other problems via MSN with me, I'd be totally happy~

06-24-2011, 02:59 AM
Please post a link to the page on your site that contains the problematic script so we can check it out.

06-24-2011, 12:21 PM
http://muffin.g2anime.net/index.php < it's a link to the forum, and the script itself should be on every page there. The Back to Top link is on the very bottom in every foooter: http://prntscr.com/24uob. By the way, any ideas on how I could make it so it would be in center? With so many tables there align center doesn't exactly work.

EDIT: By the way, is this the right section to post such things?

06-26-2011, 09:51 AM
*Feels kinda sad again*