<script src="http://www.saramad.ir/Scripts/jquery-1.4.1.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript"> $(document).ready(function () {
$("#ths").mouseleave(function () { if ($("#flag").attr("class") == "c2") return;
var xt = '8';
var x = $("#imgi").attr("alt"); var y = $("#imga").attr("alt");
for (i = 1; i <= 7; i++) { $("#tx" + i).stop(true, true); }
$("#tx" + xt).animate({ opacity: '1' }, 200); $("#div3").stop(true, true); $("#imgi").stop(true, true); $("#imga").stop(true, true); $("#div3").animate({ top: '-30px' }, 200);
if (x == "img/h" + xt + ".jpg") return;
$("#imgi").attr("alt", "img/h" + xt + ".jpg"); $("#imga").attr("alt", "img/z" + xt + ".jpg"); $("#divip1").css("background-image", "url('" + x + "')"); $("#divip2").css("background-image", "url('" + y + "')"); $("#imgi").animate({ left: '215px' }, 0); $("#imgi").animate({ left: '0px' }, 300); $("#imga").animate({ opacity: '0' }, 0); $("#imga").animate({ display: 'block' }, 0); $("#imga").animate({ opacity: '1' }, 300);
if ($("#flag").attr("class") == "c4") return; $("#flag").attr("class", "c4"); $("#butn").css("display", "none");
$("#divtop").stop(true, false); $("#div1").stop(true, false); $("#div2").stop(true, false); $("#div4").stop(true, false); $("#mainimg").stop(true, false); $("#divip1").stop(true, false); $("#divip2").stop(true, false);
$("#divtop").animate({ height: '682px' }, "slow"); $("#div1").animate({ top: '42px' }, "slow");
$("#mainimg").animate({ top: '23px' }, "slow"); $("#divip1").animate({ top: '-377px' }, "slow"); $("#divip2").animate({ top: '-297px' }, "slow", function () { $("#flag").attr("class", "c1"); });
});
$("#clublink").click(function () { window.location = "http://club.saramad.ir"; }); $("#toppic").click(function () { window.location = "http://club.saramad.ir"; }); $(".but").click(function () { var name = $("#Img8").attr("src")[5]; if (name == "1") window.location = "http://portal.saramad.ir"; if (name == "2") window.location = "http://forum.saramad.ir"; if (name == "3") window.location = "http://samandehi.ir"; if (name == "4") window.location = "http://nashr.saramad.ir"; if (name == "5") window.location = "http://www.jamdigital.ir"; if (name == "6") window.location = "http://news.saramad.ir/fa/home"; if (name == "7") window.location = "http://incn.ir"; });
$("#clickon").click(function () { var name = $("#Img8").attr("src")[5]; if (name == "1") window.location = "http://portal.saramad.ir"; if (name == "2") window.location = "http://forum.saramad.ir"; if (name == "3") window.location = "http://samandehi.ir"; if (name == "4") window.location = "http://nashr.saramad.ir"; if (name == "5") window.location = "http://www.jamdigital.ir"; if (name == "6") window.location = "http://news.saramad.ir/fa/home"; if (name == "7") window.location = "http://incn.ir"; });
window.setInterval(function () { var x1 = $("#imgi").attr("alt"); if (x1 == "img/h8.jpg" || x1 == "img/h9.jpg") {
if (x1 == "img/h8.jpg") xt = '9'; else xt = '8';
var x = $("#imgi").attr("alt"); var y = $("#imga").attr("alt");
$("#tx" + xt).animate({ opacity: '1' }, 200); $("#div3").stop(true, true); $("#imgi").stop(true, true); $("#div3").animate({ top: '0px' }, 200);
if (x == "img/h" + xt + ".jpg") return;
$("#imgi").attr("alt", "img/h" + xt + ".jpg"); $("#divip1").css("background-image", "url('" + x + "')"); $("#divip2").css("background-image", "url('" + y + "')"); $("#imgi").animate({ left: '215px' }, 0); $("#imgi").animate({ left: '0px' }, 1000);
} }, 4500);
$(".but").mouseover(function (event) { if ($("#flag").attr("class") == "c4") return; var name = $(this).attr("id"); var xt = name[3];
var x = $("#imgi").attr("alt"); var y = $("#imga").attr("alt");
for (i = 1; i <= 7; i++) { $("#tx" + i).stop(true, true); }
$("#tx" + xt).animate({ opacity: '1' }, 200); $("#imgi").stop(true, true); $("#imga").stop(true, true);
if (x == "img/h" + xt + ".jpg") return;
$("#imgi").attr("alt", "img/h" + xt + ".jpg"); $("#imga").attr("alt", "img/z" + xt + ".jpg"); $("#divip1").css("background-image", "url('" + x + "')"); $("#divip2").css("background-image", "url('" + y + "')"); $("#imgi").animate({ left: '215px' }, 0); $("#imgi").animate({ left: '0px' }, 300); $("#imga").animate({ opacity: '0' }, 0); $("#imga").animate({ display: 'block' }, 0); $("#imga").animate({ opacity: '1' }, 300);
var name1 = $(this).attr("id"); $("#Img8").attr("src", "img/t" + name1[3] + ".jpg"); if ($("#flag").attr("class") == "c2" || $("#flag").attr("class") == "c3") return; $("#flag").attr("class", "c2");
$("#divtop").stop(true, false); $("#div1").stop(true, false); $("#div2").stop(true, false); $("#div4").stop(true, false); $("#mainimg").stop(true, false); $("#divip1").stop(true, false); $("#divip2").stop(true, false);
$("#divtop").animate({ height: '602px' }, "slow"); $("#div1").animate({ top: '-38px' }, "slow"); $("#mainimg").animate({ top: '-33px' }, "slow"); $("#divip1").animate({ top: '-354px' }, "slow"); $("#divip2").animate({ top: '-274px' }, "slow", function () { $("#butn").css("display", "block"); $("#flag").attr("class", "c3"); });
});
$(".but").mouseleave(function (event) { var name = $(this).attr("id"); var x = name[3]; $("#tx" + x).stop(true, true); $("#div3").stop(true, true); $("#tx" + x).animate({ opacity: '0' }, 200, function () { $("#div3").animate({ top: '15px' }, 0); }); });
}); </script> <link rel="stylesheet" href="http://parslook.ir" />