vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - [YUI] VSQ - Scroll To Top (https://vborg.vbsupport.ru/showthread.php?t=243771)

mad@Max 06-01-2010 10:00 PM

[YUI] VSQ - Scroll To Top
 
1 Attachment(s)
Title: VSQ - Scroll To Top
Compatibility: 3.8.х - 4.0.х (ie, opera, firefox, chrome, safari)
Description: able to add a button at the bottom right of the screen by pressing which occurs smoothly move to top, with animation effect:)

Install:
  1. Extract content of archive to forum folder.
  2. At the bottom of the template headinclude add
    HTML Code:

    <script type="text/javascript" src="clientscript/yui/animation/animation-min.js"></script>
    <script type="text/javascript" src="clientscript/vsqscrolltotop.js"></script>

    If the script animation already exist, so don't include it.
  3. Set the button style in a file (image, size, position, etc.).

DEMO:
http://mixplay.ru/test/forum.php

Daniel_HBK 06-02-2010 10:01 AM

Nice! , installed

snakedevil 06-02-2010 05:47 PM

Great Thanks :)

lubbie 06-02-2010 06:54 PM

Very Nice. Thanks

Seems there is an Error. After first time installation and restart of the forum its displayed also if u are on top of the page

Just found out that this Tab is displayed if u change from CMS -> Forum or Forum -> CMS etc...

RobbieZ 06-02-2010 08:07 PM

Excellent. Installed.

Where is the image coming from? Id like to do my own :D

mad@Max 06-02-2010 08:27 PM

In vsqscrolltotop.js
Code:

...
background = "url(http://mixplay.ru/images/up1.png) no-repeat scroll 0% 0% transparent";
...


BlackJacket 06-04-2010 12:02 AM

ok that is awesome! Tagged for later.

Inflikted 06-05-2010 03:50 PM

is there a way to get rid of the bouncing up top? and simply have it scroll to the top

Jesh 06-05-2010 04:37 PM

Quote:

Originally Posted by Inflikted (Post 2048795)
is there a way to get rid of the bouncing up top? and simply have it scroll to the top

To remove the 'bounce', edit the .js file, find this line

var scroll = new Y.Scroll(document.getElementsByTagName((YAHOO.env. ua.webkit ? "body" : "html"))[0], {scroll: {to: [0, 0]}}, 3.5, Y.Easing.bounceOut);

change Y.Easing.bounceOut to 0.

var scroll = new Y.Scroll(document.getElementsByTagName((YAHOO.env. ua.webkit ? "body" : "html"))[0], {scroll: {to: [0, 0]}}, 3.5, 0);

Jesh 06-05-2010 04:40 PM

Also, to change speed, change the 3.5 to any number. Higher the slower.


All times are GMT. The time now is 01:58 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01178 seconds
  • Memory Usage 1,732KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete