Learn how to use jQuery at the Blog

Dash « visit

  • Added 6 months ago
  • 52 Lines of Code shown
  • 1 Links of Interest
http://d-a-s-h.net
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 Dash - http://d-a-s-h.net

	var players = new Array();
	var params = { wmode:"transparent", allowfullscreen:"false", allowscriptaccess:"always" };

	$(function() {
		$('.panelRollover').css({ opacity:0, visibility:'visible' });

		$('.panelRollover').mouseover(function() {
			$(this).stop(true);
			$(this).animate({ opacity:1 });
		});
		$('.panelRollover').mouseout(function() {
			$(this).animate({ opacity:0 });
		});
	});

	var numNewsItems = 2;
	var currentItem = 1;
		
	setInterval('fadeNews()', 5000);

	function fadeNews() {
		nextItem = currentItem + 1;
		if(nextItem > numNewsItems) nextItem = 1;
		
		$('#news'+currentItem+'Item').fadeOut('slow', function() {
			$('#news'+nextItem+'Item').fadeIn('slow', function() {
				currentItem = nextItem;
			});
		});
	}



	var currentSection = 'index';
	var params = { wmode:'transparent' };
	swfobject.embedSWF("flash/01-home.swf", "indexFlash", "980", "347", "9.0.0", "expressInstall.swf", false, params);
	
	$(function() {
		$('.navRollover').each(function() {
			if($(this).attr('href') == 'http://d-a-s-h.net/'+currentSection+'.html') $(this).css({ opacity:1 });
		});
	});
	
	$('.navRollover').css({ opacity:0, visibility:'visible' });

	$('.navRollover').mouseover(function() {
		$(this).stop(true);
		$(this).animate({ opacity:1 });
	});
	$('.navRollover').mouseout(function() {
		if($(this).attr('href') != 'http://d-a-s-h.net/'+currentSection+'.html') $(this).animate({ opacity:0 });
	});