Play With Tag Names

This is related with CSS. IT is easy way to make onmouseover feature. Here is the code (it is from microsoft.com, I fixed(?) little bit);


  document.body.onmouseover = function1;
  document.body.onmouseout = function2;
  
  function function1() {
  	b = window.event.srcElement;
	if (b.tagName == "TagName(ex."A")") {
		old = b.style.color
		b.style.color = '#00AA00';
	}
  }

  function function2() {
	b = window.event.srcElement;
	if (b.tagName == "TagName") {
		b.style.color = old;
  	}
  }
  

This is Changing Color feature. You can use this for other stuff such as bigger font.
Here is example
Go back to home.