View Single Post
Old 07-08-2008, 08:15 PM   PM User | #2
ohgod
Regular Coder

 
ohgod's Avatar
 
Join Date: Jun 2008
Location: Ohio
Posts: 579
Thanks: 6
Thanked 69 Times in 69 Posts
ohgod is on a distinguished road
fyi, there are some really nice effects available for scriptaculous... you don't need to write your own. i'd suggest looking up Effect.Phase... it even supports toggling which means you can use it for fading in and out with every load\unload very easily. anyway... just have onclick or onmousedown inside your <a> call your function and have it fwd the url as a variable.

Code:
<a class="country" onclick="fadeout('put your url here');">english</a>
then you can have your function reference it

Code:
<script type="text/javascript" charset="utf-8">
//<![CDATA[
	function fadeOut(url){
		blah blah window.location=url
	}
//]]>
</script>

Last edited by ohgod; 07-08-2008 at 08:30 PM..
ohgod is offline   Reply With Quote