Pomodoros Pizza « visit
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 Pomodoros Pizza - http://pomodorospizza.net
$(function(){
var menu = false;
$('.contact-expand a').click(function(){
if(!menu){
menu = true;
top.location = "#";
$('<div class="top-form"></div>').load('contact.php #ajax-contact', function(){
$(this).hide().appendTo('#ajax-loader').slideDown();
});
return false;
} else {
menu = false;
top.location = "#";
$('.top-form').slideUp();
return false;
}
});
$('.contact-foot a').click(function(){
if(!menu){
menu = true;
top.location = "#";
$('<div class="top-form"></div>').load('contact.php #ajax-contact', function(){
$(this).hide().appendTo('#ajax-loader').slideDown();
});
return false;
} else {
top.location = "#";
return false;
}
});
$('.x-unselectable').disableTextSelect();
$('.intro_text')
$("<p class='print x-unselectable'><a href='#'><span>Print Your Coupons Now!</span></a></p>").appendTo('.coupons .intro_text');
$('.print a').click(function(){
window.print();
return false;
});
//CONTACT FORM
$('#submit').livequery("click", function(){
$('#frmContact .btn_send').append('<img src="lib/images/blank.gif" alt="Currently loading" id="loading" />');
$('.btn_send input').attr('disabled','disabled');
var name = $('#name').val();
var email = $('#email').val();
var phone = $('#phone').val();
var comments = $('#comments').val();
//console.log(name,email,comments);
$.ajax({
url: 'send_mail.php',
type: 'POST',
data: 'name=' + name + '&email=' + email + '&phone=' + phone + '&comments=' + comments,
success: function(result){
//console.log(result);
$('#response').remove();
$('#loading').fadeOut(500, function(){
$('#frmContact').append('<p class="clear"><!----></p>' + result )
$(this).remove();
$('.btn_send input').removeAttr('disabled');
});
}
});
return false;
});
});
Syndicate
Categories
Statistics
There are 330 Sites with 745 Links of Interest in 18 Categories. The latest Site was added 4 months ago.
About
This is a project by Sebastian Senf, for his part jQuery user and lover too. Follow me.