Ich habe ein Modul mit eigenem html, in dieses will ich einen Textscoller mit javascript einbauen.
Wenn ich den Code mit WYSIWYG Editor einbaue passiert gar nichts. Ohne Editor sehe ich zumindest den Text aber er bewegt sich nicht.
Gibt es dafür einen Workaround?
Oder gibt es ein Modul was meinen Funktionswunsch enthält?
Hier der Code:
Code:<head> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var color01 = "white" // Hintergrundfarbe var color02 = "#640b0f" // Randfarbe var swidth=100; // scroller breite var sheight=100; // scroller hoehe var sspeed=2; // scroller geschwindigkeit var wholemessage='' //Hier den Inhalt; ändern für den eigenen zweck, HTML-Code ist erlaubt :::::::: wholemessage='<div align="center"><font face="century gothic" size="3" color="#640b0f"><b>Newsflash</b></DIV><br><font size="2"><div align="center">Hier stehen die änderbaren <b>News</b></DIV></font></font>' //Bis hier den Inhalt :::::::::::::::::::::::::::::::::::::::::::::::::::::::: function start(){ if (document.all) return if (document.getElementById){ document.getElementById("slider").style.visibility="show" ns6marquee(document.getElementById('slider')) } else if(document.layers){ document.slider1.visibility="show" ns4marquee(document.slider1.document.slider2) } } function ns4marquee(whichlayer){ ns4layer=eval(whichlayer) ns4layer.document.write(wholemessage) ns4layer.document.close() sizeup=ns4layer.document.height ns4layer.top-=sizeup ns4slide() } function ns4slide(){ if (ns4layer.top>=sizeup*(-1)){ ns4layer.top-=sspeed setTimeout("ns4slide()",100) } else{ ns4layer.top=sheight ns4slide() } } function ns6marquee(whichdiv){ ns6div=eval(whichdiv) ns6div.innerHTML=wholemessage ns6div.style.top=sheight sizeup=sheight ns6slide() } function ns6slide(){ if (parseInt(ns6div.style.top)>=sizeup*(-1)){ ns6div.style.top=parseInt(ns6div.style.top)-sspeed setTimeout("ns6slide()",100) } else{ ns6div.style.top=sheight ns6slide() } } // End --> </script> </head> <body onLoad='start()';> <!-- hier Angaben 4.x Hintergrund- ,Randfarbe, Breite Höhe --> <!-- des Gesamtbereichs eintragen--> <!-- Einfluß für Netscape 4.x auch Farben--> <span style="borderWidth:1; borderColor:#000000; width:300; height:100;"> <ilayer width=150 height=100 name="slider1" bgcolor="#CFCFCF" visibility=hide> <layer name="slider2" onMouseover="sspeed=0;" onMouseout="sspeed=2"> </layer> </ilayer> <script language="JavaScript"> <!-- if (document.all){ document.writeln('<marquee id="ieslider" scrollAmount=2 width=300 height=100 direction=up style="border:1 solid '+ color02 +';background-color:'+ color01 +'">') document.writeln(wholemessage) ieslider.onmouseover=new Function("ieslider.scrollAmount=0") ieslider.onmouseout=new Function("if (document.readyState=='complete') ieslider.scrollAmount=2") document.write('</marquee>') } if (document.getElementById&&!document.all){ document.write('<div style="position:relative;overflow:hidden;width:300;height:100;clip:rect(0 302 102 0); background-color:'+ color01 +';border:1px solid '+ color02 +';" onMouseover="sspeed=0;" onMouseout="sspeed=2">') document.write('<div id="slider" style="position:relative;width:&{swidth};">') document.write('</div></div>') } //--> </script></span> <br> </bod>


LinkBack URL
About LinkBacks
Zitieren
Lesezeichen