本帖最后由 it54 于 2008-11-28 17:36 编辑
小弟我在调用幻灯的时候出现了一个难题,希望高手给予解决办法啊!!!小弟在这里谢谢各位大哥了!!
我就是一直调用失败,我想使用这个新的幻灯!
代码如下 <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center"><div class="dypcenter">
<div style="width:300px;clear:both;">
<table width="300" border="0" cellpadding="0" cellspacing="0">
<tr valign="top"><td width="300" height="398">
<div style="position:relative;width:300px;text-align:left">
<div style="position:absolute;top:0px;left:0px"><img style="cursor:hand;FILTER: BlendTrans(Duration=1);" src="http://image.rayli.com.cn/0001/2008-11-27/images/20081127140152da.jpg" width="300" height="398" name="imgInit" align="absmiddle" onClick="jdturl()"></div>
<div id="focustextBg"></div>
<div id="jdttext" style="padding-top:9px; z-index:100; position:absolute; top:361px; left:0px; width:301px; height:28px; font-family:'黑体'; background-color: #858585; layer-background-color: #858585; border: 1px none #000000;" class="lh20 textaligncenter jdtwenzi01" align="center"><a href="#" target="_blank" class="jdtwenzi01 STYLE7" style="color:#FFFFFF">最优女装 入冬甜蜜约会搭</a></div>
</div></td></tr>
<tr bgcolor="#1C1C1C"><td width="294" height="55" align="center">
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr align=center><td width="40" id="gdxt1" onClick="nextAdonclick(1)" class="gdxtNameOf" height="53"><img src="http://image.rayli.com.cn/0001/2008-11-27/images/20081127140154xiao.jpg" style="cursor:pointer;" width="36" height="49" border="0" onMouseOver="stopnextad(1)" onMouseOut="startnextad()"></td>
<td id="gdxt2" onClick="nextAdonclick(2)" class="gdxtNameOf" width="40"><img src="http://image.rayli.com.cn/0001/2008-11-27/images/20081127160617282a.jpg" style="cursor:pointer" width="36" height="49" border="0" onMouseOver="stopnextad(2)" onMouseOut="startnextad()"></td>
<td id="gdxt3" onClick="nextAdonclick(3)" class="gdxtNameOf" width="40"><img src="http://image.rayli.com.cn/0001/2008-11-27/images/20081127140428xiao.jpg" style="cursor:pointer" width="36" height="49" border="0" onMouseOver="stopnextad(3)" onMouseOut="startnextad()"></td>
<td id="gdxt4" onClick="nextAdonclick(4)" class="gdxtNameOf" width="40"><img src="http://image.rayli.com.cn/0001/2008-11-27/images/20081127140240xiao.jpg" style="cursor:pointer" width="36" height="49" border="0" onMouseOver="stopnextad(4)" onMouseOut="startnextad()"></td>
<td id="gdxt5" onClick="nextAdonclick(5)" class="gdxtNameOf" width="40"><img src="http://image.rayli.com.cn/0001/2008-11-27/images/20081127140315xiao.jpg" style="cursor:pointer" width="36" height="49" border="0" onMouseOver="stopnextad(5)" onMouseOut="startnextad()"></td>
<td id="gdxt6" onClick="nextAdonclick(6)" class="gdxtNameOf" width="40"><img src="http://image.rayli.com.cn/0001/2008-11-27/images/200811271404102.jpg" style="cursor:pointer" width="36" height="49" border="0" onMouseOver="stopnextad(6)" onMouseOut="startnextad()"></td>
<td id="gdxt7" onClick="nextAdonclick(7)" class="gdxtNameOf" width="40"><img src="http://image.rayli.com.cn/0001/2008-11-26/images/2008112609344636x49.bmp" style="cursor:pointer" width="36" height="49" border="0" onMouseOver="stopnextad(7)" onMouseOut="startnextad()"></td></tr>
</table></td></tr>
</table>
<script type=text/javascript>
var isIE = navigator.appVersion.indexOf("MSIE") != -1 ? true:false;
var TimeOutaa=5000; //每张图切换时间 (单位毫秒);
var imgUrl=new Array();
var imgLink=new Array();
var imgtext=new Array();
var adNum=0;
var theTimer;
var whichlink;
imgUrl[1]='http://image.rayli.com.cn/0001/2008-11-27/images/20081127140152da.jpg';
imgUrl[2]='http://image.rayli.com.cn/0001/2008-11-27/images/20081127160614282.jpg';
imgUrl[3]='http://image.rayli.com.cn/0001/2008-11-27/images/20081127140425da.jpg';
imgUrl[4]='http://image.rayli.com.cn/0001/2008-11-27/images/20081127140236da.jpg';
imgUrl[5]='http://image.rayli.com.cn/0001/2008-11-27/images/20081127140312da.jpg';
imgUrl[6]='http://image.rayli.com.cn/0001/2008-11-27/images/200811271404071.jpg';
imgUrl[7]='http://image.rayli.com.cn/0001/2008-11-26/images/20081126093442294x398.bmp';
imgLink[1]="http://fashion.rayli.com.cn/0002/2008-11-16/L0002010002_339620.html";
imgLink[2]="http://www.rayli.com.cn/0003/2008-11-25/L0003002001_341324.html";
imgLink[3]="http://www.rayli.com.cn/0007/2008-11-22/L0007011002_340946.html";
imgLink[4]="http://bride.rayli.com.cn/0068/2008-11-21/L0068002_340774.html";
imgLink[5]="http://www.rayli.com.cn/0005/2008-11-21/L0005003_340780.html";
imgLink[6]="http://www.rayli.com.cn/0009/2008-11-20/L0009015001_340683.html";
imgLink[7]="http://rayliafp.allyes.cn/main/adfclick?db=rayliafp&bid=381,2502,2558&cid=0,0,0&sid=9269&advid=83&camid=421&show=ignore&url=http://www.rayli.com.cn/zhuanti/c0003/supremeaupres3/index.html";
imgtext[1]='<a href="http://fashion.rayli.com.cn/0002/2008-11-16/L0002010002_339620.html" class="jdtwenzi01" target="_blank">最优女装 入冬甜蜜约会搭</a>';
imgtext[2]='<a href="http://www.rayli.com.cn/0003/2008-11-25/L0003002001_341324.html" class="jdtwenzi01" target="_blank">好皮肤女星 保养绝招PK</a>';
imgtext[3]='<a href="http://www.rayli.com.cn/0007/2008-11-22/L0007011002_340946.html" class="jdtwenzi01" target="_blank">20种收纳方法让卫浴智慧增容</a>';
imgtext[4]='<a href="http://bride.rayli.com.cn/0068/2008-11-21/L0068002_340774.html" class="jdtwenzi01" target="_blank">Vera Wang的秋冬森林幻想曲</a>';
imgtext[5]='<a href="http://www.rayli.com.cn/0005/2008-11-21/L0005003_340780.html" class="jdtwenzi01" target="_blank">女人经期善调理能事半功倍</a>';
imgtext[6]='<a href="http://www.rayli.com.cn/0009/2008-11-20/L0009015001_340683.html" class="jdtwenzi01" target="_blank">该如何化解“老处女”面相?</a>';
imgtext[7]='<a href="http://rayliafp.allyes.cn/main/adfclick?db=rayliafp&bid=381,2502,2558&cid=0,0,0&sid=9269&advid=83&camid=421&show=ignore&url=http://www.rayli.com.cn/zhuanti/c0003/supremeaupres3/index.html" class="jdtwenzi01" target="_blank">思魅欧珀莱全新面膜上市</a>';
var count=0;
function jdturl(){
window.open(imgLink[whichlink]);
}
function chagncssname(nnn){//小图当前图片的样式
for (i=1;i<8;i++){
document.getElementById("gdxt"+i).className="gdxtNameOf";
}
document.getElementById("gdxt"+nnn).className="gdxtNameOn";
}
function playTran(){
if (isIE){
imgInit.filters.BlendTrans.play();
}
}
var key=0;
//页面打开时的焦点图的程序开始
function nextAd(){//页面打开时大图的切换
if(adNum<(imgUrl.length-1)){
adNum++;
}else{
adNum=1;
}
if(document.all){
//imgInit.filters.BlendTrans.Transition=23;
imgInit.filters.BlendTrans.apply();
playTran();
}
whichlink=adNum;
chagncssname(adNum)
document.images.imgInit.src=imgUrl[adNum];
document.getElementById("jdttext").innerHTML=imgtext[adNum];
theTimer=setTimeout("nextAd()", TimeOutaa);
}
nextAd();
function stopnextad(nnn){//停在滚动层时滚动层停止滚动程序
document.getElementById("gdxt"+nnn).className="gdxtNameOn";
clearTimeout(theTimer);
}
function startnextad(){//移出滚动层时滚动层开始滚动程序
chagncssname(adNum);
theTimer=setTimeout("nextAd()", TimeOutaa);
}
function nextAdonclick(nn){//点击小图的切换
adNum=nn;
if(document.all){
//imgInit.filters.BlendTrans.Transition=23;
imgInit.filters.BlendTrans.apply();
playTran();
}
whichlink=adNum;
chagncssname(adNum);
document.images.imgInit.src=imgUrl[adNum];
document.getElementById("jdttext").innerHTML=imgtext[adNum];
}
//页面打开时的焦点图的程序结束
</script>
</div></div></td>
</tr>
</table> |