Scroll down content script

Demo

Bookmark and Share

Put this into your <HEAD> section

Put this into your <BODY> section

Put the code in the textarea below where you want the pulldown to appear.

Implementation

Content

Put the slide down content right below the line <!-- slide down content goes here --> in the code

This is the typical code used to show the content:

<a href="#" onclick="slidedown_showHide('box1');return false;">Try it</a>

"box1" is the id of the slide down box.

Configuration

This javascript function is optional. Use it to modify the animation speed.:

  1. setSlideDownSpeed(newSpeed) - Set slide down speed

The speed and width could also be adjusted manually in the javascript and css code if you don't want to use the javascript functions.

By modifying the cascading style sheet(CSS) of the .dhtmlgoodies_contentBox, you can change the appearance of the slide down content.

border:1px solid #317082; /* Border color and style */
background-color:#E2EBED; /* Background color */

For further information, see how these functions and CSS are used in the code.

Update log

  • December, 13th, 2006 - Supporting more than one box per page

Tweet

Advertisement:
A logo design contest at Logomyway



About/Contact | A good idea? | Submit a script | Privacy notice
© 2005 - 2010 dhtmlgoodies.com