首页 » 建站技术 » 浏览内容

图片翻页效果


2006-01-26 17:08:28 6,599 0 发表评论 字体: 作者:C.K.

体验版 88 元,个人版 128 元,多用户版 288元个人版160元升级到多用户版。

From:http://blog.yewco.com/user/airofly/archives/2005/1337.shtml




图片博客




var adNum=0;
var dakularCode="";
imgUrl[1]="user/airofly/upload/200511103035.jpg";
imgLink[1]="user/airofly/archives/2005/1124.shtml";
imgTz[1]="引起美国惊慌的中国民宅";
imgUrl[2]="user/airofly/upload/200510136449.jpg";
imgLink[2]="user/airofly/archives/2005/651.shtml";
imgTz[2]="带你进入边城凤凰";
imgUrl[3]="http://blog.chinavisual.com/files/images/20050526_01.jpg";
imgLink[3]="user/airofly/archives/2005/211.shtml";
imgTz[3]="一个震惊日本的广告:中国人,奇强!!!!!!!!";
imgUrl[4]="http://img04.21cn.com/2005/09/19/4386329.jpg";
imgLink[4]="user/airofly/archives/2005/257.shtml";
imgTz[4]="痴迷养蜂人身披50万只杀人蜂创世界记录";
imgUrl[5]="user/airofly/upload/200511144871.jpg";
imgLink[5]="user/airofly/archives/2005/1186.shtml";
imgTz[5]="北京2008年第29届奥运会吉祥物——福娃";
imgUrl[6]="http://education.online.sh.cn/education/gb/images/2005-09/30/xin_140902300933781220523.jpg";
imgLink[6]="user/airofly/archives/2005/431.shtml";
imgTz[6]="Google办公室 你不羡慕都不行(组图)";
var imgPre=new Array();
for (i=1;i<8;i++)
{
imgPre[ i ]=new Image();
imgPre[ i ].src="/imgUrl[ i ]";
}
function setTransition()
{
if (document.all)
{
imgUrlrotator.filters.blendTrans.duration=2;//Math.floor(Math.random()*23)
imgUrlrotator.filters.blendTrans.apply();
}
}
function playTransition()
{
if (document.all)
imgUrlrotator.filters.blendTrans.play()
}
function nextAd(toNum)
{
if(adNum adNum++ ;
else
adNum=1;
if(toNum!=null) adNum=toNum;
setTransition();
document.images.imgUrlrotator.src="/imgUrl[adNum]";
document.getElementById('linktext').innerHTML=imgTz[adNum];
document.images.imgUrlrotator.alt='图片博客:'+imgTz[adNum];
document.getElementById('linktext').innerHTML=""+imgTz[adNum]+"";
playTransition();
checkButton();
if(toNum!=null)
{toNum=null;theTimer=setTimeout("nextAd()", 3000);}
else
{theTimer=setTimeout("nextAd()", 3000);}
}
function jump2url()
{
jumpUrl=imgLink[adNum];jumpTarget='_blank';
if (jumpUrl != '')
{ if (jumpTarget != '')
window.open(jumpUrl,jumpTarget);
else location.href="/jumpUrl";
}
}
function displayStatusMsg()
{
status=imgLink[adNum];
document.returnValue = true;
}
function checkButton()
{
for(i=1;i<=imgUrl.length-1;i++)
{if(i==adNum)
//document.getElementById('bt'+i).style.backgroundColor='#00FF00';
eval("bt"+i+".style.backgroundColor='#9B0000';bt"+i+".style.color='#FFFFFF';");
else
eval("bt"+i+".style.backgroundColor='#CCCCCC';bt"+i+".style.color='#000000';");
}
}
function dakularButtons()
{
if(buttonShow==1)
{
switch(buttonPos)
{
case 1:{buttonX=160+20-imgUrl.length*20;buttonY=16;break;}
case 2:{buttonX=160+20-imgUrl.length*20;buttonY=125;break;}
case 3:{buttonX=imgUrl.length*20-100;buttonY=16;break;}
case 4:{buttonX=imgUrl.length*20-100;buttonY=125;break;}
default:{buttonX=160+20-imgUrl.length*20;buttonY=16;break;}
}
for(i=1;i<=imgUrl.length-1;i++)
{
dakularCode=dakularCode+"

"+i+"

";
}
dakularCode="

"+dakularCode+"

";
document.write(dakularCode);
}
}

图片博客



网站统计 Statistics

  • 创建时间: 2005年1月3日 距今5041 天
  • 日志总数: 2461
  • 评论总数: 630
  • 标签总数: 654
  • 链接总数: 273
  • 最后更新: 2018-8-31 17:57:04
  • 您是本站第 14060218 位访客

广告区 Guǎng Gào

回到页首