Показать сообщение отдельно
  #5 (permalink)  
Старый 24.06.2012, 20:47
Интересующийся
Отправить личное сообщение для Art!P Посмотреть профиль Найти все сообщения от Art!P
 
Регистрация: 24.06.2012
Сообщений: 12

простите, лучше приведу весь код:
jQuery(document).ready(function ($){
	
	$.allshow = function(){
		$("#home").show();
		$("#biosepticjs").show();
		$("#biosepticjs").bind();
		$("#waterpolejs").show();
		$(".biosepticlight").fadeIn(500);
		$(".waterpolelight").fadeIn(500);
		return;
		};
	$.fastshow = function(){
		$("#home").show();
		$("#biosepticjs").show();
		$("#biosepticjs").bind();
		$("#waterpolejs").show();
		$("#biosepticjs .biosepticlight").show();
		$("#waterpolejs .waterpolelight").show();
		return;
		};
	$.allhide = function(){
		$(".biosepticlight").fadeOut(100);
		$(".waterpolelight").fadeOut(100);
		return;
		};	
	$.thehide = function(){
		$("#home > div").hide();
		$("#biosepticjs").show();
		$("#waterpolejs").show();
		$("#biosepticjs").bind();
		return;
		};	
		
	$("#home").hide();
	$.thehide();
	$("#home").fadeIn("slow");
	// init
	
	$("#home").mouseenter($.allshow).mouseleave($.allhide);
	
	$("#biosepticjs").mouseenter(function(){
		$(".biosepticlight").hide();
		$("#waterpolejs").hide();
		$("#popup > h1").text("Биосептик");
		$(".biosepticover").fadeIn(200);
		$("#popup").fadeIn(200);
		});
	
	$(".biosepticover").mouseout(function(){$("#popup").fadeOut(100);
		$.fastshow();
		$(".biosepticover").hide();
		$(".biosepticlight").fadeIn(100);});

	$(".biosepticover").mousemove(function(e){
		var parentOffset = $(this).parent().offset(); 
		var relX = e.pageX - parentOffset.left+15;
		var relY = e.pageY - parentOffset.top+15;
		$("#popup").css({"top" : relY, "left": relX});
		});
	
	$(".biosepticover").click(function(){
		$(this).unbind();
		$(this).hide();
		$("#popup").animate({top:0, left:0, width:"575px", height:"528px"});
		$("#popup").css({backgroundColor: "#fff", color: "#444",zIndex: 1}); 
		$("#popclose").show();	
		//$(this).bind();
		});
	
	$("#popclose").click(function(){
		$("#popup").hide();
		$(this).hide();
		$("#popup").css({zIndex: 0});
		$("#popup").css({width: 190, height: 90,backgroundColor: "rgba(0,0,0,0.6)", color: "#fff"});
		$.fastshow();
		$("#home > div").bind();
		});
		
	});

прошу не пинать я чего за целый день не делал и всякие коды втыкал.
это всё визуально посмотреть у меня на сайте
Ответить с цитированием