Max Length in Textarea 
<script type="text/javascript">

/***********************************************
* Textarea Maxlength script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

function ismaxlength(obj){
var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
if (obj.getAttribute && obj.value.length>mlength)
obj.value=obj.value.substring(0,mlength)
}

</script>

<textarea maxlength="40" onkeyup="return ismaxlength(this)"></textarea>

[ add comment ]   |  permalink  |  related link  |   ( 3 / 9418 )
Tomorrow Count Down 
What is Time?
What is Life?
What have we done?
What are we doing?
and
What will we do?

When you read here,
Think
How many seconds passed by?




[ add comment ]   |  permalink  |  related link  |   ( 3 / 4279 )
Read online file in C# 
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.theserverside.net");
System.Net.WebProxy myProxy = new System.Net.WebProxy("Your proxy goes here", 8081);
myProxy.BypassProxyOnLocal = true;
request.Proxy = myProxy;request.MaximumAutomaticRedirections = 4;
request.MaximumResponseHeadersLength = 4;
request.Timeout=20000;
request.Credentials = CredentialCache.DefaultCredentials;
HttpWebResponse response = (HttpWebResponse)request.GetResponse ();
Stream receiveStream = response.GetResponseStream ();
StreamReader readStream = new StreamReader (receiveStream, Encoding.UTF8);
string result=readStream.ReadToEnd ();
response.Close ();


[ add comment ]   |  permalink  |  related link  |   ( 3 / 3475 )
Life cycle of tulips blooming 

Life is short.
Life is beautiful
14 days
One life cycle
Beautiful tulips blooming

Life is short.
Life is beautiful
Life is precious
Enjoy your life

Blooming


[ add comment ]   |  permalink  |  related link  |   ( 3 / 9220 )
我像谁? 


[ 1 comment ] ( 38 views )   |  permalink  |  related link  |   ( 3 / 8790 )

BackBack NextNext