020 555 1111
  • Old fashion, modular, procedural PHP plus some scaffolding techniques to allow it to mimic MVC simplicity.
  • A quick reference to help you find in PHP maze what needs to be done and how to do it.
  • Learn a PHP Object Oriented Programming by building a live discussion forum application.
  • MVC - Model View Controller - real life, easy reference and application.
This product has options, take a look at them and select ones you like the most.
Options are displayed under image section.
Top » XML

XML getElement
[XML function]

Get HTML nodes by class name.

 

<script type="text/javascript">
 function GetElementsByClassName(CLASS,NODE)
 {
  var startNode = NODE || document;
  var AllTags = startNode.getElementsByTagName("*");
  if (AllTags.length == 0) AllTags = startNode.all; //for IE
  var Elems = new Array();
  var re = new RegExp("(^|\\s+)" + CLASS + "(\\s+|$)");
  for (var i=0; i<AllTags.length; i++)
  {
   if (re.test(AllTags[i].className)) Elems[Elems.length] = AllTags[i];
  }
  return Elems;
 }
 
 function init()
 {
  var MenuOptions = GetElementsByClassName("MenuOptions");
  alert(MenuOptions.length);
 }
</script>

 

possible use:

//onclick can be used for it as well, etc.
<body onload="init();">