- Menu scripts
- Window scripts
- Calendar scripts
- Gallery scripts
- Form widgets
- Tab view scripts
- Table widgets
- Drag and drop
- Folder trees
- AJAX scripts
- Content Effects
- Misc scripts
- Chess widgets
- DHTML Suite
Download Fixed marquee script
Put this into your <HEAD> section
Put this into your <BODY> section
You use plain HTML when you define the content of the marquee.
<div id="dhtmlgoodies_marquee"> is used to define the marquee object, and you use one inner div for each of your news messages. Example:
<span class="highlighted">Breaking news!</span>
This is the content of my marquee.
CSS in the <HEAD> section is used for the layout of the marquee. Look at the comments there for more information.
var dhtmlgoodies_marqueePosition = 'bottom'; // "top" or "bottom"
The speed is also something you could change. Two variables are used for this:
var dhtmlgoodies_marqueeSteps = 2; // Higher = Faster, Lower = slower and more smoothly
var dhtmlgoodies_marqueeSpeed = 8; // Lower value = Faster