1.自动交替出现的示源示源源码
自动交替出现的源码
不知道你要做什么,一般来说都是码图码建站是需要这样做,你可以参考下面的片显ssc 聊天室 源码代码,
看是示源示源不是你需要的,有什么问题随时问:
1、码图码arduino红外源码转发
<IMG id="SlideShow" src="http://* /images/.jpg" name="SlideShow">
<SCRIPT language=javascript>
// 设置轮番显示速度 Set slideShowSpeed (milliseconds)
var slideShowSpeed = ;
// 匀滑转换时间 Duration of crossfade (seconds)
var crossFadeDuration = 3;
// 指定图像文件 Specify the image files
var Pic = new Array();
// to add more images,片显php源码防破解 just continue
// the pattern, adding to the array below
Pic[0]='http://* /images/.jpg'
Pic[1]='http://* /images/.jpg'
Pic[2]='http://* /images/.jpg'
Pic[3]='http://* /images/.jpg'
// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
function runSlideShow(){
if(document.all)
{
document.images.SlideShow.style.filter="blendTrans(duration=2)";
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow.filters.blendTrans.Apply();
}
document.images.SlideShow.src = preLoad[j].src;
if(document.all){
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}
runSlideShow()
</SCRIPT>
“*”为链接地址
2、asp随机显示 - 源码
<%@LANGUAGE="VBSCRIPT" CODEPAGE=""%>
<%
Function AllPath()
Dim Domain,示源示源GFilePath
Domain = Request.ServerVariables("SERVER_NAME")
GFilePath = Request.ServerVariables("PATH_INFO")
GFilePath = lcase(left(GFilePath,instrRev(GFilePath,"/")))
AllPath = "http://"&Domain&GFilePath
End Function
Function ShowFileList(folderspec)
Dim Path,objFSO,objFolder,count,objFile,nume,S
Path = Server.MapPath(folderspec)
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
If objFSO.FolderExists(Path) Then
Set objFolder = objFSO.GetFolder(Path)
count = 0
For Each objFile in objFolder.Files
count = count+1
Next
randomize
nume = Int((count*rnd)+1)
S = 0
ShowFileList = ""
For Each objFile in objFolder.Files
S = S + 1
If S = nume Then
ShowFileList = objFile.Name
Exit For
End If
Next
Set objFolder = Nothing
Else
ShowFileList = "NO"
End If
Set objFSO = Nothing
End Function
Dim list,filename,address,str
list = trim(Request.QueryString("list"))
if list = "" then
Response.write "本页需要正确参数引入,您缺少相关的参数!正确格式如下:"&AllPath&"img.asp?码图码list=存放目录"
Response.End()
end if
filename = ShowFileList("./"&list&"/")
if filename = "NO" then
Response.write "您指定的目录<b>"&list&"</b>不存在,请重新指定!片显"
Response.End()
end if
if filename = "" then
Response.write "您指定的示源示源目录<b>"&list&"</b>没有相关的文件存在,请重新指定!码图码"
Response.End()
end if
str = right(filename,片显3)
if str<>"jpg" and str<>"gif" then
filename = "erro.gif"
end if
address = AllPath&list&"/"
address = address&filename
%>
<%Response.redirect(address)%>
更多代码和技巧请阅读
参考资料: