Element Fusion « 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 Element Fusion - http://elementfusion.com
function step1IsValid() {
var returnFlag = true;
if("" == $ef("#txtName").val())
{
returnFlag = false;
$ef("#errName").show();
}
else
{
$ef("#errName").hide();
}
if("" == $ef("#txtCompany").val())
{
returnFlag = false;
$ef("#errCompany").show();
}
else
{
$ef("#errCompany").hide();
}
if("" == $ef("#txtTelephone").val())
{
returnFlag = false;
$ef("#errPhone").show();
}
else
{
$ef("#errPhone").hide();
}
if(null == $ef("#txtEmail").val().match(/[\w\.-]+(\+[\w-]*)?@([\w-]+\.)+[\w-]+/))
{
returnFlag = false;
$ef("#errEmail").show();
}
else
{
$ef("#errEmail").hide();
}
return returnFlag;
}
$ef(document).ready(function()
{
$ef("#errName").hide();
$ef("#errPhone").hide();
$ef("#errEmail").hide();
$ef("#errCompany").hide();
// Sign-up slider
$ef('#signUp').toggle(function()
{
$ef('html, body').animate({scrollTop:0}, 'slow');
$ef('#signUpForm:hidden').slideDown();
$ef('#signUp')[0].blur();
$ef(this).addClass('on');
return false;
},
function()
{
$ef('#signUpForm:visible').slideUp();
$ef('#signUp')[0].blur();
$ef(this).removeClass('on');
return false;
}
);
$ef("#btnClose").click(function()
{
$ef('#signUpForm:visible').slideUp();
$ef('#btnClose')[0].blur();
$ef('#signUp').removeClass('on');
return false;
}
);
$ef("#inlineSignUp").click(function()
{
$ef('html, body').animate({scrollTop:0}, 'slow', function () {
$ef('#signUpForm:hidden').slideDown();
$ef('#inlineSignUp')[0].blur();
});
return false;
}
);
// Sign-up process
$ef("#btn1").click(function()
{
if(step1IsValid())
{
$ef('#step1').hide();
$ef('#step2').fadeIn("500");
}
return false;
}
);
$ef("#btn2").click(function()
{
// submit form
$ef.post(
"/utilities/fastemail.ashx",
{
Name: $ef("#txtName").val(),
Email: $ef("#txtEmail").val(),
Company: $ef("#txtCompany").val(),
Telephone: $ef("#txtTelephone").val(),
Website: $ef("#txtURL").val(),
Comments: $ef("#txtComments").val()
},
function(data){
$ef('#step2').hide();
$ef('#step3').fadeIn("500");
});
return false;
}
);
$ef("#btn3").click(function()
{
$ef('#signUpForm:visible').slideUp();
$ef('#btnClose')[0].blur();
$ef('#signUp').removeClass('on');
$ef('.home #promo .contents').slideUp();
return false;
}
);
$ef("#prev1").click(function()
{
$ef('#step2').hide();
$ef('#step1').fadeIn("500");
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.