News Scroller

 

 

 

 

 

Dieser Teil des Scripts kommt in den Headbereich

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

// geben Sie hier die URL Ihres blank.gif
var blank = "http://download.servus-wien.com/images/blank.gif";

topedge = 130; // Position des Fensters von oben
leftedge = 10; // Position des Fensters von links
boxheight = 150; // Höhe des Fensters
boxwidth = 210; //Breite des Fensters
scrollheight = 250; // Gesamthöhe des zu scrollenden Inhalts

function scrollnews(cliptop) {
if (document.layers) {
newsDiv = document.news;
newsDiv.clip.top = cliptop;
newsDiv.clip.bottom = cliptop + boxheight;
newsDiv.clip.left = 0;
newsDiv.clip.right = boxwidth + leftedge;
newsDiv.left = leftedge;
newsDiv.top = topedge - cliptop;
}
else {
newsDiv = news.style;
newsDiv.clip = "rect(" + cliptop + "px " + (boxwidth + leftedge) + "px " + (cliptop + boxheight) + "px 0px)";
newsDiv.pixelLeft = leftedge;
newsDiv.pixelTop = topedge - cliptop;
}
cliptop = (cliptop + 1) % (scrollheight + boxheight);
newsDiv.visibility='visible';
setTimeout("scrollnews(" + cliptop + ")", 150);
}
// End -->

Dieser Teil des Scripts kommt in den BodyTag
OnLoad="scrollnews(0)"
Dieser Teil des Scripts kommt in den Bodybereich
<div ID="news" style="position:absolute; visibility:hidden;
top:34px; left:187px; height:312px;
clip:rect(10,100,100,10); border-width:0px;; width: 289px">
<table border=0 cellpadding=1 cellspacing=0 bgcolor="white" width="197">
<tr>
<td width="197">
<script language="javascript">
document.write('<img src=' + blank + ' width=1 height='+boxheight+'>');
</script>
</td>
</tr>
<tr>
<td width="197">
<!-- ++++++++++++Inhalt des Fensters++++++++++++++++ -->
<table width="210" border="1" cellspacing="10" cellpadding="5" align="center" background="../images/bgr-cell.gif">
<tr>
<td bgcolor="#FFFFFF">Hier rollt vorbei, was immer Sie rein geben, Text, <br>
noch einmal Text, <br>
und no a bissl Text.</td>
</tr>
<tr>
<td>
<div align="center"><img src="../images/logo-kl-download.gif" width="90" height="80"></div>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF">Aber auch anderes wie Bilder, Links, alles was
Sie mit HTML machen können. <br>
Wenn es durchgerollt ist fangt&acute;s wieder von vorne an.</td>
</tr>
</table>
<!-- ++++++++++++++Inhalt Fenster Ende++++++++++++++++-->

</td>
</tr>
<tr>
<td width="197">
<script language="javascript">
document.write('<img src=' + blank + ' width=1 height='+boxheight+'>');
</script>
</td>
</tr>
</table>
</div>