
Home
Dynamic Content
Here
|
Categories
Partners
DaniWeb is an exciting community for web developers, Internet marketers, and technology enthusiasts.
Other Sections
Sweet Ads
Compatibility
|
|
FF1+ IE5+ Opr7+
Scrollable content II Author:
Description: We derived our idea for this script from MrShowBiz (now retired), which used a similar setup on its front page to display news headlines. Display content in a confined area. Users can then view the entire content via the automatic scroll up/down functionality. Compatible with all DHTML browsers (IE4+, NS4, NS6), this is a great script to compact and add a touch of interactivity to portions of your page. Demo:
- DHTML is the
combination of HTML, JavaScript, and CSS - DOM stands for Document Object Model - DHTML allows
content on a page to change on the fly, without reloading the page - CSS allows for the separation between content
definition and formatting - CSS stands for Cascading style sheet - Dynamic
Drive provides free, cut and paste DHTML scripts Step 1: Add the following code into the <BODY> section of your page: Step 2: The script uses two images as part of its interface. You can create your own, or use the two below (enlarged for easier download):
Upload them into the same directory as your webpage. Technical NoteTo alter the interface's width, change all occurrences of the number "175" and "170" to another number. To alter its height, change the occurrences of "160". An interesting way to decorate the script is with a background image. Finally, note that this script accesses the BODY onload event in NS6. If your page contains another script that does the same, see here for tips on resolving the conflict. |