Using Prototype

To using prototype, first we must download it. It’s only 1 file named ‘prototype.js‘. It is about 120kb, a bit too large for a website. but don’t worry, because the 120kb will do more… besides that, we can compress it using any packer. I won’t describe how to compress the file here. If you […]

August 2nd, 2008 by Admin

Start Using jQuery

jQuery main function is the ‘$(document).ready() function’. Although it’s many way to start jQuery, Always use this function to start using jQuery is good. example:
$(document).ready(function() {
$(’.header-company’).addClass(’highlight’);
});
This will add class named ‘highlight’ to element that have ‘header-company’ class. This is used generally for changing / adding class for CSS. So, when the document was loaded, the […]

June 7th, 2008 by Admin