17 января 2014
Нет комментариев
var scrollBottom=$('body').height()-$(window).height()-$(window).scrollTop();
var scrollBottom=$('body').height()-$(window).height()-$(window).scrollTop();
$("document").ready(function(){ $("#File1").change(function() { var fileInput = $("#File1")[0]; alert(fileInput.files[0].size); /*if (fileInput.files[0].size>=5242880) { alert('long file'); $("#File1").val(''); }*/ }); });
function AutoPlayLink(right,left,count) { var right=document.getElementById(right); var left=document.getElementById(left); setInterval(function() { for (i=0;i<=count;i++) { setTimeout(right.click(),10000); } for (i=0;i<=count;i++) { setTimeout(left.click(),10000); } },5000); } $(document).ready(function(){ AutoPlayLink('link_right','link_left',2); });
$("#linkid").fancybox().trigger('click');
$('.class').fancybox({ helpers:{ title:{type:'over'} }, beforeShow:function(){ this.title=(this.title?''+this.title+'':'')+'Фотография '+(this.index+1)+' из '+this.group.length; } });
veko
$(document).ready(function() { $("body").css("display","none"); $("body").fadeIn(100); $("a").click(function(event){ event.preventDefault(); linkLocation=this.href; $("body").fadeOut(100,redirectPage); }); function redirectPage() { window.location=linkLocation; } });
$("a[href$='.jpg'],a[href$='.JPG'], a[href$='.png'], a[href$='.gif']").fancybox({ 'showCloseButton': false }).hover(function() { $(this).click(); $(".fancybox-overlay").mouseout(function() { $.fancybox.close(); }); });