Kredit-Beamten « 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 Kredit-Beamten - http://kredit-beamten.de
function initKreditwahl() {
$('#kreditwahl dl dd').hide().parent().addClass('closed');
$('#kreditwahl dl:first dd').show().parent().removeClass('closed');
$('#kreditwahl dl dt').css("cursor","pointer").click(
function() {
var checkElement = $(this).next();
if(checkElement.is(':visible')) {
return false;
}
if(!checkElement.is(':visible')) {
$('#kreditwahl dd:visible').slideUp(250).parent().addClass('closed');
checkElement.slideDown(250).parent().removeClass('closed');
return false;
}
}
);
}
function initHomepage() {
$('body#home #main').append('<a class="mehrweniger" href="javascript:;">mehr...</a>');
$('body#home #main a.mehrweniger').insertAfter('#main .collapseable');
$('body#home #main .collapseable').hide().next().click(
function() {
var checkElement = $(this).prev();
if(checkElement.is(':visible')) {
/*
wenn box bereits offen dann schließen
*/
checkElement.animate({height: 'hide', opacity: 'hide'}, 250);
$(this).removeClass('weniger').text("mehr");
return false;
}
if(!checkElement.is(':visible')) {
/*
sonst alle geöffneten schließen
*/
$('body#home #main .collapseable:visible').animate({height: 'hide', opacity: 'hide'}, 250).next().removeClass('weniger').text("mehr");
/*
*/
checkElement.animate({height: 'show', opacity: 'show'}, 250);
$(this).addClass('weniger').text("weniger");
return false;
}
}
);
}
function initAudio() {
var flashvars = {
playerID: "1",
soundFile: "/wordpress/wp-content/themes/cms/audio/beamtenkredit.mp3"
};
var params = { allowscriptaccess: "sameDomain", wmode: "transparent" };
var attributes = { id: "audioplayer1" };
swfobject.embedSWF("/wordpress/wp-content/themes/cms/audio/player.swf", "flashContent", "300", "24", "9.0.0", "/wordpress/wp-content/themes/cms/js/swfobject/expressInstall.swf", flashvars, params, attributes);
if(swfobject.hasFlashPlayerVersion("9.0.0")) {
$('#audio').css("display","block");
}
}
function initFormValidation () {
$(".isrequired input, .isrequired textarea").addClass("required");
$(".isrequired input#email").addClass("email");
$("input#geburtsdatum").addClass("dateDE");
$("#main form").validate();
$(".required").each(function() {
$(this).rules("add", {
required: true,
minlength: 2,
messages: {
required: "Pflichtfeld - bitte ausfüllen!",
minlength: jQuery.format("Bitte mindestens {0} Zeichen"),
email: "Bitte geben Sie eine gültige Emailadresse ein!",
dateDE: "Bitte geben Sie ein gültiges Datum ein!"
}
});
});
}
jQuery(document).ready(function() {
if ( $("body#home").length > 0 ) {
initHomepage();
initAudio();
}
if ( $("#aside #kreditwahl").length > 0 ) {
initKreditwahl();
}
if ( $("#main form").length > 0 ) {
/* initFormValidation(); */
}
$('table tr:nth-child(even)').css('background-color','#c8daeb');
});
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.