I am really looking for this thing for long, but unable to figure out how can this be done.
In general we have something like this:
	
	
	
		
But this really mess up the whole code. I checked some of the professional site codes, and they handle it in someway that they don't need to write those event handlers along with html.
Though I am not sure how to achieve this.
Can someone please post a short code, javascript file corresponding to above thing, so that my code looks like this:
	
	
	
		
	
	
	
		
Thanks in advance,
Imoracle
			
			In general we have something like this:
		Code:
	
	<div id="act" onmouseover="mouseover(this)" onmouseout="mouseout(this)" onclick="click(this)"/>But this really mess up the whole code. I checked some of the professional site codes, and they handle it in someway that they don't need to write those event handlers along with html.
Though I am not sure how to achieve this.
Can someone please post a short code, javascript file corresponding to above thing, so that my code looks like this:
		Code:
	
	<div id="act"/>
		Code:
	
	function takeaction() {
  // Takes care of everything which comes not only from div id="act" but also the other id's
}Thanks in advance,
Imoracle
			
				Last edited: 
			
		
	
								
								
									
	
								
							
							 
				 
 
		