New Revised CSS Library Forums Web Tools
FAQs Awards Usage Terms Contact

<html>
<head>

<!--[if IE]>

<IE:Download ID="marqueedata" STYLE="behavior:url(#default#download)" /> 

<div id="externalmessage" style="position:absolute; width: 300px; height: 250px" onMouseover="pausemessage()" onMouseout="resumemessage()" src="message2.htm">
</div>


<script type="text/javascript">

/******************************************
* Flying Message script II- Dynamic Drive (www.dynamicdrive.com)
* Visit http://www.dynamicdrive.com/ for full script
* This notice must stay intact for use
******************************************/

//set external message to display
var messageurl="message2.htm"
//set offset of message from screen top
var offset_top=100
var offset_left=-300
//set message speed (larger=faster)
var speed=4
//set to "off" to turn off message
var onoff="on"

function readymessage(){
if (onoff=="off")
return
downloaddata()
externalmessage.style.top=offset_top
externalmessage.style.left=offset_left
movemessage()
}

function movemessage(){
if (externalmessage.style.pixelLeft<=truebody().clientWidth)
externalmessage.style.pixelLeft+=speed
else{
externalmessage.style.display="none"
return
}
moveit=setTimeout("movemessage()",10)
}

function pausemessage(){
clearTimeout(moveit)
}

function resumemessage(){
if (!externalmessage.contains(event.toElement))
movemessage()
}


function downloaddata(){
//access IE 5's default startDownload method to download the external file, then call the custom displaydata() method afterwards
marqueedata.startDownload(messageurl,displaydata)
}

function displaydata(data){
//display the downloaded file inside externalmessage
externalmessage.innerHTML=data
}

function truebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}


</script>

<![endif]-->

</head>

<body onLoad="if (document.all&&window.print) readymessage()">

</body>
</html>