Blaq
Joined: 27 Feb 2004 Posts: 45
|
Posted: Mon Mar 01, 2004 9:43 am Post subject: Marquee Scroller |
|
|
Simply insert the below into the <body> section of your page where you wish the marquee to appear:
<!--[if IE]>
<IE:Download ID="marqueedata" STYLE="behavior:url(#default#download)" />
<marquee id="externalmarquee" direction=up scrollAmount=4 style="width:200px;height:150px;border:1px solid black;padding:3px" onMouseover="this.scrollAmount=2" onMouseout="this.scrollAmount=4" src="update.htm">
</marquee>
<script language="JavaScript1.2">
/*
External Data Source Marquee Script (Updated 99/11/02)-
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of Use, visit dynamicdrive.com
*/
function downloaddata(){
marqueedata.startDownload(externalmarquee.src,displaydata)
}
function displaydata(data){
externalmarquee.innerHTML=data
}
if (document.all)
window.onload=downloaddata
</script>
<![endif]-->
Configuring the marquee
Configuring the marquee is a piece of cake- everything is done inside the <marquee> tag. In this tag, the style attribute sets the dimensions of it, the src references the external document to load, and finally, the scrollAmount sets the speed. Change all three to your liking. |
|