If you have a blog or website pages long, it is good you install jquery scroll to top on your web page. the workings of this script is rolled back to view the first website on the top.

For demo click the image in the bottom right to return to page top
  1. Copy this script just above the tag <head>

    <script src='http://sites.google.com/site/zoyagallery/script/jquery.min.js' type='text/javascript'/>
    <script src='http://sites.google.com/site/zoyagallery/script/scrolltopcontrol.js' type='text/javascript'/>
  2. You can also make arrangements with a little script to modify scrolltopcontrol.js
    download scrolltopcontrol.js
  3. script that you can modify the file scrolltopcontrol.js

    setting: {startline:100, scrollto: 0, scrollduration:1000, fadeduration:[500, 100]},
    controlHTML: '<img src="up.gif" style="width:24px; height:24px" />', //HTML for control, which is auto wrapped in DIV w/ ID="topcontrol"
    controlattrs: {offsetx:15, offsety:15}, //offset of control relative to right/ bottom of window corner
    anchorkeyword: '#top', //Enter href value of HTML anchors on the page that should also act as "Scroll Up" links
  4. After your modifications, then you upload the file again scrolltopcontrol.js script. and the code in step 1 was changed to

    <script src='http://sites.google.com/site/zoyagallery/script/jquery.min.js' type='text/javascript'/>
    <script src='scrolltopcontrol.js url address that you upload' type='text/javascript'/>

1 comments:

qqqqq

Just Comment. Not Spam!