#!/COMMUNITY
Members: 5374
davon online: 1
weitere User: 27
12.02.2012 / 10:07
Community-Member werden
|
Paßwort vergessen
|
OnlineMonitor (1)
Perl-Archiv
Forum
Javascript
Home
PERLscripts
PHPscripts
JAVAscripts
Hilfreiches
Links2www
Newscenter
Community
Interna
Javascript
Archivübersicht
Tutorials
Zum Forum
JS-Links
BuchTipps
WebForen
Forenübersicht
Neueste Themen
Ohne Antwort
Aktivste Themen
Themensuche
Forenarchiv
Newsgroups
Javascript » Animationen » statischer Ticker
zur Übersicht
Kategorie
Animationen
Bezeichnung
statischer Ticker
ScriptDemo
Neues Fenster für Demo öffnen
Statistik
15770 Aufrufe davon 0x gestern
Keine Beschreibung vorhanden.
Javascript-Quellcode
(einfach markieren, kopieren und lokal abspeichern)
<style type="text/css"> body {margin:0px;} #cont {position:absolute; top:-100px; left:0px; width:100%; height:18px; overflow:hidden; visibility:hidden;} #text {position:relative; left:2000px; height:18px; font-family:tahoma,arial,helvetica,sans-serif; font-size:14px; font-weight:bold;} #text a {color:#ffff99; font-family:tahoma,arial,helvetica,sans-serif; font-size:14px; font-weight:bold; text-decoration:none;} #text a:hover{color:#ff0000; font-family:tahoma,arial,helvetica,sans-serif; font-size:14px; font-weight:bold; text-decoration:none;} </style> <script language="JavaScript1.2" type="text/javascript"> /************************************************************************ Script made by Martial Boissonneault © 2001 http://getElementById.com/ This script may be used and changed freely as long as this msg is intact Visit http://getElementById.com/ for more free scripts and tutorials. *************************************************************************/ var ie5 = (document.getElementById && document.all); var ns6 = (document.getElementById && !document.all); var nWidth = 650; // width of text; more text you have higher this number is. var nSpeed = 5; // the speed of the ticker. var nBgOff = "#800000"; // the background-color onmouseout. var nBgOn = "#000000"; // the background-color onmouseover. var nCoOff = "#ffffff"; // the font-color onmouseout. var nCoOn = "#00ffff"; // the font-color onmouseover. /* You don't have to edit below this line */ var nEnd = -nWidth; var nLeft = nWidth; var timerTt = null; var timerSt = null; function Statik() { if(ie5) { scrollY = document.body.scrollTop; innerHeight = document.body.clientHeight; } if (ie5 || ns6) { obj.style.top = (innerHeight - obj.offsetHeight) + scrollY; obj.style.left = 0; obj.style.width = 100 + "%"; timerSt=setTimeout("Statik()", 10); } } function TickerTape(){ if(ie5) { innerWidth = document.body.clientWidth; } if(ie5 || ns6) { obj.style.backgroundColor = nBgOff; obj.style.color = nCoOff; tck.style.left = nLeft; tck.style.width = nWidth; nLeft = nLeft - nSpeed; if( nLeft < nEnd ) {nLeft = innerWidth;} timerTt=setTimeout('TickerTape()', 30); } } function StopIt(){ clearTimeout(timerTt); obj.style.backgroundColor = nBgOn obj.style.color = nCoOn } function TickerInit(){ if(ie5 || ns6) { tck = document.getElementById('text'); obj = document.getElementById('cont'); obj.style.visibility = "visible"; obj.onmouseover=StopIt; obj.onmouseout=TickerTape; TickerTape(); Statik(); } } onload=TickerInit; </script> <body onresize="{history.go(0)}"> <div id="cont"> <div id="text"> jsunity.de - Deutschlands beste Ressource für JavaScripts *** Hier finden Sie alles, was Sie für einen erfolgreichen Internetauftritt brauchen </div> </div> </body>
Kommentare zu
statischer Ticker
1 Kommentar(e) vorhanden / Anzeige der neuesten 5
am 16.11.2003 um 19:02 Uhr von Tot
Wenn ich den Ticker einfüge, speichere und dann neu lade, bringt er meine gesammte vorlage...
Alle Kommentare anzeigen
-
Kommentar hinzufügen
© PERL/CGI/
PHP
/JS/SCRIPT/unity.de 1998-2009 .::.
interaktiv.shop
.::.
CGI-Service
.::.
Kontakt
.::.
Impressum
Link: /javascript/scripts/javascript_0297_main.shtml .::. Aufrufe heute: 1 .::. Aufrufe gesamt: 10028