} } setCaption(); } if(options.directionalNav) { var directionalNavHTML = '
'; orbit.append(directionalNavHTML); var leftBtn = orbit.children('div.slider-nav').children('span.left'); var rightBtn = orbit.children('div.slider-nav').children('span.right'); leftBtn.click(function() { if(options.timer) { stopClock(); } shift("prev"); }); rightBtn.click(function() { if(options.timer) { stopClock(); } shift("next") }); } if(options.bullets) { var bulletHTML = ''; orbit.append(bulletHTML); var bullets = $('#orbit-bullets_b_41959_'); for( i=0; i') $('#orbit-bullets_b_41959_').append(liMarkup); liMarkup.data('index',i); liMarkup.click(function() { if(options.timer) { stopClock(); } shift($(this).data('index')); }); } function setActiveBullet() { bullets.children('li').removeClass('active').eq(activeImage).addClass('active') } setActiveBullet(); } function shift(direction) { var prevActiveImage = activeImage; var slideDirection = direction; if(prevActiveImage == slideDirection) { return false; } function resetAndUnlock() { images.eq(prevActiveImage).css({"z-index" : 1}); unlock(); } if(!locked) { lock(); if(direction == "next") { activeImage++ if(activeImage == numberImages) { activeImage = 0; } } else if(direction == "prev") { activeImage-- if(activeImage < 0) { activeImage = numberImages-1; } } else { activeImage = direction; if (prevActiveImage < activeImage) { slideDirection = "next"; } else if (prevActiveImage > activeImage) { slideDirection = "prev" } } if(options.bullets) { setActiveBullet(); } if(options.animation == "fade") { images.eq(prevActiveImage).css({"z-index" : 2}); images.eq(activeImage).css({"opacity" : 0, "z-index" : 3}) .animate({"opacity" : 1}, options.animationSpeed, resetAndUnlock); if(options.captions) { setCaption(); } } if(options.animation == "horizontal-slide") { images.eq(prevActiveImage).css({"z-index" : 2}); if(slideDirection == "next") { images.eq(activeImage).css({"left": orbitWidth, "z-index" : 3}) .animate({"left" : 0}, options.animationSpeed, resetAndUnlock); } if(slideDirection == "prev") { images.eq(activeImage).css({"left": -orbitWidth, "z-index" : 3}) .animate({"left" : 0}, options.animationSpeed, resetAndUnlock); } if(options.captions) { setCaption(); } } if(options.animation == "vertical-slide") { images.eq(prevActiveImage).css({"z-index" : 2}); if(slideDirection == "prev") { images.eq(activeImage).css({"top": orbitHeight, "z-index" : 3}) .animate({"top" : 0}, options.animationSpeed, resetAndUnlock); } if(slideDirection == "next") { images.eq(activeImage).css({"top": -orbitHeight, "z-index" : 3}) .animate({"top" : 0}, options.animationSpeed, resetAndUnlock); } if(options.captions) { setCaption(); } } } } }); } })(jQuery); $(window).load(function() { document.getElementById('featured_b_41959_').style.display = ''; $('#featured_b_41959_').orbit_b_41959_({ 'bullets': true, 'timer' : true, 'animation' : 'fade' }); });
    • پیش بینی وضع هوا |سه شنبه 30 مرداد
      اراک
      بندر عباس
      اردبیل
      بوشهر
      ارومیه
      بیرجند