Learn how to use jQuery at the Blog

Dino Latoga « visit

  • Added 8 months ago
  • 68 Lines of Code shown
  • 2 Links of Interest
http://dinolatoga.com
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 Dino Latoga - http://dinolatoga.com

$(function () {
	$('img').hide();
});
		
$(function(){
			$("div#slideshow").carousel({
				autoSlide: true,
				loop: true,
				autoSlideInterval: 4000,
				pagination: true
			});

		});


$(function () {
	if ($.browser.msie && $.browser.version < 7) return;
	$('ul.fx li')
		.find('a')
		.append('<span class="hover" />').each(function () {
				var $span = $('> span.hover', this).css('opacity', .3);
				$(this).hover(function () {
					// on hover
					$span.stop().fadeTo(450, 1);
				}, function () {
					// off hover
					$span.stop().fadeTo(450, .3);
				});
			});
			
});

$(function () {
	if ($.browser.msie && $.browser.version < 7) return;
	$('div.lead')
		.find('a')
		.append('<span class="hover" />').each(function () {
				var $span = $('> span.hover', this).css('opacity', .3);
				$(this).hover(function () {
					// on hover
					$span.stop().fadeTo(450, 1);
				}, function () {
					// off hover
					$span.stop().fadeTo(450, .3);
				});
			});
			
});

$(function () {
	if ($.browser.msie && $.browser.version < 7) return;
	$('.cover').append('<span class="hover" />');			
});

var i = 0;
var int=0;//IE Fix
$(window).bind("load", function() {
	var int = setInterval("doThis(i)",500);
});

function doThis() {
	var imgs = $('img').length;
	if (i >= imgs) {
		clearInterval(int);
	}
	$('img:hidden').eq(0).fadeIn(500);
	i++;
}