复制代码代码如下所示:
<
----------------------------------- + +
|变量设置
----------------------------------- + +
ctitle =所有上传的图片(注意:下面的图片文件夹,所有的图片不是所有有效的图片!)名字
cpictype =JPEG,JPG,GIF,PNG,BMP的图片类型(使用
cheight = 120的高度降低
宽= 120的宽度减少
ceachlinemax = 5显示图片每行数
ceachpagemax = 20 '显示图片数量每页
pic_path = / / uploadpic设置图片的路径
----------------------------------- + +
|定义函数
----------------------------------- + +
功能getext(名称)
getext =权(名称,3)
端功能

功能ispic(filename,pictype)
Ext = getext(文件名)
ispic = false
类型表=分裂(pictype,
Ⅱ= LBound(TypeList)到UBound(类型表)
如果UCase(EXT)= UCase(TypeList(II))然后
ispic =真
退出
最后如果
下一个
端功能

功能页面(页面,pagetotal)
响应。请写{一页}。
响应。写
我= pagestart
当我<页>时
响应。写入{
i = i + 1
环
响应。写页}
我= pagemiddle
而我pageend
响应。写入{
i = i + 1
环
响应…{pagetotal}
响应。写入
响应。写{下一页} pagetotal 页面的页面的页码:pictotal 。
端功能
----------------------------------- + +
|采取图片大小的类
----------------------------------- + +
类
昏暗的ASO
私有子class_initialize
集麻生太郎= CreateObject(数据流)
模式= 3
Aso,类型= 1
麻生太郎开。
端子
私有子class_terminate
设置无
端子
私有函数bin2str(仓)
弱k
对于k = 1 lenb(仓)
克洛=多重交替焙烘显影工艺(斌,k,1)
如果ASCB(Clow)< 128
STR = Str Chr(ASCB(Clow))
其他的
k=k+1
如果K LenB Str Str(宾)= CHR(ascw(多重交替焙烘显影工艺(斌,k,1)克洛))
最后如果
下一个
bin2str = str
端功能

私有函数num2str(num,底座、镜头)
昏暗的RET

当(数字=基础)
RET =(数字mod基)RET
数字=
走
num2str =右(字符串(镜头,0 )民RET,镜头)
端功能

私有函数str2num(STR,基地)
昏暗的RET
ret = 0
对于k = 1到莱恩(STR)
ret = RET *基地+ Cint(MID(STR,k,1))
下一个
str2num = ret
端功能

私有函数BinVal(仓)
昏暗的RET
ret = 0
K = lenb(仓)1步1
ret = RET * 256 + AscB(多重交替焙烘显影工艺(斌,k,1))
下一个
binVal = ret
端功能

私有函数binval2(仓)
昏暗的RET
ret = 0
对于k = 1 lenb(仓)
ret = RET * 256 + AscB(多重交替焙烘显影工艺(斌,k,1))
下一个
binval2 = ret
端功能

私有函数getimagesize(filespec)
昏暗的RET(3)
aso.loadfromfile(filespec)
bflag = aso.read(3)
选择案例六(binVal(bflag))
案例4e5089 :
(15)aso.read
RET(0)=PNG
RET(1)= binval2(aso.read(2))
(2)aso.read
RET(2)= binval2(aso.read(2))
案例464947:
(3)aso.read
RET(0)
RET(1)= BinVal(aso.read(2))
RET(2)= BinVal(aso.read(2))
案例535746:
(5)aso.read
bindata = aso.read(1)
sconv = num2str(ASCB(bindata),2, 8)
带= str2num(左(sconv,5),2)
sconv =中(sconv,6)
而(Len(sconv)<带* 4)
bindata = aso.read(1)
sconv = sconvnum2str(ASCB(bindata),2, 8)
走
RET(0)=SWF
RET(1)= int(ABS(str2num(MID(sconv,1×带+ 1,带),2)- str2num(MID(sconv,0×带+ 1, 2))))
RET(2)= int(ABS(str2num(MID(sconv,3×带+ 1,带),2)- str2num(MID(sconv,2×带+ 1, 2))))
案例ffd8ff :
做
做:P1 = binVal(aso.read(1)):当P1 = 255和不aso.eos环
如果P1和P1>191<196然后退出做别的aso.read(binval2(aso.read(2))- 2)
做:P1 = binVal(aso.read(1)):当P1<255,不aso.eos环
而真正的环
阅读(3)
RET(0)= JPG
RET(2)= binval2(aso.read(2))
RET(1)= binval2(aso.read(2))
其他案件:
如果左(bin2str(bflag),2)=BM然后
阅读(15)
RET(0)=bmp
RET(1)= binVal(aso.read(4))
RET(2)= binVal(aso.read(4))
其他的
RET(0)=
最后如果
最后选择
RET(3)=宽度=(1)高度……(2)。
getimagesize = ret
端功能
功能准备(pic_path)
集fso1 = server.createobject(脚本。FileSystemObject )
设置F1 = fso1.getfile(pic_path)
Ext = fso1.getextensionname(,pic_path)
选择案例UCase(EXT)
案例
ARR = getimagesize(F1。路径)
准备= ARR(1)
案例SWF
ARR = pp.getimagesize(F1。路径)
准备= ARR(1)
最后选择
设置f1
集fso1 =没有
端功能
准备(pic_path)功能
集fso1 = server.createobject(脚本。FileSystemObject )
设置F1 = fso1.getfile(pic_path)
Ext = fso1.getextensionname(,pic_path)
选择案例UCase(EXT)
案例
ARR = getimagesize(F1。路径)
准备= ARR(2)
案例SWF
ARR = pp.getimagesize(F1。路径)
准备= ARR(2)
最后选择
设置f1
集fso1 =没有
端功能
类的结束
----------------------------------- + +
|数据处理
----------------------------------- + +
昏暗的filearray()
ReDim filearray(0)
集fileobj = server.createobject(脚本。FileSystemObject )
集folderobj = fileobj.getfolder(server.mappath(,pic_path))
我= 0
在folderobj每个文件。文件
如果ispic(file.name,cpictype)然后
filearray(我)=文件名
i = i + 1
ReDim Preserve filearray(我)
最后如果
下一个
集fileobj =没有
集folderobj =没有
pictotal = UBound(filearray)
----------------------------------- + +
|分页处理
----------------------------------- + +
页= int(Request.QueryString(页))
pagetotal = -(int(-(pictotal / ceachpagemax)))
如果页为空或页<0,则页= 1
如果网页> pagetotal然后页面= pagetotal
偏移量= ceachpagemax *页
起始偏移ceachpagemax
如果启动< 0,然后启动= 0
如果偏移> pictotal然后偏移= pictotal
pagestart =页ceachpagemax
如果pagestart 0然后pagestart = 1
pagemiddle =页+ 1
pageend = pagemiddle + ceachpagemax
如果页面ceachpagemax然后pageend <= ceachpagemax * 2
如果pageend > pagetotal然后pageend = pagetotal
----------------------------------- + +
|输出
----------------------------------- + +
%>





一:链接,一:参观,一:主动{文字装饰:无;颜色:# 000 }
答:悬停{颜色:橙红色;文字装饰:无}
体{面部颜色:# dee3e7;滚动条颜色:# ffffff;滚动条阴影颜色:# dee3e7;scrollbar-3dlight-color:# d1d7dc;滚动条箭头颜色:# 006699;滚动条轨道颜色:# efefef;滚动条darkshadow颜色:# 98aab1;字体:12px Verdana;颜色:#字体:宋体,333333;Verdana,Arial,黑体,宋体,sans-serif;字体大小:12px;颜色:# 000;保证金:0px 12px 0px 12px背景颜色:# FFF;}
TD {字体:12px Verdana;颜色:# 333333;字体:宋体,宋体,Verdana,Arial,瑞士,Arial;




tpopwait = 20;
showpopstep = 10;
popopacity = 85;
SPOP = null;
curshow = null;
tfadeout = null;
tfadein = null;
tfadewaiting = null;
document.write();
document.write(。cpoptext Tahoma字体背景颜色:{ Verdana;# f7f7f7边境:;1px # 000000固体;字体大小:11px;填充右:4px;填充左:4px;高度:20px;填料顶部:2px;座垫:2px;过滤器:α(不透明度0)});
document.write();
document.write();
功能showpopuptext(){
var o = event.srcelement;
mouseX = X事件;
老鼠= Y事件;
如果(o.alt!= null o.alt!=){ o.pop = o.alt;o.alt =}
如果(o.title!= null o.title!=){ o.pop = o.title;o.title =}
如果(o.pop){ o.pop = o.pop.replace(
如果(o.pop!= SPOP){
o.pop SPOP =;
ClearTimeout(curshow);
ClearTimeout(tfadeout);
ClearTimeout(tfadein);
ClearTimeout (tFadeWaiting);
如果(SPOP = = null | | { SPOP = = )
PopLayer。innerHTML = ;
PopLayer。风格。过滤器=α();
PopLayer.filters.Alpha.opacity=0;
其他{ }
如果(o.dyclass!= null)popstyle = o.dyclass
其他popstyle =cpoptext ;
curshow = setTimeout(展示()
}
}
}
功能展示(){
PopLayer popstyle classname =;
PopLayer。innerHTML =+ +提供的;
popwidth = poplayer.clientwidth;
popheight = poplayer.clientheight;
如果(mouseX + 12 + popwidth >文档。身体。clientwidth)popleftadjust = - popwidth-24
其他popleftadjust = 0;
If (MouseY+12+popHeight>document.body.clientHeight) popTopAdjust=-popHeight-24
其他poptopadjust = 0;
PopLayer。风格。左= mouseX + 12 +文件。身体。scrollLeft + popleftadjust;
PopLayer。风格。=鼠标+ 12 +文件。身体。scrollTop + poptopadjust;
PopLayer。风格。过滤器=阿尔法(不透明度0);
FadeOut();
}
功能化(){
如果(poplayer。过滤器。阿尔法。透明度< popopacity){
PopLayer。过滤器。阿尔法。混浊+ = showpopstep;
tfadeout = setTimeout(淡出()
}
}
onmouseover = showpopuptext文件;









<
----------------------------------- + +
|周期输出图片
----------------------------------- + +
J = 1
我=开始
设置pp =新的可能
当我<偏移量】时
thispicpath = server.mappath(,pic_path filearray(我))
x = pp.readx(thispicpath)
Y = pp.ready(thispicpath)
如果x或y > >宽cheight然后
twidth = X /宽:theight = Y / cheight
如果twidth > theight然后
W =宽
H = Y / twidth
theight然后twidth <
H = cheight
W = X / theight
其他的
W =宽
H = cheight
最后如果
其他的
W = x
H = Y
最后如果
如果J > ceachlinemax然后
J = 1
响应。写
最后如果
响应。写入大小:
j = j + 1
i = i + 1
环
设置pp
%>