...

View Full Version : JQuery put text into a div onclick



gioscarab
10-09-2009, 11:37 AM
Hi guys I learn how to let blink links with fading onclick.
But now I would like to put text and pictures in a page div when I click on a link without load again the page. How can I script it?
This is my noob script for links:
<script type="text/javascript">
$("a").click(function(event){
event.preventDefault();
$(this).fadeOut("slow");
$(this).fadeIn("slow");
});
</script>

Fumigator
10-09-2009, 05:16 PM
The ajax function load() will fill in a div (or whatever container) from another source (such as an html page or PHP script or whatever).

http://docs.jquery.com/Ajax/load#urldatacallback



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum