html codes?

I was trying to put some html codes on my site,one is a news ticker, you know,one that scrolls and the other was like one of those associate program codes,anyways whenever I submit the site (godaddy) the ticker and the other code doesnt appear,all i see is the code,I dont know how to fix this,anybody got any ideas? this is the code im using <div id=div_n4s></div><script src=http://www.news4sites.com/service/newsfeed.php?tech=js&id=546></script><script>function LinesupModern() { clearTimeout(cfunc); var str="<li><a href="+content[ccap][url]+"><nobr>"+content[ccap][caption].substr(0,40)+"</nobr></a><br>"; var hn=0; var now=new Date(); for(var i=1;i<6;i++) { hn=((ccap+i)<content.length)?ccap+i:ccap+i-content.length; str+="<li><a href="+content[hn][url]+"><nobr>"+content[hn][caption].substr(0,40)+"</nobr></a><br>"; } var id=document.getElementById("div_n4s"); id.innerHTML="<table width=300 bgcolor=#D2EBFF cellspacing=0 cellpadding=4><tr><td bgcolor=black width=50%><font size=+1 color=white>In the News</font></td><td bgcolor=white>"+now.toLocaleString()+"</td></tr><tr><td colspan=2>"+str+"</td></tr></table>"; ccap=(ccap<content.length-1) ? ccap+1 : 0; cfunc=setTimeout("LinesupModern()",3000); } ccap=0; cword=0; cfunc='LinesupModern'; LinesupModern(); </script> I am using godaddys website, when I publish my site it wont show the ticker,it only shows the code , I got it from http://www.news4sites.com/newsfeeds/setup_js.php?&id=546 Jaxicle: thanks,but that didnt work didnt work E.M thanks though

Public Comments

  1. Your HTML is wrong - maybe you haven't closed a tag. What are you using to write the HTML? Don't write web pages in FrontPage or Word. Without more information from you (or even a link where we can see the problem), it's difficult to give a meaningful answer.
  2. Dynamic Drive has the scripts that you have in mind. http://www.dynamicdrive.com/dynamicindex2/xmlticker2.htm Just follow the instructions and you will good to go.
  3. You need to put quotes around <div id="div_n4s"></div> http://www.javanewsticker.com/ That one is a lot nicer, and slimmer.
  4. PUT TEXT IN THE DIV: <div id=div_n4s>NEWS</div> will work.
Powered by Yahoo! Answers