
function dynamic()
     {
      var teksty = document.getElementsByTagName('p');
      for( i=0; i < teksty.length; i++) 
         {
          	teksty[i].onmouseover = zmianaOn;
         	teksty[i].onmouseout = zmianaOff;
			}
      }
      
function zmianaOn()
      {     
      	this.style.color = '#000079';
		}

function zmianaOff()
      {
      	this.style.color = '#555555';
		}
		
window.onload = dynamic;     
      
 /*      
      
    	//this.style.background = '#fffefd';  
	 //this.style.background= '#FFFECD';
	 
	 
	   var dymki = document.getElementsByTagName('li');
	        for( i=0; i < dymki.length; i++)
        {
          dymki[i].onmouseover = costam1;     
          dymki[i].onmouseout  = costam2;                  
        } 
  {nazwa funkcji bez ()!  */        
 /*   można też użyć: dymki[i].onlick = function() {return costam(para,metry);}        
      }


function costam1()
      {
         this.style.width =  '250px'; 
       //  this.style.padding = '20px';
      }

function costam2()
      {
         this.style.width = '230px'; 
       //  this.style.padding = '1px';
      }*/  
