Jeg har en marquee liggende, som virker uden marquee-tagget (som ikke er et officielt tag !-)
Hvis du kan bruge den, kan vi lave nogle udvidelser, som selekterer f.eks. ud fra datoer !-)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<title>Marquee</title>
<meta name="Generator" content="Stone's WebWriter 4">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="olebole,roenving">
<style type="text/css">
.scroller {
font-family: verdana, arial, sans-serif;
font-size: 130px;
font-weight: bold;
position: absolute;
overflow: hidden;
white-space: nowrap;
}
</style>
<script type="text/JavaScript">
var marqNum,marqDelay,marqScrllAmnt,marq,marqCont,d=document;
function gE(id){return (d.all)?d.all[id]:d.getElementById(id)}
function pI(str){return parseInt(str)}
marqNum = 0;
var marqTxt = ["Hos Fiktiv Auto A/S f\345r du store fordele som erhvervsbilist!","Kr\346v surfing med S\370rens portal!"];
marqDelay = 1;
marqScrllAmnt = 1;
function scrollMarq() {
if (pI(marq.style.left)+marq.offsetWidth < 0) {
marq.style.left = marqCont.offsetWidth + "px";
marqNum = (marqNum+1)%marqTxt.length;
marq.innerHTML = marqTxt[marqNum];
}
marq.style.left = pI(marq.style.left) - marqScrllAmnt + "px";
}
function startMarq() {
gE("myMarquee").innerHTML = '<div class="scroller"></div>';
marqCont = (d.all)? gE("myMarquee").children[0] : gE("myMarquee").childNodes[0];;
marqCont.style.width = "100%";
marqCont.innerHTML = '<span style="position:relative;"></span>';
marq = (d.all)? marqCont.children[0] : marqCont.childNodes[0];
marq.innerHTML = marqTxt[marqNum];
marq.style.left = marqCont.offsetWidth + "px";
marqCont.style.height = marq.offsetHeight + "px";
setInterval("scrollMarq()", marqDelay);
}
window.onload = startMarq;
</script>
</head>
<body>
<!-- MARQUEE START -->
<div id="myMarquee" style="position:relative"></div>
<!-- MARQUEE END -->
</body>
</html>