kodyWiG

Tag: function

20 sie 2009

Odświeżenie strony w JS

window.setTimeout(function() { window.location.reload(); }, 5000);
function Location reload setTimeout window
16 lip 2009

Przypisanie linkom funkcji dla zdarzenia onclick

function initLinks() {

if (!document.getElementsByTagName) { return; }
 var anchors = document.getElementsByTagName("a");

for (var i=0; i<anchors.length; i++){
  var anchor = anchors[i];
  if (anchor.getAttribute("href") && /^mapa_/i.test(anchor.id)) {
   anchor.onclick = function () {
    jakas_funkcja(this);
   }
  }
 }
};
anchors function getAttribute getElementsByTagName onclick REGEXP test
25 mar 2009

setTimeOut, Wykonanie kodu po określonym czasie

setTimeout( function(){ getElementById('msg').style.display = 'none'; }, 3000);

ukrycie, elementu "msg" po 3 sekundach (setTimeout ->; 3000)

function getElementById setTimeout
7 sie 2008

Obsługa zdarzenia onload

var PreOnload =(window.onload)? window.onload : function(){};
window.onload = function(){PreOnload(); SimpleSetup();}
function onload window
Copyright © | kodyWiG Theme
  • JavaScript 216
  • PHP 139
  • CSS 105
  • HTML 74
  • GMap 47
  • Linux 46
  • PostgreSQL 34
  • MySQL 33
  • VBSCRIPT 32
  • Wordpress 27
  • jQuery 27
  • Smarty 27
  • Windows 24
  • SQL 19
  • htaccess 18
  • Perl 17
  • System 11
  • Programy 11
  • SQL Server 10
  • Rewrite 9
  • Leaflet 9
  • HTTP 8
  • VBA 7
  • React 7
  • Telefony 6
  • WYSIWYG 6
  • XML 6
  • Intellij IDEA 6
  • Nodejs 5
  • SVG 4
  • Rejestr 3
  • Docker 3
  • JSON 3
  • Nauka 2
  • Bez kategorii 1
  • Opera 1
  • Github 1
  • Rollup 1