شکست امریکا
مجموعه طرح: «شكست آمریكا» رهبر انقلاب در دیدار با رئیسجمهور و هیئت دولت:مطمئناً آمريكايىها از اين مسئله [دخالت نظامی در سوریه] ضرر خواهند كرد؛ همچنان كه در عراق و افغانستان ضرر كردند. ۱۳۹۲/۰۶/۰۶ |
|
دريافت کد Embed
نمایش خودکار تصاویر ![]() ![]() ![]() ![]() شماره 5 از 7
|
var imageList = new Array();
var imageWidth = new Array();
var imageDescList = new Array();
var imageIDs = new Array();
var cImageIdx = 0;
var isInPlaying=false;
var isInLoading=false;
var sumTotalWidth=0;
var baseAlbumPath = "ndata/news/23727";
var cImageID = 0;
if (location.href.indexOf('#') != 0)
cImageID = location.href.substring(location.href.indexOf('#')+1)
if (176877==cImageID)
//alert(0);
cImageIdx=0;
imageList[0] = "13920609_0123727.jpg";
imageDescList[0] = "";
imageIDs[0] = "176877";
// 2 for cellspacing
if ("1156"!=""){
imageWidth[0] = ("1156" * 111) / "1500";
sumTotalWidth += imageWidth[0] + 2
}
if (176880==cImageID)
//alert(1);
cImageIdx=1;
imageList[1] = "13920609_0223727.jpg";
imageDescList[1] = "";
imageIDs[1] = "176880";
// 2 for cellspacing
if ("1500"!=""){
imageWidth[1] = ("1500" * 111) / "1000";
sumTotalWidth += imageWidth[1] + 2
}
if (176883==cImageID)
//alert(2);
cImageIdx=2;
imageList[2] = "13920609_0323727.jpg";
imageDescList[2] = "";
imageIDs[2] = "176883";
// 2 for cellspacing
if ("1500"!=""){
imageWidth[2] = ("1500" * 111) / "999";
sumTotalWidth += imageWidth[2] + 2
}
if (176889==cImageID)
//alert(3);
cImageIdx=3;
imageList[3] = "13920609_0523727.jpg";
imageDescList[3] = "";
imageIDs[3] = "176889";
// 2 for cellspacing
if ("1500"!=""){
imageWidth[3] = ("1500" * 111) / "1000";
sumTotalWidth += imageWidth[3] + 2
}
if (176892==cImageID)
//alert(4);
cImageIdx=4;
imageList[4] = "13920609_0623727.jpg";
imageDescList[4] = "";
imageIDs[4] = "176892";
// 2 for cellspacing
if ("1500"!=""){
imageWidth[4] = ("1500" * 111) / "1001";
sumTotalWidth += imageWidth[4] + 2
}
if (176895==cImageID)
//alert(5);
cImageIdx=5;
imageList[5] = "13920609_0723727.jpg";
imageDescList[5] = "";
imageIDs[5] = "176895";
// 2 for cellspacing
if ("1500"!=""){
imageWidth[5] = ("1500" * 111) / "1000";
sumTotalWidth += imageWidth[5] + 2
}
if (176898==cImageID)
//alert(6);
cImageIdx=6;
imageList[6] = "13920609_0823727.jpg";
imageDescList[6] = "";
imageIDs[6] = "176898";
// 2 for cellspacing
if ("1500"!=""){
imageWidth[6] = ("1500" * 111) / "1000";
sumTotalWidth += imageWidth[6] + 2
}
function forwardImage()
{
if (cImageIdx == imageList.length - 1)
{
//alert("به انتهاي مجموعه رسيده ايد");
goPhoto(0,1);
return;
}
cImageIdx++;
goPhoto(cImageIdx,1);
}
function backwardImage()
{
if (cImageIdx == 0)
{
//alert("به ابتداي مجموعه رسيده ايد");
goPhoto(imageList.length-1,1);
return;
}
cImageIdx--;
goPhoto(cImageIdx,1);
}
function goPhoto(index,mustScroll)
{
isInLoading = true;
var sumWidth = 0;
cImageIdx = index;
document.getElementById("divLoading_imgLargePhoto").style.display = 'inline';
picLarge= new Image();picLarge.onload= function(){document.getElementById("divLoading_imgLargePhoto").style.display = "none";isInLoading=false;};
picLarge.src=baseAlbumPath + "/C/" + imageList[index];
document.getElementById("imgLargePhoto").src = picLarge.src;
for (var i=0 ;i < imageList.length;i++)
{
if (document.getElementById("smpsid_"+i) != null)
document.getElementById("smpsid_"+i).className = 'img_smps inactiveSMPS';
}
for (var i=0 ;i < index;i++)
{
sumWidth += imageWidth[i];
}
if (document.getElementById("smpsid_"+index) != null){
if (mustScroll==1)
Scroll("divFooterImageList",0,sumWidth);
document.getElementById("smpsid_"+index).className = 'img_smps';
}
if (imageDescList[index]=='')
document.getElementById("photoDescContainer").style.display = 'none';
else
{
document.getElementById("photoDesc").innerHTML = imageDescList[index];
document.getElementById("photoDescContainer").style.display = '';
}
if (location.href.indexOf('#') != -1)
location.href = location.href.substring(0,location.href.indexOf('#')) + '#'+imageIDs[index];
else
location.href += '#'+imageIDs[index];
document.getElementById("DivPhotoCounter").innerHTML = 'شماره '+ (index+1) +' از '+imageList.length+'';
document.getElementById("aLargePhoto").href = baseAlbumPath + "/B/" + imageList[index];
}
var zxcTO;
function Scroll(id,dis,pos){
var obj=document.getElementById(id)
obj.scrollLeft=obj.scrollLeft+dis*10;
if (pos && document.all){obj.scrollLeft=sumTotalWidth-pos;}
if (pos && !(document.all)){obj.scrollLeft=-1*pos;}
else {zxcTO=setTimeout( function(){ Scroll(id,dis); },1); }
}
var SlideInterval;
function PlaySlideShow(){
if (isInPlaying) {
document.getElementById("btnPlaySlideShow").style.background = 'url(/themes/fa_def/images/ver2/trans_icons.gif) -180px -72px no-repeat';
isInPlaying=false;
PauseSlideShow();
}
else{
isInPlaying=true;
document.getElementById("btnPlaySlideShow").style.background = 'url(/themes/fa_def/images/ver2/trans_icons.gif) -170px -72px no-repeat';
SlideInterval = setInterval('if (!isInLoading) {forwardImage();}', 5000);
}
}
function PauseSlideShow(){
clearInterval(SlideInterval);}
function StopSlideShow(){
document.getElementById("btnPlaySlideShow").style.background = 'url(/themes/fa_def/images/ver2/trans_icons.gif) -180px -72px no-repeat';
isInPlaying=false;
PauseSlideShow();
cImageIdx=1;}
if (document.getElementById("smpsid_"+cImageIdx) != null)
document.getElementById("smpsid_"+cImageIdx).className = 'img_smps';
لطفاً نظر خود را بنویسید:
نظر شما : *
سال 1392
+ نوشته شده در دوشنبه یازدهم شهریور ۱۳۹۲ ساعت 18:46 توسط
|

در حال بازیابی عکس ... 






