The Internet is getting more and more important, we can use it for working, learning, for entertaining ... Only in the aspect of entertainment, we use the Internet to play the online games, to search, listen & download the favorite songs, videos, movies, ...
The Internet also is the very good environment for studying, it helps us in looking for the materials, solving our problems, getting the supports from the other persons, ... Especially in the field of computers in general, the web programming in particular; many people think the programming languages are only for working, there's no joy in it.
- Demo
- Enlarge
- Reload
- New window
Generate your business videos by AI with voice or just text
Your first FREE AI Video App! Automate Your First AI Video. Create Your Professional Video In 5 Minutes By AI No Equipment Or Video Editing Skill Requred. Effortless Video Production For Content Marketers.
4. Joking Error Message Alert box
5. The text based Cheerleader Animation
<html>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Web Site: http://www.crosswinds.net/~llizard -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
var agt=navigator.userAgent.toLowerCase();
if (agt.indexOf("mac") != -1)
var a="\r";
else
var a="\n";
var max=0;
function tlist() {
max=tlist.arguments.length;
for (i=0; i
this[i]=tlist.arguments[i];
}
tl = new tlist(
" o"+a+
" /|\\"+a+
" */ \\* ejm97"+a,
" o_"+a+
" \<| *"+a+
" *\>\\ ejm97"+a,
" _o/*"+a+
" * |"+a+
" / \\ ejm97"+a,
" *\o_"+a+
" / *"+a+
" \<\\ ejm97"+a,
" _o/*"+a+
" * |"+a+
" / \\ ejm97"+a,
" *\\c/*"+a+
" )"+a+
" / \> ejm97"+a,
" *"+a+
" \\__/c"+a+
" \> \\* ejm97"+a,
" __/"+a+
" (o_*"+a+
" \\* ejm97"+a,
" \\ /"+a+
" |"+a+
" */o\\* ejm97"+a,
" \\_"+a+
" ("+a+
" */o\\* ejm97"+a,
" \<_"+a+
" __("+a+
" * o|* ejm97"+a,
" /_"+a+
" __("+a+
" * o|* ejm97"+a,
" ___"+a+
" *\/ \>"+a+
" o|* ejm97"+a,
" *"+a+
" o|_/"+a+
" */ \\ ejm97"+a,
" *"+a+
" _o|_"+a+
" * \>\\ ejm97"+a,
" _o/*"+a+
" * |"+a+
" / \\ ejm97"+a,
" *\\o/*"+a+
" |"+a+
" / \\ ejm97"+a,
" c/*"+a+
" \<\\"+a+
" */\\ ejm97"+a,
" c__"+a+
" \<\ *"+a+
" */\\ ejm97"+a,
" c__"+a+
" /\ *"+a+
" * /\> ejm97"+a,
" c/*"+a+
" /(__"+a+
" * / ejm97"+a,
" __o/*"+a+
" * (__"+a+
" \< ejm97"+a,
" __o_"+a+
" * / *"+a+
" \<\\ ejm97"+a,
" *_o_"+a+
" | *"+a+
" \< \\ ejm97"+a,
" *_c_*"+a+
" |"+a+
" \>\\ ejm97"+a,
" *_c_*"+a+
" |__"+a+
" \> ejm97"+a,
" *_c_*"+a+
" __|__"+a+
" ejm97"+a,
" "+a+
" *_c_*"+a+
" __)__ ejm97"+a,
" "+a+
" *\\c/*"+a+
" __)__ ejm97"+a
);
var x=0;
function tick() {
document.animation.cheerleader.value = " " + a +
tl[x];
x++;
if (x != max)
setTimeout("tick()", 200);
else
x = 0;
}
// End -->
</script>
</HEAD>
<BODY OnLoad="tickundefined)">
<center>
<form name=animation>
<textarea name=cheerleader rows=5 cols=20></textarea>
<br>
<input type=button value="Start Again" onClick = "javascript:tickundefined)">
</form>
</center>
</html>
6. Faking Textarea on Typing
This funny script made to prove that you're too trusting of people. Don't believe me? Just check it by yourself.<html>
<head>
<title>Faking Textarea on Typing</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="copyright" content="JavaScriptBank.com" />
<script language="javascript">
<!-- done by JOHN CHACKO- [email protected]!>
status="john chacko !!!!!"
var a=new Array(),n=""
a[1]='I';a[2]=' ';a[3]='A';a[4]='M';a[5]=' ';a[6]='A';a[7]=' ';a[8]='F';a[9]='O';a[10]='O';a[11]='L';a[12]=' ';a[13]=' ';a[14]='?';
function one()
{
t=document.f.txt.value
j=t.length
if(j>0)
{
for(var i=1;i<=j;i++)
{
n=n+a[i]
if(i==14)
{
document.f.txt.value=""
n=""
}
}
}
document.f.txt.value=n
n=""
setTimeout("one()",1)
}
function on()
{
one()
}
</script>
</head>
<body onload="onundefined)">
<center>
<h2>Type anthing slowly</h2>
<form name="f">
<textarea name="txt" cols="20" rows="5">
</textarea>
</center>
</form>
</body>
</html
Author
Phong Thai is a Web Developer, Web Coder for 20 years with PHP, JavaScript, CSS. He is the creator of JavaScriptBank.com - provide thousands of free JavaScript code examples, web development tips and tricks, helpful blogging guides.
Follow him on twitter@js_bank or connect with him on facebook@jsbank if you want. His websites for your knowledge: javascriptON.com, inOneSec.com, www.gomymobi.com
- Sent (0)
- New