Learn how to use jQuery at the Blog

Teigaku Kyufukin « visit

  • Added 10 months ago
  • 75 Lines of Code shown
  • 1 Links of Interest
http://teigaku-kyufukin.com
This is my Source Code and I don't want to show it here
View Source Code only (as overlay)
// That code snippet belongs to Teigaku Kyufukin - http://teigaku-kyufukin.com

$(document).ready(showNoLinkBorders);

/*
Remove A tag borders
*/
function showNoLinkBorders()
{
	$("a").focus(function(){
		this.blur();
	});
}

/*
form submit
*/
$(document).ready(function(){
   $("#submit_btn").click(function(){
		$("#top_form").submit();
		}),
   
   $('#btn_postform').click(function(){
		$("#post_form").submit();
		})
   });
  
/*
 * tooltips for resultpage
 */
function private_tools() {
    $("#mailfriend span").toggle(
        function(){
            $("#mailfriend div").slideDown("slow");
        },
        function(){
            $("#mailfriend div").slideUp("slow");
        }
    )
}

/*
tellfriends mail form
*/
function sendtoFriends() {
	$("#mailto_button").click(function(){
	   //alert('clicked');
	   
	   $params  = "mail="  + $("#mailto_address").attr("value");
	   $params += "&link=" + $("#permalink").attr("href");
	   
	   //alert($params);
	   
	   $.ajax({
	       type: "POST",
	       url:  "/share/tellFriend",
	       data: $params,
	       success: function(msg){
	           $("#mailto_button").remove();
	           alert(msg);
	       }
	   })
	})
}

$(document).ready(function() {

	if (typeof document.body.style.maxHeight != "undefined") {
	// IE 7, mozilla, safari, opera 9
	} else {
	// IE6, older browsers
		// Fix all inline PNG images and the element #container with the custom sizingMethod of "scale"
		$("img[@src$=png]").pngfix({sizingMethod: "scale"});
		$("#submit_btn").attr('src', '/_includes/images/adviser_button.gif');
	} 
	
});