
<% dim mm_id,mm_pic,mm_topic,mm_i,mm_id0,mm_topic0,mm_temp1,mm_temp2,mm_temp3  ,rs3,guihtm0
mm_i=0   
mm_id0=0 
set rs3=server.CreateObject("ADODB.RecordSet") 
rs3.Source="select top 5 *  from Article where top=1 and IsPhoto =-1 order by Article_ID DESC"
rs3.Open rs3.Source,conn,1,1   
do while not rs3.eof    
mm_id=rs3("Article_ID")     
mm_pic=rs3("photo")  
guihtm0=rs3(  "User_ID") 
mm_pic=mm_pic    
mm_topic=rs3("Article_Title")   
mm_topic=mm_topic         
if instr(mm_pic,"://")<1 then   
mm_pic=mm_pic    
end if     
if mm_i=0 then  
mm_id0=rs3("Article_ID") 
mm_topic0=rs3("Article_Title") 
end if     
mm_temp1= mm_temp1&mm_pic&"," 
mm_temp2= mm_temp2&CityBlogDir&"/User0/"&guihtm0&"/show.asp?/_articleid/"&mm_id&".html,"
mm_temp3= mm_temp3&""&mm_topic&","
mm_i=mm_i+1   
rs3.movenext 
loop  
rs3.close 
if instr(right(mm_temp1,1),",")>0 then  
mm_temp1=left(mm_temp1,len(mm_temp1)-1)  
mm_temp2=left(mm_temp2,len(mm_temp1)-1) 
mm_temp3=left(mm_temp3,len(mm_temp1)-1)  
end if%> 

 


<SCRIPT language="VBScript"> 
 Dim FileList,FileListArr,TxtList,TxtListArr,LinkList,LinkArr 
 FileList = "<%=mm_temp1%>" 
 LinkList = "<%=mm_temp2%>" 
 TxtList = "<%=mm_temp3%>" 
 FileListArr = Split(FileList,",") 
 LinkArr = Split(LinkList,",") 
 TxtListArr = Split(TxtList,",") 
 Dim CanPlay 
 CanPlay = CInt(Split(Split(navigator.appVersion,";")(1)," ")(2))>5 
 Dim FilterStr 
  FilterStr = "RevealTrans(duration=2,transition=23)" 
  FilterStr = FilterStr + ";BlendTrans(duration=2)" 
  If CanPlay Then 
FilterStr = FilterStr + ";progid:DXImageTransform.Microsoft.Pixelate(,enabled=false,duration=2,maxSquare=25)"
FilterStr = FilterStr + ";progid:DXImageTransform.Microsoft.Fade(duration=2,overlap=0)"
FilterStr = FilterStr + ";progid:DXImageTransform.Microsoft.GradientWipe(duration=2,gradientSize=0.25,motion=forward )"
FilterStr = FilterStr + ";progid:DXImageTransform.Microsoft.Stretch(duration=2,stretchStyle=PUSH)"
FilterStr = FilterStr + ";progid:DXImageTransform.Microsoft.Wheel(duration=2,spokes=16)"
FilterStr = FilterStr + ";progid:DXImageTransform.Microsoft.RandomDissolve(duration=2)"
FilterStr = FilterStr + ";progid:DXImageTransform.Microsoft.Spiral(duration=2,gridSizeX=50,gridSizeY=50)"
FilterStr = FilterStr + ";progid:DXImageTransform.Microsoft.Slide(duration=2,bands=1,slideStyle=SWAP)"
FilterStr = FilterStr + ";progid:DXImageTransform.Microsoft.RadialWipe(duration=2,wipeStyle=CLOCK)"
FilterStr = FilterStr + ";progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=15,Duration=1)"
FilterStr = FilterStr + ";progid:DXImageTransform.Microsoft.Wipe(duration=3,gradientsize=0.25,motion=reverse)"
  Else 
   Msgbox "幻灯片播放具有多种动态图片切换效果，但此功能需要您的浏览器为IE5.5或以上版本，否则您将只能看到部分的切换效果。",64 
  End If 
 Dim FilterArr 
 FilterArr = Split(FilterStr,";") 
 Dim PlayImg_M 
 PlayImg_M = 5 * 1000  '切换时间（毫秒） 
 Dim I 
 I = 1 
 Sub ChangeImg 
  Do While FileListArr(I)="" 
  I = I + 1 
  If I>UBound(FileListArr) Then I = 0 
  Loop 
  Dim J 
  If I>UBound(FileListArr) Then I = 0 
  Randomize 
  J = Int(Rnd * (UBound(FilterArr)+1)) 
  Img.style.filter = FilterArr(J) 
  Img.filters(0).Apply 
  Img.Src = FileListArr(I) 
  Img.filters(0).play 
  Link.Href = LinkArr(I) 
  Txt.filters(0).Apply 
  Txt.innerHTML = TxtListArr(I) 
  Txt.filters(0).play 
  I = I + 1 
  If I>UBound(FileListArr) Then I = 0 
  TempImg.Src = FileListArr(I) 
  TempLink.Href = LinkArr(I) 
  SetTimeout "ChangeImg", PlayImg_M,"VBScript" 
 End Sub 
</SCRIPT>
<TABLE cellSpacing=0 cellPadding=0 width=364 border=0>
  <TR> 
    <TD vAlign=top width=8><IMG height=7 src="img/index_t_center_1.gif" width=8></TD>
    <TD bgColor=#c9d5ae></TD>
    <TD vAlign=top width=8><IMG height=7 src="img/index_t_center_2.gif" width=8></TD>
  </TR>
  <TR> 
    <TD bgColor=#c9d5ae>&nbsp;</TD>
    <TD> <TABLE class=56 width="100%">
        <TR ID="NoScript"> 
          <TD Align="Center" Style="Color:White">对不起，图片浏览功能需脚本支持，但您的浏览器已经设置了禁止脚本运行。请您在浏览器设置中调整有关安全选项。 
          </TD>
        </TR>
          <TD Align="Center" Style="Display:none" ID="CanRunScript"><p><a id="Link" " target=_blank"><img id="Img"  width="348" height="200" border="0" ></a></p>
            </TD>
        <TD Style="Display:none">TD Style="Display:none"><a id=TempLink " target=_blank"><Img ID="TempImg" Border="0"></a> 
        </TD>
        <TR> 
          <TD HEIGHT="100%" Align="Center" vAlign="Center"><div ID="Txt"style="PADDING-LEFT: 5px; Z-INDEX: 1; FILTER: progid:DXImageTransform.Microsoft.Fade(duration=1,overlap=0); POSITION:"><%=mm_topic0%></div></TD>
        </tr>
      </TABLE>
      <Script Language="VBScript"> 
 NoScript.Style.Display = "none" 
 CanRunScript.Style.Display = "" 
 Img.Src = FileListArr(0) 
 Link.Href = LinkArr(0) 
 SetTimeout "ChangeImg", PlayImg_M,"VBScript" 
</Script> </TD>
    <TD bgColor=#c9d5ae>&nbsp;</TD>
  </TR>
  <TR> 
    <TD><IMG height=8 src="img/index_t_center_4.gif" width=8></TD>
    <TD bgColor=#c9d5ae></TD>
    <TD><IMG height=8 src="img/index_t_center_3.gif" width=8></TD>
  </TR>
</TABLE>
