Bosna i Hercegovina


switch Lista naslova:

#46 06.02.2015-12:20
zxz Offline
Administrator
Registrovan/a od: 03.02.2009-16:22
Komentari: 8,982


Subject: Datum i vrijeme
DownloadIzvorni kod (HTML):
  1. <TITLE>Datumske funkcije</TITLE>
  2. </HEAD>
  3. <script language="JavaScript">
  4. <!--
  5. var curdate = new Date()
  6.  
  7. var year = curdate.getYear()
  8. document.write("Godina je: " + year + "<BR>")
  9.  
  10. var month = curdate.getMonth()+1
  11. document.write("Mjesec je: " + month + "<BR>")
  12.  
  13. var mday = curdate.getDate()
  14. document.write("Dan u mjesecu: " + mday + "<BR>")
  15.  
  16. var wday = curdate.getDate()
  17. document.write("Redni br. dana u sedmici: "+ wday + "<BR>")
  18.  
  19. var hours = curdate.getHours()
  20. document.write("Sati je. " + hours + "<BR>")
  21.  
  22. var minutes = curdate.getMinutes()
  23. document.write("Minuta je: " + minutes + "<BR>")
  24.  
  25. var seconds = curdate.getSeconds()
  26. document.write("Sekundi je: " + seconds + "<BR>")
  27.  
  28. var offset = curdate.getTimezoneOffset()
  29. document.write("GTM: " + offset + "<BR>")
  30.  
  31. var dt = Date.parse(curdate)
  32. document.write("Datum broj: "+ dt + "<BR>")
  33.  
  34. dstring = curdate.toGMTString()
  35. document.write("Datum kao string: "  + curdate.toLocaleString() + "<BR>")
  36. //-->
  37. </BODY>
  38. </HTML>

Pozdrav
↑  ↓

#47 06.02.2015-12:29
zxz Offline
Administrator
Registrovan/a od: 03.02.2009-16:22
Komentari: 8,982


Subject: Boja pozadine teksta
DownloadIzvorni kod (HTML):
  1.  
  2.  
  3.  
  4. </head>
  5.  
  6. <P ID=bgchange STYLE="background-color: 0000ff">
  7.  Bojea pozadine teksta se mijenja svakih pola sekunde
  8.  </P>
  9.  
  10.  <SCRIPT LANGUAGE="JavaScript">
  11.  function boja1()
  12.  {
  13.  bgchange.style.backgroundColor="EE8080";
  14.  greenTimer=setTimeout("boja2()", 500);
  15.  }
  16.  
  17.  function boja2()
  18.  {
  19.  bgchange.style.backgroundColor="AAEE80";
  20.  blueTimer=setTimeout("boja3()", 500);
  21.  }
  22.  
  23.  function boja3()
  24.  {
  25.  bgchange.style.backgroundColor="ff80ff";
  26.  redTimer=setTimeout("boja1()", 500);
  27.  }
  28.  boja1();
  29.  </SCRIPT>
  30. </body>
  31. </html>

Pozdrav
↑  ↓

#48 07.02.2015-21:07
zxz Offline
Administrator
Registrovan/a od: 03.02.2009-16:22
Komentari: 8,982


Subject: Slajd tekst
DownloadIzvorni kod (HTML):
  1.     <head>
  2.         <script language="JavaScript">
  3.         var brojac = 0;
  4.  
  5.         function slajdTekst()
  6.         {
  7.         var tekst = new Array();
  8.  
  9.         tekst[0] = "prvi tekst";
  10.         tekst[1] = "Drugi tekst";
  11.         tekst[2] = "Treci tekst";
  12.         tekst[3] = "Cetvrti tekst";
  13.         tekst[4] = "Peti tekst";
  14.         tekst[5] = "Sesti tekst";
  15.        
  16.         if (brojac > 5)
  17.             {
  18.             brojac = 0;
  19.             }
  20.         document.getElementById("slajdTekst").innerHTML = tekst[brojac];
  21.  
  22.         setTimeout(function(){slajdTekst()},1000);
  23.         brojac ++;
  24.         }
  25.         </script>
  26.     </head>
  27.     <body onload="slajdTekst();">
  28.         <p id="slajdTekst"></p>
  29.     </body>
  30. </html>

Pozdrav
↑  ↓

#49 08.02.2015-14:22
zxz Offline
Administrator
Registrovan/a od: 03.02.2009-16:22
Komentari: 8,982


Subject: Meni-Java
DownloadIzvorni kod (HTML):
  1. <!--
  2. -->
  3. <!--
  4. #slidemenubar, #slidemenubar2{
  5. position:absolute;
  6. border:1.5px solid black;
  7. background-color:#F2F2F2;
  8. layer-background-color:#F2F2F2;
  9. font:bold 12px Verdana;
  10. line-height:18px;
  11. }
  12. -->
  13. </head>
  14. <script language="JavaScript1.2">
  15. var slidemenu_width=160 //duzina u pikselima
  16. var slidemenu_reveal=12 //Broj elemenata
  17. var slidemenu_top=20 //Vertikalni ofset
  18.  
  19. var ns4=document.layers?1:0
  20. var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
  21. var ns6=document.getElementById&&!document.all?1:0
  22.  
  23. if (ie4||ns6)
  24. document.write('<div id="slidemenubar2" style="left:'+((slidemenu_width-slidemenu_reveal)*-1)+'; top:'+slidemenu_top+'; width:'+slidemenu_width+'" onMouseover="pull()" onMouseout="draw()">')
  25. else if (ns4){
  26. document.write('<style>\n#slidemenubar{\nwidth:'+slidemenu_width+';}\n<\/style>\n')
  27. document.write('<layer id="slidemenubar" left=0 top='+slidemenu_top+' width='+slidemenu_width+' onMouseover="pull()" onMouseout="draw()" visibility=hide>')
  28. }
  29.  
  30. var sitems=new Array()
  31.  
  32.  
  33. sitems[0]=["<big><center><font face='Arial'> M E N I </font></center></big>", ""]
  34. sitems[1]=["iCentar", "http://www.icentar.ba/index.php"]
  35. sitems[2]=["Statistike", "http://www.icentar.ba/components.php?cid=19"]
  36. sitems[3]=["Pravila", "http://www.icentar.ba/docs.php?id=4"]
  37. sitems[4]=["Ne ljuti se", "http://www.icentar.ba/docs.php?id=4"]
  38. sitems[5]=["Moj panel", "http://www.icentar.ba/editprofile.php"]
  39. sitems[6]=["Moji favoriti", "http://www.icentar.ba/editprofile.php?action=abos"]
  40. sitems[7]=["Pretraga", "http://www.icentar.ba/search.php"]
  41. sitems[8]=["Moje poruke", "http://www.icentar.ba/pm.php"]
  42. sitems[9]=["Zadnja 24 h", "http://www.icentar.ba/search.php?action=active&type=days-1"]
  43. sitems[10]=["Ostalo", "/"]
  44.  
  45. var target=""
  46.  
  47. /////////////////////////////////////////////////////////
  48.  
  49. if (ie4||ns4||ns6){
  50. for (i=0;i<sitems.length;i++){
  51. if (sitems[i][1])
  52. document.write('<a href="'+sitems[i][1]+'" target="'+target+'">')
  53. document.write(' '+ sitems[i][0])
  54. if (sitems[i][1])
  55. document.write('</a>')
  56. document.write('<br>\n')
  57. }
  58. }
  59.  
  60. function regenerate(){
  61. window.location.reload()
  62. }
  63. function regenerate2(){
  64. if (ns4){
  65. document.slidemenubar.left=((slidemenu_width-slidemenu_reveal)*-1)
  66. document.slidemenubar.visibility="show"
  67. setTimeout("window.onresize=regenerate",400)
  68. }
  69. }
  70. window.onload=regenerate2
  71. rightboundary=0
  72. leftboundary=(slidemenu_width-slidemenu_reveal)*-1
  73. if (ie4||ns6){
  74. document.write('</div>')
  75. themenu=(ns6)? document.getElementById("slidemenubar2").style : document.all.slidemenubar2.style
  76. }
  77. else if (ns4){
  78. document.write('</layer>')
  79. themenu=document.layers.slidemenubar
  80. }
  81.  
  82. function pull(){
  83. if (window.drawit)
  84. clearInterval(drawit)
  85. pullit=setInterval("pullengine()",10)
  86. }
  87. function draw(){
  88. clearInterval(pullit)
  89. drawit=setInterval("drawengine()",10)
  90. }
  91. function pullengine(){
  92. if ((ie4||ns6)&&parseInt(themenu.left)<rightboundary)
  93. themenu.left=parseInt(themenu.left)+10
  94. else if(ns4&&themenu.left<rightboundary)
  95. themenu.left+=10
  96. else if (window.pullit){
  97. themenu.left=0
  98. clearInterval(pullit)
  99. }
  100. }
  101.  
  102. function drawengine(){
  103. if ((ie4||ns6)&&parseInt(themenu.left)>leftboundary)
  104. themenu.left=parseInt(themenu.left)-10
  105. else if(ns4&&themenu.left>leftboundary)
  106. themenu.left-=10
  107. else if (window.drawit){
  108. themenu.left=leftboundary
  109. clearInterval(drawit)
  110. }
  111. }
  112. </script>
  113.  
  114. </body>
  115. </html>

Pozdrav
↑  ↓

#50 10.02.2015-10:41
zxz Offline
Administrator
Registrovan/a od: 03.02.2009-16:22
Komentari: 8,982


Subject: Predhodna posjeta
DownloadIzvorni kod (HTML):
  1. </head>
  2. <script type = "text/javascript">
  3.  
  4. var days = 730; // days until cookie expires = 2 years.
  5. var lastvisit=new Object();
  6. var firstvisitmsg="Pozdrav. Posljednji put ste bili na ovoj stranici: ";
  7. lastvisit.subsequentvisitmsg="Pozdrav. Vasa predhodna posjeta je bila:  <b>[displaydate]</b>";
  8.  
  9. lastvisit.getCookie=function(Name){
  10. var re=new RegExp(Name+"=[^;]+", "i");
  11. if (document.cookie.match(re))
  12. return document.cookie.match(re)[0].split("=")[1];
  13. return'';
  14. }
  15.  
  16. lastvisit.setCookie=function(name, value, days){
  17. var expireDate = new Date();
  18.  
  19. var expstring=expireDate.setDate(expireDate.getDate()+parseInt(days));
  20. document.cookie = name+"="+value+"; expires="+expireDate.toGMTString()+"; path=/";
  21. }
  22.  
  23. lastvisit.showmessage = function() {
  24. var wh = new Date();
  25. if (lastvisit.getCookie("visitc") == "") {
  26. lastvisit.setCookie("visitc", wh, days);
  27. document.write(firstvisitmsg);
  28. }
  29.  
  30. else {
  31. var lv = lastvisit.getCookie("visitc");
  32. var lvp = Date.parse(lv);
  33. var now = new Date();
  34. now.setTime(lvp);
  35. var day = new Array("Ned","Pon", "Uto", "Sri", "Cet", "Pet", "Sub");
  36. var month = new Array ("Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
  37. var dd = now.getDate();
  38. var dy = now.getDay();
  39. dy = day[dy];
  40. var mn = now.getMonth();
  41. mn = month[mn];
  42. yy = now.getFullYear();
  43. var hh = now.getHours();
  44. var ampm = "AM";
  45. if (hh >= 12) {ampm = "PM"}
  46. if (hh >12){hh = hh - 12};
  47. if (hh == 0) {hh = 12}
  48. if (hh < 10) {hh = "0" + hh};
  49. var mins = now.getMinutes();
  50. if (mins < 10) {mins = "0"+ mins}
  51. var secs = now.getSeconds();
  52. if (secs < 10) {secs = "0" + secs}
  53. var dispDate = dy + ". " + dd + " " + mn + ". " + yy + " " + hh + ":" + mins + ":" + secs + " " + ampm
  54. document.write(lastvisit.subsequentvisitmsg.replace("\[displaydate\]", dispDate))
  55. }
  56.  
  57. lastvisit.setCookie("visitc", wh, days);
  58.  
  59. }
  60.  
  61. lastvisit.showmessage();
  62. </body>
  63. </html>

Pozdrav
↑  ↓

#51 11.02.2015-16:56
zxz Offline
Administrator
Registrovan/a od: 03.02.2009-16:22
Komentari: 8,982


Subject: Kalkulator
DownloadIzvorni kod (PHP):
  1. <html>
  2. <head>
  3. <title>Kalkulator</title>
  4. </head>
  5. <body>
  6. <FORM NAME="Calc">
  7. <TABLE BORDER=2>
  8. <TR>
  9. <TD>
  10. <INPUT TYPE="text"   NAME="Input" Size="16">
  11. <br>
  12. </TD>
  13. </TR>
  14. <TR>
  15. <TD>
  16. <INPUT TYPE="button" NAME="one"   VALUE="  1  " OnClick="Calc.Input.value += '1'">
  17. <INPUT TYPE="button" NAME="two"   VALUE="  2  " OnCLick="Calc.Input.value += '2'">
  18. <INPUT TYPE="button" NAME="three" VALUE="  3  " OnClick="Calc.Input.value += '3'">
  19. <INPUT TYPE="button" NAME="plus"  VALUE="  +  " OnClick="Calc.Input.value += ' + '">
  20. <br>
  21. <INPUT TYPE="button" NAME="four"  VALUE="  4  " OnClick="Calc.Input.value += '4'">
  22. <INPUT TYPE="button" NAME="five"  VALUE="  5  " OnCLick="Calc.Input.value += '5'">
  23. <INPUT TYPE="button" NAME="six"   VALUE="  6  " OnClick="Calc.Input.value += '6'">
  24. <INPUT TYPE="button" NAME="minus" VALUE="  -  " OnClick="Calc.Input.value += ' - '">
  25. <br>
  26. <INPUT TYPE="button" NAME="seven" VALUE="  7  " OnClick="Calc.Input.value += '7'">
  27. <INPUT TYPE="button" NAME="eight" VALUE="  8  " OnCLick="Calc.Input.value += '8'">
  28. <INPUT TYPE="button" NAME="nine"  VALUE="  9  " OnClick="Calc.Input.value += '9'">
  29. <INPUT TYPE="button" NAME="times" VALUE="  x  " OnClick="Calc.Input.value += ' * '">
  30. <br>
  31. <INPUT TYPE="button" NAME="clear" VALUE="  c  " OnClick="Calc.Input.value = ''">
  32. <INPUT TYPE="button" NAME="zero"  VALUE="  0  " OnClick="Calc.Input.value += '0'">
  33. <INPUT TYPE="button" NAME="DoIt"  VALUE="  =  " OnClick="Calc.Input.value = eval(Calc.Input.value)">
  34. <INPUT TYPE="button" NAME="div"   VALUE="  /  " OnClick="Calc.Input.value += ' / '">
  35. <br>
  36. </TD>
  37. </TR>
  38. </TABLE>
  39. </FORM>
  40. </body>
  41. </html>

Pozdrav
↑  ↓

#52 12.02.2015-10:10
zxz Offline
Administrator
Registrovan/a od: 03.02.2009-16:22
Komentari: 8,982


Subject: Sat na vasoj stranici
Kasican digitalni sat koji mozete postaviti na vasu stranicu.
DownloadIzvorni kod (HTML):
  1. <TITLE>Sat</TITLE>
  2. </HEAD>
  3. <script language="JavaScript">
  4. <!--
  5. var clockID = 0;
  6. function UpdateClock() {
  7.  if(clockID) {
  8.    clearTimeout(clockID);
  9.    clockID  = 0;
  10.  }
  11.  var tDate = new Date();
  12.  document.theClock.theTime.value = ""
  13.  + tDate.getHours() + ":"
  14.  + tDate.getMinutes() + ":"
  15.  + tDate.getSeconds();
  16.  clockID = setTimeout("UpdateClock()", 1000);
  17. }
  18. function StartClock() {
  19.  clockID = setTimeout("UpdateClock()", 500);
  20. }
  21. function KillClock() {
  22.  if(clockID) {
  23.    clearTimeout(clockID);
  24.    clockID  = 0;
  25.  }
  26. }
  27. //-->
  28. <BODY ONLOAD="StartClock()" ONUNLOAD="KillClock()">
  29. <CENTER><FORM NAME="theClock">
  30. <INPUT TYPE="text" NAME="theTime" SIZE="4">
  31. </BODY>
  32. </HTML>

Pozdrav
↑  ↓

#53 12.02.2015-11:53
zxz Offline
Administrator
Registrovan/a od: 03.02.2009-16:22
Komentari: 8,982


Subject: Popup prozor
Otvaranje popup prozora.

DownloadIzvorni kod (HTML):
  1. </head>
  2.  
  3.  
  4. var popunder="http://www.icentar.ba"
  5.  
  6. var winopcije="width=900,height=650,scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=0"
  7. var once_per_session=0
  8.  
  9. function get_c(ime) {
  10.   var search = ime + "="
  11.   var returnvalue = "";
  12.   if (document.cookie.length > 0) {
  13.     offset = document.cookie.indexOf(search)
  14.     if (offset != -1) {
  15.       offset += search.length
  16.       end = document.cookie.indexOf(";", offset);
  17.       if (end == -1)
  18.          end = document.cookie.length;
  19.       returnvalue=unescape(document.cookie.substring(offset, end))
  20.       }
  21.    }
  22.   return returnvalue;
  23. }
  24. function otvori(){
  25. if (get_c('popunder')==''){
  26. otvori_p()
  27. document.cookie="popunder=yes"
  28. }
  29. }
  30.  
  31. function otvori_p(){
  32. win2=window.open(popunder,"",winopcije)
  33. win2.blur()
  34. window.focus()
  35. }
  36.  
  37. if (once_per_session==0)
  38. otvori_p()
  39. else
  40. otvori()
  41. </body>
  42. </html>

Pozdrav
↑  ↓

#54 18.02.2015-21:38
zxz Offline
Administrator
Registrovan/a od: 03.02.2009-16:22
Komentari: 8,982


Subject: Setajuci Titl tekst
Tekst u naslovnoj traci koji seta.
DownloadIzvorni kod (HTML):
  1. <TITLE>Titl tekst</TITLE>
  2. </HEAD>
  3.  
  4. <SCRIPT language=javascript>
  5. msg = "Ovo je tekst na titl baru koji se krece";
  6.  
  7. msg = "<<>>" + msg;pos = 0;
  8. function scrollMSG() {
  9. document.title = msg.substring(pos, msg.length) + msg.substring(0, pos);
  10. pos++;
  11. if (pos >  msg.length) pos = 0
  12. window.setTimeout("scrollMSG()",200);
  13. }
  14. scrollMSG();
  15. <font face="Tahoma">Titl tekst</font>
  16.  
  17. </BODY>
  18. </HTML>

Pozdrav
↑  ↓

#55 25.02.2015-19:29
zxz Offline
Administrator
Registrovan/a od: 03.02.2009-16:22
Komentari: 8,982


Subject: Na vrh stranice
Ovaj kod vam postavlja link da klikom na njega mozete se vratiti na vrh stranice.
DownloadIzvorni kod (HTML):
  1. <TITLE>Na vrh stranice</TITLE>
  2. </HEAD>
  3. <!--
  4. var displayed="<nobr><font size=2 face=Arial><b>Na vrh</b></font></nobr>"
  5. var logolink='javascript:window.scrollTo(0,0)'
  6. var ns4=document.layers
  7. var ie4=document.all
  8. var ns6=document.getElementById&&!document.all
  9.  
  10. function regenerate(){
  11. window.location.reload()
  12. }
  13. function regenerate2(){
  14. if (ns4)
  15. setTimeout("window.onresize=regenerate",400)
  16. }
  17.  
  18. if (ie4||ns6)
  19. document.write('<span id="logo" style="position:absolute;top:-300;z-index:100">'+displayed+'</span>')
  20.  
  21. function createtext(){ //function for NS4
  22. staticimage=new Layer(5)
  23. staticimage.left=-300
  24. staticimage.document.write('<a href="'+logolink+'">'+displayed+'</a>')
  25. staticimage.document.close()
  26. staticimage.visibility="show"
  27. regenerate2()
  28. staticitns()
  29. }
  30.  
  31. function staticit(){
  32. var w2=ns6? pageXOffset+w : document.body.scrollLeft+w
  33. var h2=ns6? pageYOffset+h : document.body.scrollTop+h
  34. crosslogo.style.left=w2
  35. crosslogo.style.top=h2
  36. }
  37.  
  38. function staticit2(){
  39. staticimage.left=pageXOffset+window.innerWidth-staticimage.document.width-28
  40. staticimage.top=pageYOffset+window.innerHeight-staticimage.document.height-10
  41. }
  42.  
  43. function inserttext(){
  44. if (ie4)
  45. crosslogo=document.all.logo
  46. else if (ns6)
  47. crosslogo=document.getElementById("logo")
  48. crosslogo.innerHTML='<a href="'+logolink+'">'+displayed+'</a>'
  49. w=ns6? window.innerWidth-crosslogo.offsetWidth-20 : document.body.clientWidth-crosslogo.offsetWidth-10
  50. h=ns6? window.innerHeight-crosslogo.offsetHeight-15 : document.body.clientHeight-crosslogo.offsetHeight-10
  51. crosslogo.style.left=w
  52. crosslogo.style.top=h
  53. if (ie4)
  54. window.onscroll=staticit
  55. else if (ns6)
  56. startstatic=setInterval("staticit()",100)
  57. }
  58.  
  59. if (ie4||ns6){
  60. window.onload=inserttext
  61. window.onresize=new Function("window.location.reload()")
  62. }
  63. else if (ns4)
  64. window.onload=createtext
  65. function staticitns(){ //function for NS4
  66. startstatic=setInterval("staticit2()",90)
  67. }
  68. //-->
  69. </BODY>
  70. </HTML>

Pozdrav
↑  ↓

#56 04.03.2015-18:23
zxz Offline
Administrator
Registrovan/a od: 03.02.2009-16:22
Komentari: 8,982


Subject: Tabovi
Primjer pravljenja tabova na stranici.
css mozete prebaciti u vas tekstualni fajl css.
DownloadIzvorni kod (HTML):
  1. <style type="text/css">
  2. #tablist{
  3. padding: 3px 0;
  4. margin-left: 0;
  5. margin-bottom: 0;
  6. margin-top: 0.1em;
  7. font: bold 12px Verdana;
  8. }
  9.  
  10. #tablist li{
  11. list-style: none;
  12. display: inline;
  13. margin: 0;
  14. }
  15.  
  16. #tablist li a{
  17. text-decoration: none;
  18. padding: 3px 0.5em;
  19. margin-left: 3px;
  20. border: 1px solid #778;
  21. border-bottom: none;
  22. background: white;
  23. }
  24.  
  25. #tablist li a:link, #tablist li a:visited{
  26. color: navy;
  27. }
  28.  
  29. #tablist li a:hover{
  30. color: #000000;
  31. background: #C1C1FF;
  32. border-color: #227;
  33. }
  34.  
  35. #tablist li a.current{
  36. background: lightyellow;
  37. }
  38.  
  39. <script type="text/javascript">
  40.  
  41. var selectedtablink=""
  42. var tcischecked=false
  43.  
  44. function handlelink(aobject){
  45. selectedtablink=aobject.href
  46. tcischecked=(document.tabcontrol && document.tabcontrol.tabcheck.checked)? true : false
  47. if (document.getElementById && !tcischecked){
  48. var tabobj=document.getElementById("tablist")
  49. var tabobjlinks=tabobj.getElementsByTagName("A")
  50. for (i=0; i<tabobjlinks.length; i++)
  51. tabobjlinks[i].className=""
  52. aobject.className="current"
  53. document.getElementById("tabiframe").src=selectedtablink
  54. return false
  55. }
  56. else
  57. return true
  58. }
  59.  
  60. <TITLE>Title of your page</TITLE>
  61. </HEAD>
  62.  <ul id="tablist">
  63. <li><a class="current" href="http://www.icentar.ba/showforum.php?id=41" onClick="return handlelink(this)">Java skript</a></li>
  64. <li><a href="http://www.icentar.ba/showforum.php?id=37" onClick="return handlelink(this)">C++</a></li>
  65. <li><a href="http://www.icentar.ba/showforum.php?id=49" onClick="return handlelink(this)">Access</a></li>
  66. <li><a href="http://www.icentar.ba/docs.php?id=4" onClick="return handlelink(this)">Procitajte pravila</a></li>
  67. </ul>
  68. <iframe id="tabiframe" src="http://www.icentar.ba" width="98%" height="350px"></iframe>
  69. </BODY>
  70. </HTML>

Pozdrav
↑  ↓

#57 21.01.2016-18:07
zxz Offline
Administrator
Registrovan/a od: 03.02.2009-16:22
Komentari: 8,982


Subject: Novi prozor
DownloadIzvorni kod (HTML):
  1. <script language="JavaScript">
  2. function openWin(){
  3. <!--froma u javi-->
  4. var bar = 'directories=no,location=no,menubar=no,status=no';
  5.  
  6. bar += ',titlebar=no,toolbar=no';
  7. var opcija = 'scrollbars=no,width=400,height=200,resizeable=no';
  8. var myFeatures = bar + ',' + opcija;
  9. var procitaj = 'Proba forme.'
  10.  
  11. var newWin = open('', 'myDoc', myFeatures);
  12.  
  13. newWin.document.writeln('<form>');
  14. newWin.document.writeln('<table>');
  15. newWin.document.writeln('<tr valign=TOP><td>');
  16. newWin.document.writeln('<textarea cols=45 rows=7 wrap=SOFT>');
  17. newWin.document.writeln(procitaj + '</textarea>');
  18. newWin.document.writeln('</td></tr>');
  19. newWin.document.writeln('<tr><td>');
  20. newWin.document.writeln('<input type=BUTTON value="zatvori"');
  21. newWin.document.writeln(' onClick="window.close()">');
  22. newWin.document.writeln('</td></tr>');
  23. newWin.document.writeln('</table></form>');
  24. newWin.document.close();
  25. newWin.focus();
  26. }
  27. <b>Kliknite na sljedeu tipku da biste otvorili novi prozor: </b>
  28. <input type=BUTTON value="Open" onClick='openWin()'>
  29. </form>
  30.  
  31. </body>
  32. </html>

Pozdrav
↑  ↓

#58 18.11.2016-11:10
zxz Offline
Administrator
Registrovan/a od: 03.02.2009-16:22
Komentari: 8,982


Subject: Brojac Klikova
Primjer brojanja klikova na objekat.
Klikovi se ne zapisuju u bazu.

Prilozi:
Informacije o fajlu: htm  BrojacKlikova.htm
Preuzimanja: 14
Veličina: 383 Byte


Pozdrav
↑  ↓

#59 12.12.2016-12:22
zxz Offline
Administrator
Registrovan/a od: 03.02.2009-16:22
Komentari: 8,982


Subject: Tekst efekt
Ne dozvoljava mi postaviti kod pa sam zakacio prilog tekst fajl.

Prilozi:
Informacije o fajlu: txt  tekstefekt.txt
Preuzimanja: 8
Veličina: 930 Byte


Pozdrav
↑  ↓

Stranice (4): 1, 2, 3, 4


All times are GMT +01:00. Current time: 27.02.2017-05:27.