Fade in fade out technique

hi…
i went to alot of webbie and saw a lot of people using the fade away technique. like for example, in the webbie http://www.hypertemplates.com/templates/8193.html

when u click on the link button… the content will fade away and another page will fade in.

i know it is using the telltarget option… but how to go along doing it such that when u click on a link , the previous page will fade away and another page will fade in?

do u use onclick? but how to go along doing it?

i am a newbie thanx for anione tat help…