ja,ich hab den Code ja richtig in meine Page eingebunden (sie heist rechts.html) aber trotzdem passiert bei mir garnichts…komisch…
kann es evtl.daran liegen, das ich noch nen JS ticker auf der page hab?
Code Header:
<!–
.spanstyle
{
COLOR: #FF0098;
FONT-FAMILY: Verdana;
FONT-Size: 8pt;
FONT-WEIGHT: bold;
POSITION: absolute;
TOP: -50px;
VISIBILITY: visible
}
–>
<!–
var x, y;
var step=10;
var flag=0;
var message =„Ehrlich EDV-Beratung“;
message=message.split("");
var xpos=new Array();
for (i=0; i<=message.length-1; i++)
{
xpos[i]=-50;
}
var ypos=new Array();
for (i=0; i<=message.length-1; i++)
{
ypos[i]=-50;
}
function handlerMM(e)
{
x=(document.layers) ? e.pageX : document.body.scrollLeft + event.clientX;
y=(document.layers) ? e.pageY : document.body.scrollTop + event.clientY;
flag = 1;
}
function makesnake()
{
if (flag == 1 && document.all)
{
for (i=message.length - 1; i>=1; i–)
{
xpos[i] = xpos[i-1] + step;
ypos[i] = ypos[i-1];
}
xpos[0] = x + step;
ypos[0] = y;
for (i=0; i < message.length - 1; i++)
{
var thisspan = eval(„span“ + (i) + „.style“);
thisspan.posLeft = xpos[i];
thisspan.posTop = ypos[i];
}
}
else if (flag==1 && document.layers)
{
for (i=message.length - 1; i>=1; i–)
{
xpos[i] = xpos[i - 1] + step;
ypos[i] = ypos[i - 1];
}
xpos[0] = x + step;
ypos[0] = y;
for(i=0; i < message.length - 1; i++)
{
var thisspan = eval(„document.span“ + i);
thisspan.left = xpos[i];
thisspan.top = ypos[i];
}
}
var timer = setTimeout(„makesnake()“, 10);
}
–>
Code Body:
Netzwerke, Sicherheit, Internet, Software, Support, Administration …Ehrlich EDV
�
�EDV aus einer Hand…
�Netzwerke, Sicherheit, Internet, Software, Support, Administration … Ehrlich EDV
Mehr….
�
Herzlich Willkommen auf der Homepage der Firma Ehrlich EDV-Beratung!
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;}
var ie5 = (document.getElementById && document.all);
var ns6 = (document.getElementById && !document.all);
var nWidth = 780; // width of text; more text you have higher this number is.
var nSpeed = 3; // the speed of the ticker.
var nBgOff = „#E9321A“; // the background-color onmouseout.
var nBgOn = „#138536“; // the background-color onmouseover.
var nCoOff = „#ffffff“; // the font-color onmouseout.
var nCoOn = „#ffffff“; // 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;
Ehrlich EDV-Beratung - Beratung, Planung von EDV- und
Netzwerksystemen, Soft- und Hardwareentwicklungen
<!-- Begin
for (i=0; i<=message.length - 1; i++)
{
document.write("<span id='span"+i+"'class=‚spanstyle‘>");
document.write(message[i]);
document.write("</span>");
}
if (document.layers)
{
document.captureEvents(Event.MOUSEMOVE);
}
document.onmousemove = handlerMM;
//End -->
MfG Sabine L.