JavaScripts -> Informationen -> Infotick v1.0
Mit dem Infotick können Sie erweiterte Informationen, etwa zu Links, ein-"tickern" lassen
Kompatibilität getestet:
Script-Code
<script type="text/javascript">
<!--
//Infotick v1.0 (c) 2003 Triple-M / http://www.htmlarsenal.de
//Benutzung / Usage: z.B. <a href="..." onMouseOver="info(this,'text') onMouseOut="restore()">...</a>
var spd=50; //Geschwindigkeit / Speed
//Bitte ab hier nichts mehr verändern / Please do not change anything from here on
var rtext="";
var itext="";
var cp=0;
var targ;
var to;
function tick() {
cp++;
targ.firstChild.nodeValue=itext.substr(itext.length-cp,cp)+rtext.substr(0,rtext.length-cp);
to=0;
if(cp<itext.length)to=window.setTimeout("tick()",spd);
}
function restore() {
if(to)window.clearTimeout(to);
targ.firstChild.nodeValue=rtext;
}
function info(target,text) {
itext=text;
targ=target;
rtext=target.firstChild.nodeValue;
cp=0;
to=window.setTimeout("tick()",spd);
}
//-->
</script>
<!--
//Infotick v1.0 (c) 2003 Triple-M / http://www.htmlarsenal.de
//Benutzung / Usage: z.B. <a href="..." onMouseOver="info(this,'text') onMouseOut="restore()">...</a>
var spd=50; //Geschwindigkeit / Speed
//Bitte ab hier nichts mehr verändern / Please do not change anything from here on
var rtext="";
var itext="";
var cp=0;
var targ;
var to;
function tick() {
cp++;
targ.firstChild.nodeValue=itext.substr(itext.length-cp,cp)+rtext.substr(0,rtext.length-cp);
to=0;
if(cp<itext.length)to=window.setTimeout("tick()",spd);
}
function restore() {
if(to)window.clearTimeout(to);
targ.firstChild.nodeValue=rtext;
}
function info(target,text) {
itext=text;
targ=target;
rtext=target.firstChild.nodeValue;
cp=0;
to=window.setTimeout("tick()",spd);
}
//-->
</script>