Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[疑难] 这个幻灯的调用该如何做?希望高手帮帮我,晚辈万分感谢!!

[复制链接]
it54 发表于 2008-11-28 17:35:54 | 显示全部楼层 |阅读模式
本帖最后由 it54 于 2008-11-28 17:36 编辑

小弟我在调用幻灯的时候出现了一个难题,希望高手给予解决办法啊!!!小弟在这里谢谢各位大哥了!!
我就是一直调用失败,我想使用这个新的幻灯!


1.jpg
代码如下
       <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>
回复

使用道具 举报

 楼主| it54 发表于 2008-11-28 18:01:05 | 显示全部楼层
求助啊求助啊
回复

使用道具 举报

 楼主| it54 发表于 2008-11-28 18:13:55 | 显示全部楼层
顶啊啊 啊啊啊啊啊啊啊
回复

使用道具 举报

 楼主| it54 发表于 2008-11-28 18:28:37 | 显示全部楼层
还是没有人么
回复

使用道具 举报

123752619 发表于 2008-11-28 18:50:21 | 显示全部楼层
找到下面的代码并删除:

  1. imgUrl[1]='http://image.rayli.com.cn/0001/2008-11-27/images/20081127140152da.jpg';
  2. imgUrl[2]='http://image.rayli.com.cn/0001/2008-11-27/images/20081127160614282.jpg';
  3. imgUrl[3]='http://image.rayli.com.cn/0001/2008-11-27/images/20081127140425da.jpg';
  4. imgUrl[4]='http://image.rayli.com.cn/0001/2008-11-27/images/20081127140236da.jpg';
  5. imgUrl[5]='http://image.rayli.com.cn/0001/2008-11-27/images/20081127140312da.jpg';
  6. imgUrl[6]='http://image.rayli.com.cn/0001/2008-11-27/images/200811271404071.jpg';
  7. imgUrl[7]='http://image.rayli.com.cn/0001/2008-11-26/images/20081126093442294x398.bmp';
  8. imgLink[1]="http://fashion.rayli.com.cn/0002/2008-11-16/L0002010002_339620.html";
  9. imgLink[2]="http://www.rayli.com.cn/0003/2008-11-25/L0003002001_341324.html";
  10. imgLink[3]="http://www.rayli.com.cn/0007/2008-11-22/L0007011002_340946.html";
  11. imgLink[4]="http://bride.rayli.com.cn/0068/2008-11-21/L0068002_340774.html";
  12. imgLink[5]="http://www.rayli.com.cn/0005/2008-11-21/L0005003_340780.html";
  13. imgLink[6]="http://www.rayli.com.cn/0009/2008-11-20/L0009015001_340683.html";
  14. 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";

  15. imgtext[1]='<a href="http://fashion.rayli.com.cn/0002/2008-11-16/L0002010002_339620.html" class="jdtwenzi01" target="_blank">最优女装 入冬甜蜜约会搭</a>';
  16. imgtext[2]='<a href="http://www.rayli.com.cn/0003/2008-11-25/L0003002001_341324.html" class="jdtwenzi01" target="_blank">好皮肤女星 保养绝招PK</a>';
  17. imgtext[3]='<a href="http://www.rayli.com.cn/0007/2008-11-22/L0007011002_340946.html" class="jdtwenzi01" target="_blank">20种收纳方法让卫浴智慧增容</a>';
  18. imgtext[4]='<a href="http://bride.rayli.com.cn/0068/2008-11-21/L0068002_340774.html" class="jdtwenzi01" target="_blank">Vera Wang的秋冬森林幻想曲</a>';
  19. imgtext[5]='<a href="http://www.rayli.com.cn/0005/2008-11-21/L0005003_340780.html" class="jdtwenzi01" target="_blank">女人经期善调理能事半功倍</a>';
  20. imgtext[6]='<a href="http://www.rayli.com.cn/0009/2008-11-20/L0009015001_340683.html" class="jdtwenzi01" target="_blank">该如何化解“老处女”面相?</a>';
  21. 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>';
复制代码


然后在删除的地方加入一下标签代码:

  1.   <!--图文资讯幻灯片-->
  2.   <!--{block name="spacenews" parameter="haveattach/1/showattach/1/order/i.dateline DESC/limit/0,7/cachetime/11930/cachename/picnews/tpl/data"}-->
  3.   <!--{eval $i=0;}-->
  4.   <!--{loop $_SBLOCK['picnews'] $key $value}-->
  5.   imgUrl[$i] = "$value[a_thumbpath]";
  6.   imgLink[$i] = "$value['url']";
  7.   imgtext[$i] = "<a href=$value[url] class=jdtwenzi01>$value[subject]</a>";
  8.   <!--{eval $i++;}-->
  9.   <!--{/loop}-->
复制代码


以上代码没有测试,我这里没有测试环境,只能说这么多了。
回复

使用道具 举报

kafeimeng520 发表于 2008-12-25 18:13:07 | 显示全部楼层
你看看是不是http://www.yulin0912.com这个样子

-------------------------------------------------------------------------------------------------------------
自从认识DZ之后,迷上DZ,追求DZ,爱好DZ,支持DZ
回复

使用道具 举报

movi 发表于 2008-12-25 21:23:35 | 显示全部楼层
4楼恐怕不行,因为上面也是要自动生成,还要设定第一张的图片和标题,比较复杂,
不过一步一步的做可以做出来
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-10-24 10:31 , Processed in 0.121007 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表