改模板以来 碰到了很多种FLASH幻灯片的效果
下面这是大旗独有的 点击图片 可暂停 但是还是有一点问题 简介不能调用 不知道怎么回事 往高手解答
- <!--幻灯片开始-->
- <DIV class="focus" id="focusViwer">
- <TABLE height="376" cellSpacing="0" cellPadding="0" width="326" border="0">
- <TBODY>
- <TR>
- <TD vAlign="top" align="left" background="{S_URL}/templates/$_SCONFIG[template]/huandeng/jd3.png">
- <TABLE cellSpacing="0" cellPadding="0" width="326" border="0">
- <TBODY>
- <TR>
- <TD style="PADDING-LEFT: 1px; PADDING-TOP: 1px" colSpan="3">
- <A onmouseover="tu_ove()" style="CURSOR: hand" onclick="gotoshow()" onmouseout="ou()"><IMG style="FILTER: progid:DXImageTransform.Microsoft.Slide(duration=2,bands=1,slideStyle=SWAP)" height="269" src="http://huixian.net/attachments/2007/09/88_200709020808481.thumb.jpg" width="324" border="0" name="slide" /></A>
- </TD>
- </TR>
- <TR>
- <TD align="center" colSpan="3" height="10">
- </TD>
- </TR>
- <TR>
- <TD align="center" width="16" height="25">
-
- </TD>
- <TD align="left" colSpan="2">
- <DIV class="black fs-14 bold" id="textslide">
- 辉县网
- </DIV>
- </TD>
- </TR>
- <TR>
- <TD>
-
- </TD>
- <TD width="291">
- <DIV class="black line19" id="textcontent">
- 与您携手创建共城网络家园
- </DIV>
- </TD>
- <TD width="19">
-
- </TD>
- </TR>
- <TR>
- <TD colSpan="3" height="6">
- </TD>
- </TR>
- <TR>
- <TD bgColor="#707070" colSpan="3" height="1">
- </TD>
- </TR>
- <TR>
- <TD colSpan="3" height="6">
- </TD>
- </TR>
- <TR>
- <TD align="center" colSpan="3">
- <TABLE cellSpacing="0" cellPadding="0" width="200" align="right" border="0">
- <TBODY>
- <TR vAlign="top" height="17">
- <TD width="27" height="16">
- <DIV id="test0">
- <A style="CURSOR: hand" onclick="picstop(1)"><IMG id="picss" src="{S_URL}/templates/$_SCONFIG[template]/huandeng/next_g.gif" border="0" /></A>
- </DIV>
- </TD>
- <TD width="27" height="16">
- <DIV id="test1">
- <A style="CURSOR: hand" onclick="ove(0)"><IMG id="xiaosan1" src="{S_URL}/templates/$_SCONFIG[template]/huandeng/1_c.gif" border="0" /></A>
- </DIV>
- </TD>
- <TD width="27" height="16">
- <DIV id="test2">
- <A style="CURSOR: hand" onclick="ove(1)"><IMG id="xiaosan2" src="{S_URL}/templates/$_SCONFIG[template]/huandeng/2_g.gif" border="0" /></A>
- </DIV>
- </TD>
- <TD width="27" height="16">
- <DIV id="test3">
- <A style="CURSOR: hand" onclick="ove(2)"><IMG id="xiaosan3" src="{S_URL}/templates/$_SCONFIG[template]/huandeng/3_g.gif" border="0" /></A>
- </DIV>
- </TD>
- <TD width="27" height="16">
- <DIV id="test4">
- <A style="CURSOR: hand" onclick="ove(3)"><IMG id="xiaosan4" src="{S_URL}/templates/$_SCONFIG[template]/huandeng/4_g.gif" border="0" /></A>
- </DIV>
- </TD>
- <TD width="27" height="16">
- <DIV id="test5">
- <A style="CURSOR: hand" onclick="ove(4)"><IMG id="xiaosan5" src="{S_URL}/templates/$_SCONFIG[template]/huandeng/5_g.gif" border="0" /></A>
- </DIV>
- </TD>
- </TR>
- </TBODY>
- </TABLE>
- </TD>
- </TR>
- </TBODY>
- </TABLE>
- </TD>
- </TR>
- </TBODY>
- </TABLE>
- <!--{block name="spacenews" parameter="catid/79,77,134/haveattach/1/showattach/1/order/i.dateline DESC/limit/4,5/cachetime/13930/subjectlen/30/showdetail/1/cachename/picblog/tpl/data"}-->
- <SCRIPT language="JavaScript">
- var slideimages=new Array(); //slidetext数组为变换的标题文字
- var slidetext=new Array(); //slidetext数组为变换的标题文字
- var textcontent=new Array(); //textcontent数组为变换的说明文字
- var slidelinks=new Array(); //slidelinks数组为点击大图后跳到的地址
- <!--{eval $i=0;}-->
- <!--{loop $_SBLOCK['picblog'] $key $value}-->
- slideimages[$i]="$value[a_thumbpath]";
- slidetext[$i]="$value[subject]";
- textcontent[$i]="辉县网-新模板紧张制作中,请您随时关注辉县网每天的变化。";
- slidelinks[$i]="<!--{eval echo url_remake($value['url']);}-->";
- <!--{eval $i++;}-->
- <!--{/loop}-->
-
-
-
- //焦点图初始内容--start
- var slidespeed=5000
-
- var slidesanjiaobgimages=new Array("{S_URL}/templates/$_SCONFIG[template]/huandeng/1_c.gif","{S_URL}/templates/$_SCONFIG[template]/huandeng/2_c.gif","{S_URL}/templates/$_SCONFIG[template]/huandeng/3_c.gif","{S_URL}/templates/$_SCONFIG[template]/huandeng/4_c.gif","{S_URL}/templates/$_SCONFIG[template]/huandeng/5_c.gif");
- var slidesanjiaoimages=new Array("{S_URL}/templates/$_SCONFIG[template]/huandeng/1_g.gif","{S_URL}/templates/$_SCONFIG[template]/huandeng/2_g.gif","{S_URL}/templates/$_SCONFIG[template]/huandeng/3_g.gif","{S_URL}/templates/$_SCONFIG[template]/huandeng/4_g.gif","{S_URL}/templates/$_SCONFIG[template]/huandeng/5_g.gif");
- var slidesanjiaoimagesname=new Array("xiaosan1","xiaosan2","xiaosan3","xiaosan4","xiaosan5");
-
- var filterArray=new Array();
- filterArray[0]="progid:DXImageTransform.Microsoft.Slide(duration=2,bands=1,slideStyle=SWAP)";
- filterArray[1]="progid:DXImageTransform.Microsoft.Stretch (duration=1,stretchStyle=PUSH)";
- filterArray[2]="progid:DXImageTransform.Microsoft.Stretch(duration=1)";
- filterArray[3]="progid:DXImageTransform.Microsoft.Slide(bands=8, duration=1)";
- filterArray[4]="progid:DXImageTransform.Microsoft.Fade ( duration=1,overlap=0.25 )";
-
- var imageholder=new Array()
- var ie55=window.createPopup
- for (i=0;i<slideimages.length;i++){
- imageholder[i]=new Image()
- imageholder[i].src=slideimages[i]
- }
-
- function picstop(j){
- var j;
- if(j==1){
- document.getElementById("test0").innerHTML="<a style="cursor:hand" onClick="picstop(0)"><img src="{S_URL}/templates/$_SCONFIG[template]/huandeng/next_c.gif" id="picss" border="0"></a>";
- clearTimeout(setID);
- }else{
- document.getElementById("test0").innerHTML="<a style="cursor:hand" onClick="picstop(1)"><img src="{S_URL}/templates/$_SCONFIG[template]/huandeng/next_g.gif" id="picss" border="0"></a>";
- ou();
- }
- }
- function tu_ove(){clearTimeout(setID)}
- function ou(){
- slideit();
- document.getElementById("picss").src="{S_URL}/templates/$_SCONFIG[template]/huandeng/next_g.gif";
- }
-
- var whichlink=0
- var whichimage=0
-
- function gotoshow(){
- window.open(slidelinks[whichlink]);
- }
-
- function slideit(){
-
- document.images.slide.style.filter=filterArray[whichimage];
- //alert(document.images.slide.style.filter);
- pixeldelay=(ie55)? (document.images.slide.filters[0].duration*1000) : 0
- //alert(pixeldelay);
- if (!document.images) return
-
- if (ie55) {
- document.images.slide.filters[0].apply();
- document.images.slide.filters[0].play();
-
- }
- document.images.slide.src=imageholder[whichimage].src
-
- document.getElementById("textslide").innerHTML=slidetext[whichimage];
- document.getElementById("textcontent").innerHTML=textcontent[whichimage];
-
- document.getElementById("test1").innerHTML="<a style="cursor:hand" onClick="ove(0)"><img src="{S_URL}/templates/$_SCONFIG[template]/huandeng/1_g.gif" id="xiaosan1" border="0"></a>";
- document.getElementById("test2").innerHTML="<a style="cursor:hand" onClick="ove(1)"><img src="{S_URL}/templates/$_SCONFIG[template]/huandeng/2_g.gif" id="xiaosan2" border="0"></a>";
- document.getElementById("test3").innerHTML="<a style="cursor:hand" onClick="ove(2)"><img src="{S_URL}/templates/$_SCONFIG[template]/huandeng/3_g.gif" id="xiaosan3" border="0"></a>";
- document.getElementById("test4").innerHTML="<a style="cursor:hand" onClick="ove(3)"><img src="{S_URL}/templates/$_SCONFIG[template]/huandeng/4_g.gif" id="xiaosan4" border="0"></a>";
- document.getElementById("test5").innerHTML="<a style="cursor:hand" onClick="ove(4)"><img src="{S_URL}/templates/$_SCONFIG[template]/huandeng/5_g.gif" id="xiaosan5" border="0"></a>";
- document.getElementById("xiaosan1").src=slidesanjiaoimages[0];
- document.getElementById("xiaosan2").src=slidesanjiaoimages[1];
- document.getElementById("xiaosan3").src=slidesanjiaoimages[2];
- document.getElementById("xiaosan4").src=slidesanjiaoimages[3];
- document.getElementById("xiaosan5").src=slidesanjiaoimages[4];
-
- document.getElementById(slidesanjiaoimagesname[whichimage]).src=slidesanjiaobgimages[whichimage];
-
-
-
- if (ie55) document.images.slide.filters[0].play()
- whichlink=whichimage
- whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
- setID=setTimeout("slideit()",slidespeed+pixeldelay)
- }
- slideit()
- function ove(n){
- for(var j=0;j<5;j++)
- {
- document.getElementById("test"+(j+1)).innerHTML="<a style="cursor:hand" onClick="ove("+j+")"><img src="{S_URL}/templates/$_SCONFIG[template]/huandeng/"+(j+1)+"_c.gif" id="xiaosan"+(j+1)+"" border="0"></a>";
- picstop(1);
- }
- document.getElementById("test"+(n+1)).innerHTML="<a style="cursor:hand" onClick="ou()"><img src="{S_URL}/templates/$_SCONFIG[template]/huandeng/"+(n+1)+"_c.gif" id="xiaosan"+(n+1)+"" border="0"></a>";
- clearTimeout(setID)
- whichimage=n;
- document.images.slide.src=imageholder[whichimage].src
-
- document.getElementById("textslide").innerHTML=slidetext[whichimage];
- document.getElementById("textcontent").innerHTML=textcontent[whichimage];
- document.getElementById("xiaosan1").src=slidesanjiaoimages[0];
- document.getElementById("xiaosan2").src=slidesanjiaoimages[1];
- document.getElementById("xiaosan3").src=slidesanjiaoimages[2];
- document.getElementById("xiaosan4").src=slidesanjiaoimages[3];
- document.getElementById("xiaosan5").src=slidesanjiaoimages[4];
- document.getElementById(slidesanjiaoimagesname[whichimage]).src=slidesanjiaobgimages[whichimage];
- }
- </SCRIPT>
- </DIV>
- <!--幻灯片结束-->
复制代码 附件中的文件解压到 模板文件夹下面 |