TextBox Carriage return Trigger Event
Copy Code code as follows:
Write directly in JS
<script language= "JavaScript" >
function Entertextbox ()
{
if (Event.keycode = && document.all["TextBox1"].value!= "")
{
Event.keycode = 9;
Event.returnvalue = false;
document.all["TextBox1"].click ();
}
}
</script>
<body onkeypress= "return Entertextbox ()" >
Here TextBox1 the ID of the textbox on the page
<script language= "JavaScript" >
function Entertextbox (button)
{
if (Event.keycode = && document.all["TextBox1"].value!= "")
{
Event.keycode = 9;
Event.returnvalue = false;
Document.all[button].click ();
}
}
</script>
In the Pageload incident.
Copy Code code as follows:
TextBox1.Attribute.add ("onkeypress", "Entertextbox (' Button1 ')");
Database fetch pictures in img display
If your database is stored in the picture file name.
The path to your local picture is image
You can use the following code:
Copy Code code as follows:
Picture highlighting
Copy Code code as follows:
<meta http-equiv= "Content-type" Conte Nt= "text/html; charset=gb2312 ">
<title> Untitled document </title>
<body>
<script L anguage= "JavaScript" ><!--
Function makevisible (cur,which) {
if (which==0)
Cur.filters.alpha.opacit y=70
Else
cur.filters.alpha.opacity=100
}
</script>
< /body>