Prikazi cijelu temu 27.03.2011 01:39
zxz Van mreze
Administrator
Registrovan od:03.02.2009
Lokacija:Tuzla


Predmet:Tekst na karakteristican nacin.
Skripta koja izmjenjuje tekstove.
PreuzmiIzvorni kôd (HTML):
  1. <META NAME="generator" CONTENT="toniarts easyhtml v.2.4">
  2. <TITLE>Title of your page</TITLE>
  3. </HEAD>
  4. <script type="text/javascript">
  5.  
  6. //CONFIGURE MESSAGES AND VARIABLES
  7. var tickercontents=new Array()
  8. tickercontents[0]='Ukoliko zelite da se nesto naucite posjetite <a href="http://www.icentar.ba">iCentar</a>!'
  9. tickercontents[1]='za pretragu na internetu koristite <a href="http://www.google.ba">Google</a> i naci cete!'
  10. tickercontents[2]='Ima mnogo java skripti <a href="http://www.icentar.ba/showtopic.php?id=197">Ovdje....</a>- na icentar'
  11.  
  12. var tickerwidth="200px"
  13. var tickerheight="70px"
  14. var fontcss="font: bold 10px Verdana; color:black"
  15. var tickdelay=3000 //delay btw messages
  16. var highlightspeed=2 //2 pixels at a time.
  17. var highlightcolor="lightyellow"
  18. var backdroptextcolor="#E1E1E1"
  19.  
  20. ////Do not edit pass this line////////////////
  21.  
  22. document.write('<style>#highlighterbg a{color:'+backdroptextcolor+'}</style>')
  23. document.write('<div style="position:relative;left:0px;top:0px; width:'+tickerwidth+'; height:'+tickerheight+';'+fontcss+'">')
  24. document.write('<span id="highlighterbg" style="position:absolute;left:0;top:0;color:'+backdroptextcolor+'; width:'+tickerwidth+'; height:'+tickerheight+';padding: 4px"></span><span id="highlighter" style="position:absolute;left:0;top:0;clip:rect(auto auto auto 0px); width:'+tickerwidth+';height:'+tickerheight+';padding: 4px"></span>')
  25. document.write('</div>')
  26.  
  27. var currentmessage=0
  28. var clipbottom=1
  29.  
  30. function changetickercontent(){
  31. msgheight=clipbottom=crosstick.offsetHeight
  32. crosstick.style.clip="rect("+msgheight+"px auto auto 0px)"
  33. crosstickbg.innerHTML=tickercontents[currentmessage]
  34. crosstick.innerHTML=tickercontents[currentmessage]
  35. highlightmsg()
  36. }
  37.  
  38. function highlightmsg(){
  39. //var msgheight=crosstick.offsetHeight
  40. if (clipbottom>0){
  41. clipbottom-=highlightspeed
  42. crosstick.style.clip="rect("+clipbottom+"px auto auto 0px)"
  43. beginclip=setTimeout("highlightmsg()",20)
  44. }
  45. else{
  46. clipbottom=msgheight
  47. clearTimeout(beginclip)
  48. if (currentmessage==tickercontents.length-1) currentmessage=0
  49. else currentmessage++
  50. setTimeout("changetickercontent()",tickdelay)
  51. }
  52. }
  53.  
  54. function start_ticking(){
  55. crosstickbg=document.getElementById? document.getElementById("highlighterbg") : document.all.highlighterbg
  56. crosstick=document.getElementById? document.getElementById("highlighter") : document.all.highlighter
  57. crosstickParent=crosstick.parentNode? crosstick.parentNode : crosstick.parentElement
  58. if (parseInt(crosstick.offsetHeight)>0)
  59. crosstickParent.style.height=crosstick.offsetHeight+'px'
  60. else
  61. setTimeout("crosstickParent.style.height=crosstick.offsetHeight+'px'",100) //delay for Mozilla's sake
  62. changetickercontent()
  63. }
  64.  
  65. if (document.all || document.getElementById)
  66. window.onload=start_ticking
  67.  
  68.  
  69. </BODY>
  70. </HTML>

Podrska samo putem foruma, jer samo tako i ostali imaju koristi od toga.
Ovaj post je ureden 1 puta. Posljednja izmjena 23.05.2012 00:15 od strane zxz.