spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / javascript / column32


Controlling the Scroll Box

Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

When you want to change the characteristics of the scrolling box, you can change one of the following parameters:

  • Gsrc: The URL of the external HTML feed.
  • Ginterval: The number of milliseconds to wait between successive movements of the pages.
  • Gincrement: The distance in pixels of each movement.
  • GcanvasColor: The color of the canvas' background. Needed only for Internet Explorer. The color in Netscape Navigator is set in the external HTML file itself.
  • GleftPadding: The padding on the left side of the box.

The parameters are placed in a separate script, scrollerconfig.js:

// Begin parameters of scroller
var Gsrc = "jscolumns.html";
var Ginterval = 50;
  // The number of milliseconds between each vertical movement.
var Gdelay = 20;
var Gincrement = 1; // The distance (in pixels) of each movement.
var GcanvasColor = "#FFCCff";
  // background color of scroller, named or hex
var GleftPadding = 3;
// End parameters of scroller

The Gdelay variable is used to synchronize the various page loading, and does not control the appearance of the page.

http://www.internet.com

Produced by Yehuda Shiran and Tomer Shiran

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business


Created: December 21, 1998
Revised: December 21, 1998

URL: http://www.webreference.com/js/column32/control.html