OK, nu er jeg begynder på området, men jeg fatter ikke hvorfor den fucker teksten op når jeg sætter din script ind ?
Kan du se noget logisk eller er det bare mig der en nørd. :
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 4</title>
<base target="_self">
</head>
<body bgcolor="#918476">
</body>
<style type="text/css"><BR><BR>/*Example CSS for the two demo
scrollers*/<BR><BR>#mincssid{<BR>width: 200px;<BR>height: 100px;<BR>border: 1px
solid black;<BR>padding: 5px;<BR>font-family:
verdana,sans-serif;<BR>background-color:
rgb(145,132,118);<BR>}<BR><BR>.someclass{ //class to apply to your scroller(s)
if desired<BR>}<BR><BR></style><BR><BR><script
type="text/javascript"><BR><BR>/*Example message arrays for the one demo
scrollers*/<BR><BR>var pausecontent=new Array()<BR>pausecontent[0]='<a
href="<A href="
http://www.javascriptkit.com" target=_blank>
http://www.javascriptkit.com</A>">JavaScript Kit</a><br />Comprehensive JavaScript tutorials and over 400+ free
scripts!'<BR>pausecontent[1]='<a href="<A href="
http://www.codingforums.com" target=_blank>
http://www.codingforums.com</A>">Coding Forums</a><br
/>Web coding and development forums.'<BR>pausecontent[2]='<a href="<A
href="
http://www.cssdrive.com" target=_blank>
http://www.cssdrive.com</A>" target="_new">CSS Drive</a><br />Categorized CSS gallery and
examples.'<BR><BR></script><BR><BR><script
type="text/javascript"><BR><BR>/***********************************************<BR>*
Pausing up-down scroller- © Dynamic Drive (<A href="
http://www.dynamicdrive.com" target=_blank>
www.dynamicdrive.com</A>)<BR>* This notice MUST stay intact for
legal use<BR>* Visit <A href="
http://www.dynamicdrive.com/" target=_blank>
http://www.dynamicdrive.com/</A> for this script and 100s
more.<BR>***********************************************/<BR><BR>function
pausescroller(content, divId, divClass, delay){<BR>this.content=content
//message array content<BR>this.tickerid=divId //ID of ticker div to display
information<BR>this.delay=delay //Delay between msg change, in
miliseconds.<BR>this.mouseoverBol=0 //Boolean to indicate whether mouse is
currently over scroller (and pause it if it is)<BR>this.hiddendivpointer=1
//index of message array for hidden div<BR>document.write('<div id="'+divId+"
class="'+divClass+'" style="position: relative; overflow: hidden"><div
class="innerDiv" style="position: absolute; width: 100%"
id="'+divId+'1">'+content[0]+'</div><div class="innerDiv"
style="position: absolute; width: 100%; visibility: hidden"
id="'+divId+'2">'+content[1]+'</div></div>')<BR>var
scrollerinstance=this<BR>if (window.addEventListener) //run onload in DOM2
browsers<BR>window.addEventListener("load",
function(){scrollerinstance.initialize()}, false)<BR>else if
(window.attachEvent) //run onload in IE5.5+<BR>window.attachEvent("onload",
function(){scrollerinstance.initialize()})<BR>else if (document.getElementById)
//if legacy DOM browsers, just start scroller after 0.5
sec<BR>setTimeout(function(){scrollerinstance.initialize()}, 500)<BR>}<BR><BR>//
-------------------------------------------------------------------<BR>//
initialize()- Initialize scroller method.<BR>// -Get div objects, set initial
positions, start up down animation<BR>//
-------------------------------------------------------------------<BR><BR>pausescroller.prototype.initialize=function(){<BR>this.tickerdiv=document.getElementById(this.tickerid)<BR>this.visiblediv=document.getElementById(this.tickerid+"1")<BR>this.hiddendiv=document.getElementById(this.tickerid+"2")<BR>this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))<BR>//set
width of inner DIVs to outer DIV's width minus padding (padding assumed to be
top padding x
2)<BR>this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"<BR>this.getinline(this.visiblediv,
this.hiddendiv)<BR>this.hiddendiv.style.visibility="visible"<BR>var
scrollerinstance=this<BR>document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}<BR>document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}<BR>if
(window.attachEvent) //Clean up loose references in
IE<BR>window.attachEvent("onunload",
function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})<BR>setTimeout(function(){scrollerinstance.animateup()},
this.delay)<BR>}<BR><BR><BR>//
-------------------------------------------------------------------<BR>//
animateup()- Move the two inner divs of the scroller up and in sync<BR>//
-------------------------------------------------------------------<BR><BR>pausescroller.prototype.animateup=function(){<BR>var
scrollerinstance=this<BR>if
(parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){<BR>this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"<BR>this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"<BR>setTimeout(function(){scrollerinstance.animateup()},
50)<BR>}<BR>else{<BR>this.getinline(this.hiddendiv,
this.visiblediv)<BR>this.swapdivs()<BR>setTimeout(function(){scrollerinstance.setmessage()},
this.delay)<BR>}<BR>}<BR><BR>//
-------------------------------------------------------------------<BR>//
swapdivs()- Swap between which is the visible and which is the hidden div<BR>//
-------------------------------------------------------------------<BR><BR>pausescroller.prototype.swapdivs=function(){<BR>var
tempcontainer=this.visiblediv<BR>this.visiblediv=this.hiddendiv<BR>this.hiddendiv=tempcontainer<BR>}<BR><BR>pausescroller.prototype.getinline=function(div1,
div2){<BR>div1.style.top=this.visibledivtop+"px"<BR>div2.style.top=Math.max(div1.parentNode.offsetHeight,
div1.offsetHeight)+"px"<BR>}<BR><BR>//
-------------------------------------------------------------------<BR>//
setmessage()- Populate the hidden div with the next message before it's
visible<BR>//
-------------------------------------------------------------------<BR><BR>pausescroller.prototype.setmessage=function(){<BR>var
scrollerinstance=this<BR>if (this.mouseoverBol==1) //if mouse is currently over
scoller, do nothing (pause
it)<BR>setTimeout(function(){scrollerinstance.setmessage()},
100)<BR>else{<BR>var i=this.hiddendivpointer<BR>var
ceiling=this.content.length<BR>this.hiddendivpointer=(i+1>ceiling-1)? 0 :
i+1<BR>this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]<BR>this.animateup()<BR>}<BR>}<BR><BR>pausescroller.getCSSpadding=function(tickerobj){
//get CSS padding value, if any<BR>if (tickerobj.currentStyle)<BR>return
tickerobj.currentStyle["paddingTop"]<BR>else if (window.getComputedStyle) //if
DOM2<BR>return window.getComputedStyle(tickerobj,
"").getPropertyValue("padding-top")<BR>else<BR>return
0<BR>}<BR><BR></script><BR><BR></head><body><BR><BR><BR><script
type="text/javascript"><BR><BR>//new pausescroller(name_of_message_array,
CSS_ID, CSS_classname, pause_in_miliseconds)<BR><BR>new
pausescroller(pausecontent, "mincssid", "someclass",
3000)<BR><BR></script><BR><BR><BR></body></html>
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 4</title>
<base target="_self">
</head>
<body bgcolor="#918476">
</body>
<style type="text/css"><BR><BR>/*Example CSS for the two demo
scrollers*/<BR><BR>#mincssid{<BR>width: 200px;<BR>height: 100px;<BR>border: 1px
solid black;<BR>padding: 5px;<BR>font-family:
verdana,sans-serif;<BR>background-color:
rgb(145,132,118);<BR>}<BR><BR>.someclass{ //class to apply to your scroller(s)
if desired<BR>}<BR><BR></style><BR><BR><script
type="text/javascript"><BR><BR>/*Example message arrays for the one demo
scrollers*/<BR><BR>var pausecontent=new Array()<BR>pausecontent[0]='<a
href="<A href="
http://www.javascriptkit.com" target=_blank>
http://www.javascriptkit.com</A>">JavaScript Kit</a><br />Comprehensive JavaScript tutorials and over 400+ free
scripts!'<BR>pausecontent[1]='<a href="<A href="
http://www.codingforums.com" target=_blank>
http://www.codingforums.com</A>">Coding Forums</a><br
/>Web coding and development forums.'<BR>pausecontent[2]='<a href="<A
href="
http://www.cssdrive.com" target=_blank>
http://www.cssdrive.com</A>" target="_new">CSS Drive</a><br />Categorized CSS gallery and
examples.'<BR><BR></script><BR><BR><script
type="text/javascript"><BR><BR>/***********************************************<BR>*
Pausing up-down scroller- © Dynamic Drive (<A href="
http://www.dynamicdrive.com" target=_blank>
www.dynamicdrive.com</A>)<BR>* This notice MUST stay intact for
legal use<BR>* Visit <A href="
http://www.dynamicdrive.com/" target=_blank>
http://www.dynamicdrive.com/</A> for this script and 100s
more.<BR>***********************************************/<BR><BR>function
pausescroller(content, divId, divClass, delay){<BR>this.content=content
//message array content<BR>this.tickerid=divId //ID of ticker div to display
information<BR>this.delay=delay //Delay between msg change, in
miliseconds.<BR>this.mouseoverBol=0 //Boolean to indicate whether mouse is
currently over scroller (and pause it if it is)<BR>this.hiddendivpointer=1
//index of message array for hidden div<BR>document.write('<div id="'+divId+"
class="'+divClass+'" style="position: relative; overflow: hidden"><div
class="innerDiv" style="position: absolute; width: 100%"
id="'+divId+'1">'+content[0]+'</div><div class="innerDiv"
style="position: absolute; width: 100%; visibility: hidden"
id="'+divId+'2">'+content[1]+'</div></div>')<BR>var
scrollerinstance=this<BR>if (window.addEventListener) //run onload in DOM2
browsers<BR>window.addEventListener("load",
function(){scrollerinstance.initialize()}, false)<BR>else if
(window.attachEvent) //run onload in IE5.5+<BR>window.attachEvent("onload",
function(){scrollerinstance.initialize()})<BR>else if (document.getElementById)
//if legacy DOM browsers, just start scroller after 0.5
sec<BR>setTimeout(function(){scrollerinstance.initialize()}, 500)<BR>}<BR><BR>//
-------------------------------------------------------------------<BR>//
initialize()- Initialize scroller method.<BR>// -Get div objects, set initial
positions, start up down animation<BR>//
-------------------------------------------------------------------<BR><BR>pausescroller.prototype.initialize=function(){<BR>this.tickerdiv=document.getElementById(this.tickerid)<BR>this.visiblediv=document.getElementById(this.tickerid+"1")<BR>this.hiddendiv=document.getElementById(this.tickerid+"2")<BR>this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))<BR>//set
width of inner DIVs to outer DIV's width minus padding (padding assumed to be
top padding x
2)<BR>this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"<BR>this.getinline(this.visiblediv,
this.hiddendiv)<BR>this.hiddendiv.style.visibility="visible"<BR>var
scrollerinstance=this<BR>document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}<BR>document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}<BR>if
(window.attachEvent) //Clean up loose references in
IE<BR>window.attachEvent("onunload",
function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})<BR>setTimeout(function(){scrollerinstance.animateup()},
this.delay)<BR>}<BR><BR><BR>//
-------------------------------------------------------------------<BR>//
animateup()- Move the two inner divs of the scroller up and in sync<BR>//
-------------------------------------------------------------------<BR><BR>pausescroller.prototype.animateup=function(){<BR>var
scrollerinstance=this<BR>if
(parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){<BR>this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"<BR>this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"<BR>setTimeout(function(){scrollerinstance.animateup()},
50)<BR>}<BR>else{<BR>this.getinline(this.hiddendiv,
this.visiblediv)<BR>this.swapdivs()<BR>setTimeout(function(){scrollerinstance.setmessage()},
this.delay)<BR>}<BR>}<BR><BR>//
-------------------------------------------------------------------<BR>//
swapdivs()- Swap between which is the visible and which is the hidden div<BR>//
-------------------------------------------------------------------<BR><BR>pausescroller.prototype.swapdivs=function(){<BR>var
tempcontainer=this.visiblediv<BR>this.visiblediv=this.hiddendiv<BR>this.hiddendiv=tempcontainer<BR>}<BR><BR>pausescroller.prototype.getinline=function(div1,
div2){<BR>div1.style.top=this.visibledivtop+"px"<BR>div2.style.top=Math.max(div1.parentNode.offsetHeight,
div1.offsetHeight)+"px"<BR>}<BR><BR>//
-------------------------------------------------------------------<BR>//
setmessage()- Populate the hidden div with the next message before it's
visible<BR>//
-------------------------------------------------------------------<BR><BR>pausescroller.prototype.setmessage=function(){<BR>var
scrollerinstance=this<BR>if (this.mouseoverBol==1) //if mouse is currently over
scoller, do nothing (pause
it)<BR>setTimeout(function(){scrollerinstance.setmessage()},
100)<BR>else{<BR>var i=this.hiddendivpointer<BR>var
ceiling=this.content.length<BR>this.hiddendivpointer=(i+1>ceiling-1)? 0 :
i+1<BR>this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]<BR>this.animateup()<BR>}<BR>}<BR><BR>pausescroller.getCSSpadding=function(tickerobj){
//get CSS padding value, if any<BR>if (tickerobj.currentStyle)<BR>return
tickerobj.currentStyle["paddingTop"]<BR>else if (window.getComputedStyle) //if
DOM2<BR>return window.getComputedStyle(tickerobj,
"").getPropertyValue("padding-top")<BR>else<BR>return
0<BR>}<BR><BR></script><BR><BR></head><body><BR><BR><BR><script
type="text/javascript"><BR><BR>//new pausescroller(name_of_message_array,
CSS_ID, CSS_classname, pause_in_miliseconds)<BR><BR>new
pausescroller(pausecontent, "mincssid", "someclass",
3000)<BR><BR></script><BR><BR><BR></body></html>