<script src="http://write-site.net/jquery-1.3.2.js" type="text/javascript"></script>
<a id="switch" onClick="$('img[id=alakazam]').show('slow');">Show</a>
<img src="http://farm3.static.flickr.com/2628/4192131856_27bdb92d89.jpg" id="alakazam" onClick="$('img[id=alakazam]').hide('slow');"/>You are currently browsing the Javascript category
Alakazam hide and seek
Hello JQuery
// This code syntax requires that JQuery be imported.
$(document).ready(function() {
$("a[name=hello]").click(function() {
alert("Hello world!");
});
});All your base
Click in this box to enjoy your message.
- var x = 0;
- var message = "How are you gentlemen !!! \n All your base are belong to us. \n You are on the way to destruction. \n You have no chance to survive make your time. \n Ha Ha Ha Ha. \n";
- function how_are_you()
- {
- current_message = document.main_screen.talking.value;
- document.main_screen.talking.value = current_message+message.charAt(x);
- x = x+1;
- setTimeout("how_are_you()",300);
- }
Updating a text box on click.
Click in this box to enjoy your message.
- function how_are_you2()
- {
- document.main_screen2.talking2.value = "How are you gentlemen?";
- }



