Icontem

File: testScrollbarToTop.html

Recommend this page to a friend!
  Classes of Manuel Lemos  >  JavaScript Scrollbar to Top  >  testScrollbarToTop.html  >  Download  
File: testScrollbarToTop.html
Role: Example script
Content type: text/plain
Description: Example page of scrollbar at the top and bottom of a div
Class: JavaScript Scrollbar to Top
Show a scrollbar at top and bottom of wide element
Author: By
Last change:
Date: 6 years ago
Size: 892 bytes
 

Contents

Class file image Download
<!--
/*
 * testScrollBarToTop.html
 *
 * @(#) $Id: testScrollbarToTop.html,v 1.1 2013/10/29 01:17:35 mlemos Exp $
 *
 */
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<title>Test the Scrollbar To Top Object</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<style type="text/css">
* { font-family: sans-serif,arial,helvetica }
#content { width: 3000px }
</style>
<script type="text/javascript" src="scrollbarToTop.js"></script>
<script type="text/javascript"><!--

/*
 * Create the top scrollbar object
 */
var sb = new ML.content.scrollbarToTop();

// --></script>
</head>
<body onload="sb.addTopScrollbar('content');">
<div id="content">Large content area! Large content area! Large content area! Large content area! Large content area! Large content area! Large content area! Large content area!</div>
</body>
</html>