adsense


Saturday, 7 November 2015

VB SCRIPT ONMOUSEOVER AND ONMOUSEOUT PAGE 24

COMPUTER LANGUAGES HTML,C,C++.JAVA,.NET AND MULTIMEDIA basics and programs click home button




VB SCRIPT ONMOUSEOVER AND ONMOUSEOUT




onmouseover and onmouseout 

These two event types will help you to create nice effects 
with images or even with text as well. The onmouseover 
event occurs when you bring your mouse over any element 
and the onmouseout occurs when you take your mouse out from that element. 
Example 
<html> 
<head> 
</head> 
<body> 
<script language="VBScript"> 
  
Function AlertMsg 
  Msgbox("ALERT !") 
End Function 
  
Function onmourse_over() 
  Msgbox("Onmouse Over") 
End Function 
 
Sub txt2_OnMouseOut() 
  Msgbox("Onmouse Out !!!") 
End Sub 
  
Sub btnButton_OnMouseOut() 
  Msgbox("onmouse out on Button !") 
End Sub 
  
</script> 
<form action="page.cgi" method="post" name="form1"> 
<input name="txt1" type="text" OnMouseOut="AlertMsg()"><br> 
<input name="txt2" type="text" OnMouseOver="onmourse_over()"> 
<br><input name="btnButton" type="button" value="Submit"> 
</form> 
</body> 
</html> 
It will produce a result when you hover the mouse over the 
text box and also when you move the focus away from the text 
box and the button. 



No comments: