不错的ASP整站源代码。在IIS环境下运行都没有问题
源代码在线查看: sort_type_shop.js
function shop_sort_left(stype)
{
var dnum,dim1,dim2,ncid,nlist,ntmp;
var temp1="";
dnum=sort_dim.length;
for (var i=0;i {
dim1=sort_dim[i].split("|");
ncid=0;
nlist=0;
ntmp="├";
for (var j=0;j {
dim2=dim1[j].split(":");
if (j==(dim1.length-1)) ntmp="└";
if (ncid==0)
{
ncid=dim2[1];
temp1+=" if (cid==dim2[1])
{
temp1+=" class=blue";
cname=dim2[0];
nlist=1;
}
temp1+=">"+dim2[0]+"";
}
else
{
if ((stype==1 && nlist==1) || stype==0)
{
temp1+=" "+ntmp+" if (sid==dim2[1])
{
temp1+=" class=red";
sname=dim2[0];
}
temp1+=">"+dim2[0]+"";
}
}
}
}
document.write (temp1);
}
function sort_type(turl,t1,t2)
{
var sn,i,j,ddim,dnum,ndim,temp1,ncid;
var col_num=7;
temp1="";
sn=sort_dim.length;
for (i=0;i {
ncid=0;
ddim=sort_dim[i].split("|");
dnum=ddim.length;
for (j=0;j {
ndim=ddim[j].split(":");
if (j==0)
{
ncid=ndim[1];
temp1+="| if (cid==ncid)
{
temp1+=" class=red";
cname=ndim[0];
}
temp1+=">"+ndim[0]+" |";
}
else
{
temp1+=" if (sid==ndim[1])
{
temp1+=" class=red";
sname=ndim[0];
}
temp1+=">"+ndim[0]+" ";
}
if (j>0 && sel_mod_num(col_num,j)==true) { temp1+=""; }
if (j==(dnum-1)) { temp1+=""; }
}
}
temp1+="";
document.write(temp1);
//return temp1;
}
function select_type(t_tit,t1,t2)
{
var sn,i,j,ddim,dnum,ndim,temp1,ncid;
temp1="";
temp1+="请选择"+t_tit+"类型";
sn=sort_dim.length;
for (i=0;i {
ncid=0
ddim=sort_dim[i].split("|");
dnum=ddim.length;
for (j=0;j {
ndim=ddim[j].split(":");
if (j==0)
{
ncid=ndim[1];
temp1+=" if (cid==ncid)
{
temp1+=" selected";
cname=ndim[0];
}
temp1+=">"+ndim[0]+"";
}
else
{
temp1+=" if (sid==ndim[1])
{
temp1+=" selected";
sname=ndim[0];
}
temp1+="> "+ndim[0]+"";
}
}
}
temp1+="";
//document.write(temp1);
return temp1;
}