Bosna i Hercegovina


switch Lista naslova:

zxz Offline
Administrator
Registrovan/a od: 03.02.2009-16:22
Komentari: 9,296


Subject: Vremenska izmjena boje pozadine
DownloadIzvorni kod (HTML):
  1. <title>Boja pozadine</title>
  2. </head>
  3. <script type="text/javascript">
  4. var v = window.setInterval("boje()", 1000);
  5. var i = 0, b = 1;
  6. function boje () {
  7.   if (b == 1) {
  8.     document.bgColor = "#BEEA8E";
  9.     b = 2;
  10.   } else {
  11.     document.bgColor = "ECE9D8";
  12.     b = 1;
  13.   }
  14.   i = i + 1;
  15.   if (i >= 10)
  16.     window.clearInterval(v);
  17. }
  18. </body>
  19. </html>

Pozdrav
↑  ↓

zxz Offline
Administrator
Registrovan/a od: 03.02.2009-16:22
Komentari: 9,296


Subject: Koordinate misa
DownloadIzvorni kod (HTML):
  1. <TITLE>Koordinate misa</TITLE>
  2. </HEAD>
  3.  <script>
  4. function koordinate(e) {
  5.     x = e.clientX;
  6.     y = e.clientY;
  7.     coord = "Coordinate: (" + x + "," + y + ")";
  8.     document.getElementById("kor").innerHTML = coord
  9. }
  10.  
  11. function brisiKoor() {
  12.     document.getElementById("kor").innerHTML = "";
  13. }
  14. </head>
  15. <body style="margin:0px;">
  16. <div id="coordiv" style="width: 300px;height:150px;border:1px solid" onmousemove="koordinate(event)" onmouseout="brisiKoor()"></div>
  17. <p id="kor"></p>
  18.  
  19. </BODY>
  20. </HTML>

Pozdrav
↑  ↓

zxz Offline
Administrator
Registrovan/a od: 03.02.2009-16:22
Komentari: 9,296


Subject: Valoviti tekst
DownloadIzvorni kod (HTML):
  1. <TITLE>Valovito</TITLE>
  2. </HEAD>
  3.  <script>
  4.  
  5. /*
  6. Valoviti tekst
  7. */
  8.  
  9. var fs=1 //Najmanja visinateksta
  10. var direction="right"
  11.  
  12. function valovito(tekst){
  13. var txt=tekst
  14. for (i=0;i<txt.length;i++){
  15. document.write(txt.charAt(i).fontsize(fs))
  16.  
  17. if (fs<7&&direction=="right")
  18. fs++
  19. else if (fs==7){
  20. direction="left"
  21. fs--
  22. }
  23. else if (fs==1){
  24. direction="right"
  25. fs++
  26. }
  27. else if (fs>1&&direction=="left")
  28. fs--
  29. }
  30. }
  31.  
  32. valovito("Ovdje napisete svoj valoviti tekst")
  33. </script>
  34. </BODY>
  35. </HTML>

Pozdrav
↑  ↓

zxz Offline
Administrator
Registrovan/a od: 03.02.2009-16:22
Komentari: 9,296


Subject: Input boks
DownloadIzvorni kod (HTML):
  1. <TITLE>Input boks</TITLE>
  2. </HEAD>
  3. <script language="javascript" type="text/javascript">
  4. <!--
  5. alert("Pozdrav i dobro došli na iCentar!")
  6. var ime=prompt("Unesite vase ime i pritisnite enter!","Mali Mujo")
  7. //var name=prompt("Please Enter your name(So the site can address you!","Mr. Nobody")
  8. //-->
  9. <!--
  10. document.write(ime)
  11. //-->
  12. </BODY>
  13. </HTML>

Pozdrav
↑  ↓

zxz Offline
Administrator
Registrovan/a od: 03.02.2009-16:22
Komentari: 9,296


Subject: Boja scrol bara
Mozete promijeniti boju scrol bara ako zelite.
DownloadIzvorni kod (HTML):
  1. <STYLE>BODY {
  2. SCROLLBAR-FACE-COLOR: red; SCROLLBAR-HIGHLIGHT-COLOR: yeloy;
  3. SCROLLBAR-SHADOW-COLOR: black; SCROLLBAR-ARROW-COLOR: yeloy;
  4. SCROLLBAR-TRACK-COLOR: green; SCROLLBAR-DARKSHADOW-COLOR: red
  5. }
  6. <title>Boja scrol bara</title>
  7. </head>
  8. <font face="Tahoma"><a target="_blank" href="http://www.icentar.ba/"><span style="font-size: 12pt; text-decoration: none">Posjetite iCentar</span></a></font>
  9. </body>
  10. </html>

Pozdrav
↑  ↓

zxz Offline
Administrator
Registrovan/a od: 03.02.2009-16:22
Komentari: 9,296


Subject: Simulira kisu na stranici
DownloadIzvorni kod (HTML):
  1. <TITLE>Pada kisa</TITLE>
  2. </HEAD>
  3.  
  4. <SCRIPT LANGUAGE="JavaScript">
  5. <!-- Begin
  6. var no = 50;
  7. var speed = 1;
  8. var ns4up = (document.layers) ? 1 : 0;
  9. var ie4up = (document.all) ? 1 : 0;
  10. var s, x, y, sn, cs;
  11. var a, r, cx, cy;
  12. var i, doc_width = 800, doc_height = 600;
  13. if (ns4up) {
  14. doc_width = self.innerWidth;
  15. doc_height = self.innerHeight;
  16. }
  17. else
  18. if (ie4up) {
  19. doc_width = document.body.clientWidth;
  20. doc_height = document.body.clientHeight;
  21. }
  22. x = new Array();
  23. y = new Array();
  24. r = new Array();
  25. cx = new Array();
  26. cy = new Array();
  27. s = 8;
  28. for (i = 0; i < no; ++ i) {
  29. initRain();
  30. if (ns4up) {
  31. if (i == 0) {
  32. document.write("<layer name=\"dot"+ i +"\" left=\"1\" ");
  33. document.write("top=\"1\" visibility=\"show\"><font color=\"blue\">");
  34. document.write(",</font></layer>");
  35. }
  36. else {
  37. document.write("<layer name=\"dot"+ i +"\" left=\"1\" ");
  38. document.write("top=\"1\" visibility=\"show\"><font color=\"blue\">");
  39. document.write(",</font></layer>");
  40.   }
  41. }
  42. else
  43. if (ie4up) {
  44. if (i == 0) {
  45. document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
  46. document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
  47. document.write("visible; TOP: 15px; LEFT: 15px;\"><font color=\"blue\">");
  48. document.write(",</font></div>");
  49. }
  50. else {
  51. document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
  52. document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
  53. document.write("visible; TOP: 15px; LEFT: 15px;\"><font color=\"blue\">");
  54. document.write(",</font></div>");
  55.      }
  56.   }
  57. }
  58. function initRain() {
  59. a = 6;
  60. r[i] = 1;
  61. sn = Math.sin(a);
  62. cs = Math.cos(a);
  63. cx[i] = Math.random() * doc_width + 1;
  64. cy[i] = Math.random() * doc_height + 1;
  65. x[i] = r[i] * sn + cx[i];
  66. y[i] = cy[i];
  67. }
  68. function makeRain() {
  69. r[i] = 1;
  70. cx[i] = Math.random() * doc_width + 1;
  71. cy[i] = 1;
  72. x[i] = r[i] * sn + cx[i];
  73. y[i] = r[i] * cs + cy[i];
  74. }
  75. function updateRain() {
  76. r[i] += s;
  77. x[i] = r[i] * sn + cx[i];
  78. y[i] = r[i] * cs + cy[i];
  79. }
  80. function raindropNS() {
  81. for (i = 0; i < no; ++ i) {
  82. updateRain();
  83. if ((x[i] <= 1) || (x[i] >= (doc_width - 20)) || (y[i] >= (doc_height - 20))) {
  84. makeRain();
  85. doc_width = self.innerWidth;
  86. doc_height = self.innerHeight;
  87. }
  88. document.layers["dot"+i].top = y[i];
  89. document.layers["dot"+i].left = x[i];
  90. }
  91. setTimeout("raindropNS()", speed);
  92. }
  93. function raindropIE() {
  94. for (i = 0; i < no; ++ i) {
  95. updateRain();
  96. if ((x[i] <= 1) || (x[i] >= (doc_width - 20)) || (y[i] >= (doc_height - 20))) {
  97. makeRain();
  98. doc_width = document.body.clientWidth;
  99. doc_height = document.body.clientHeight;
  100. }
  101. document.all["dot"+i].style.pixelTop = y[i];
  102. document.all["dot"+i].style.pixelLeft = x[i];
  103. }
  104. setTimeout("raindropIE()", speed);
  105. }
  106. if (ns4up) {
  107. raindropNS();
  108. }
  109. else
  110. if (ie4up) {
  111. raindropIE();
  112. }
  113. //  End -->
  114. </body>
  115. <font face="Tahoma">Pade kisa ubi misa</font>
  116. </BODY>
  117. </HTML>

Pozdrav
↑  ↓

zxz Offline
Administrator
Registrovan/a od: 03.02.2009-16:22
Komentari: 9,296


Subject: Blinkanje pozadine teksta
DownloadIzvorni kod (HTML):
  1. <TITLE>Blik pozadine teksta</TITLE>
  2. </HEAD>
  3. <META http-equiv=Content-Type content="text/html; charset=windows-1252">
  4. <META content="Microsoft FrontPage 6.0" name=GENERATOR></HEAD>
  5. <BODY><SPAN id=pochenderText style="WIDTH: 100%">
  6. <H1 align="center"><font color="#FF0000"><A HREF="http://www.icentar.ba">Posjetite iCentar</A></font></H1></SPAN>
  7.  
  8. var from = 2;
  9. var to = 15;
  10. var speed = 5;
  11. var textcolor = "#3D95FF";
  12. var i = to;
  13. var j = 0;
  14.  
  15. pd();
  16.  
  17. function pu()
  18.    {
  19.    if (!document.all)
  20.       return
  21.    if (i < to)
  22.      {
  23.      pochenderText.style.filter = "Glow(Color=" + textcolor + ", Strength=" + i + ")";
  24.      i++;
  25.      theTimeout = setTimeout('pu()',speed);
  26.      return 0;
  27.      }
  28.  
  29.   if (i = to)
  30.      {
  31.      theTimeout = setTimeout('pd()',speed);
  32.      return 0;
  33.      }
  34.   }
  35.  
  36. function pd()
  37.   {
  38.   if (!document.all)
  39.      return
  40.   if (i > from)
  41.       {
  42.       pochenderText.style.filter = "Glow(Color=" + textcolor + ", Strength=" + i + ")";
  43.       i--;
  44.       theTimeout = setTimeout('pd()',speed);
  45.       return 0;
  46.       }
  47.    if (i = from)
  48.       {
  49.       theTimeout = setTimeout('pu()',speed);
  50.       return 0;
  51.       }
  52.    }
  53. // -->
  54. </BODY>
  55. </HTML>

Pozdrav
↑  ↓

zxz Offline
Administrator
Registrovan/a od: 03.02.2009-16:22
Komentari: 9,296


Subject: Uvijanje teksta
DownloadIzvorni kod (HTML):
  1. <TITLE>Devijacija teksta</TITLE>
  2.    DIV.MojFilter {FILTER:PROGID:DXIMAGETRANSFORM.MICROSOFT.WAVE(
  3.      strength=4, //Veca ili manja devijacija
  4.      freq=2,
  5.      lightstrength=100,
  6.      add=0,
  7.      phase=0);
  8.      width: 150px; color: #A6CAF0;font-size:40px;font-weight:bold;
  9.     }
  10. <SCRIPT language="javascript">
  11.   function Dev()
  12.   {
  13.    document.getElementById("MojDiv").filters[0].phase += 15;
  14.    status = document.getElementById("MojDiv").filters[0].phase ;
  15.   }
  16. </HEAD>
  17. <BODY OnLoad="window.setInterval('Dev();',100);" >
  18. <DIV CLASS="MojFilter" id="MojDiv"> http://www.icentar.ba</DIV>
  19. </BODY>
  20. </HTML>

Pozdrav
↑  ↓

 Podijeli  Dodaj odgovor Stranice (2): 1, 2


All times are GMT +01:00. Current time: 24.05.2017-20:38.