13. Cultura Inglesa Festival « 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 13. Cultura Inglesa Festival - http://culturainglesasp.com.br/13cif/homepage.mmp
// JavaScript Document
jQuery(document).ready(function() {
jQuery('#carousel').jcarousel({
scroll: 2
});
$("#carousel li").mouseover(function(){
$(this).addClass("jcarousel-item-hover");
}).mouseout(function(){
$(this).removeClass("jcarousel-item-hover");
});
var swf_text = $("h2.swf").text();
$("h2.swf").html("<embed height=\"20\" width=\"300\" wmode=\"transparent\" quality=\"high\" name=\"tituloFlash\" id=\"tituloFlash\" src=\"swf/titulos_retrancas.swf?texto="+swf_text+"&cor=0xbf1e2d\" type=\"application/x-shockwave-flash\" />");
$("#calendar li a").click(function() {
$("#calendar li a").removeClass("selected");
this.className = "selected";
$("#calendar_area").html('<img src="/13cif/images/loader.gif" alt="carregando" id="loading" />');
$("#calendar_area").load("/13cif/programacao/daily/folder/13cifprogramacao.mmp?rnd=" + Math.random()*4 + "&day_month=" + this.href.split("#")[1])
});
});
/*validação do formulario*/
$(function(){
jQuery.validator.addMethod("recMail", function(value, element) {
return this.optional(element) ||value.indexOf('@')!=-1 && value.lastIndexOf('.')!=-1 ;}),
$("#indique").validate({
submitHandler: function(form) {
form.submit();
},
rules: {
senderName:'required',
receiverName:'required',
email:{
required:true,
email:true
},
to:{
required:true,
recMail:true
},
yourMessage:'required'
},
messages: {
senderName:'Campo nome obrigatório.',
receiverName:'Campo nome do destinátario obrigatório.',
email:{
required:'Campo e-mail obrigatório.',
email:'E-mail inválido.'
},
to:{
required:'Campo e-mail do destinatário obrigatório.',
recMail:'E-mail do destinatário inválido.'
},
yourMessage:'Campo comentário obrigatório.'
}
});
$("#formMail").validate({
submitHandler: function(form) {
form.submit();
},
rules: {
yourName:'required',
from:{
required:true,
recMail:true
},
yourMessage:'required'
},
messages: {
yourName:'Campo nome obrigatório.',
from:{
required:'Campo e-mail obrigatório.',
recMail:'E-mail inválido.'
},
yourMessage:'Campo comentário obrigatório.'
}
});
});
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.