📄 edxsky_down.js
字号:
function down_bar_top(tvar,tt,ttype)
{
var temp1="<table border=0 cellpadding=0 cellspacing=0 class=tablew>";
temp1+="<tr><td>";
temp1+=" <table border=0 cellpadding=0 cellspacing=0 width='100%'>";
temp1+=" <tr>";
temp1+=" <td align=left height=27 background='"+web_dir_skin+"main/"+m_channel+"_bar"+ttype+".gif'> "+img_skin(web_img_m)+"<font class=btd>"+tvar+"</font></td>";
temp1+=" </tr>";
temp1+=" </table>";
temp1+="</td></tr>";
temp1+="<tr><td height=3></td></tr>";
temp1+="<tr><td align=center>";
if (tt==1) temp1+=" <table border=0 width='98%'>";
document.write (temp1);
}
function down_bar_end(mvar,tt)
{
var temp1="";
if (tt==1) temp1+=" </table>";
temp1+="</td></tr>";
if (mvar!="" && mvar!=null) temp1+="<tr><td align=right>"+mvar+" </td></tr>";
temp1+="</table>";
document.write (temp1+ukong);
}
function down_topic_main(b_cid,b_cname,b_c_num,b_id,b_username,b_topic,b_tim,b_counter,b_tim_type)
{
var b_url="down_view.asp?id="+b_id;
var tim_type="";
if (b_tim_type>0)
{
if (b_tim_type==2) tim_type+="</td><td align=right>";
tim_type+=" <font class=tims>"+b_tim.substring(2,10)+"</font>";
}
var temp1="<tr><td class=gray>[<a href='down_list.asp?c_id="+b_cid+"'>"+b_cname+"</a>] <a href='###' onclick=\"javascript:open_view('"+b_url+"',1);\" alt='软件标题:"+code_html(b_topic,1,0)+"<br>发 布 人:"+b_username+"<br>整理时间:"+b_tim+"'>"+code_html(b_topic,1,b_c_num)+"</a></td><td class=tims align=right><font class=blue>"+b_counter+"</font>"+tim_type+"</td></tr>";
document.write (temp1);
}
function down_topic_type(b_c_num,b_id,b_username,b_topic,b_tim,b_counter,b_ispic,b_tim_type)
{
var n_url="down_view.asp?id="+b_id;
var n_jt=img_skin(web_img_h);
document.write ( format_topic_type(n_jt,b_username,b_topic,b_c_num,n_url,b_tim,b_counter,b_ispic,"软件标题","下载人次",b_tim_type) );
}
function down_label()
{
var temp1="<table border=0 cellspacing=0 cellpadding=4>";
temp1+="<tr><td><a href='down_list.asp?action=good'";
if (action=="good") temp1+=" class=red_3";
temp1+=">推荐下载</a></td></tr>";
temp1+="<tr><td><a href='down_list.asp?action=hot'";
if (action=="hot") temp1+=" class=red_3";
temp1+=">热门下载</a></td></tr>";
temp1+="</table>";
document.write (temp1);
//return temp1;
}
function down_search(stit)
{
var keyvar="请输入关键字";
var temp1="<table border=0>";
temp1+="<form name=down_sea_frm action='down_list.asp' method=get onsubmit=\"javascript:frm_submitonce(this);\">";
temp1+="<input type=hidden name=action value='search'>";
temp1+="<tr>";
temp1+="<td>"+img_skin('new')+"</td>";
temp1+="<td wdith=5></td>";
temp1+="<td>"+select_type(stit,0,0)+"</td>";
temp1+="<td wdith=5></td>";
temp1+="<td><select name=sea_type sizs=1><option value='topic'>"+stit+"标题</option><option value='username'>发布人</option></seelct></td>";
temp1+="<td wdith=5></td>";
temp1+="<td><select name=sea_term sizs=1><option value='all'>满足所有条件</option><option value='only'>满足一个条件</option></seelct></td>";
temp1+="<td wdith=5></td>";
//temp1+="<td>关键字:</td>";
temp1+="<td><input type=text name=keyword value='"+keyvar+"' onfocus=\"if (value =='请输入关键字'){value =''}\" onblur=\"if (value ==''){value='请输入关键字'}\" size=20 maxlength=20 title='多个关键字请用 空格 格开'></td>";
temp1+="<td wdith=5></td>";
temp1+=" <td><input type=submit value='搜索' onclick=\"javascript:return down_sea('"+stit+"');\"></td>";
//<input type=image src='images/small/search_go.gif' border=0>
temp1+=" </tr></form></table>";
document.write(temp1);
return temp1;
}
function down_sea(stit)
{
if (document.down_sea_frm.keyword.value=="请输入关键字")
{
alert("请在搜索"+stit+"前先输入要查询的 关键字 !");
document.down_sea_frm.keyword.focus();
return false;
}
}
function down_view(v_id,v_topic,v_tim,v_comto,v_word,v_counter,v_username,v_id1,v_topic1,v_id2,v_topic2)
{
var temp1="<table border=0 width='98%' cellspacing=0 cellpadding=0 align=center>";
temp1+="<tr><td align=center height=50><font class=red_3 size=3><b>"+v_topic+"</b></font></td></tr>";
temp1+="<tr><td align=center class=gray>"+v_tim+" "+web_name+" 出处:"+v_comto+"</td></tr>";
temp1+="<tr><td height=10></td></tr>";
temp1+="<tr><td valign=top>"+v_word+" <font class=gray>(本文已被浏览 "+v_counter+" 次)</font></td></tr>";
temp1+="<tr><td height=10></td></tr>";
temp1+="<tr><td>";
temp1+=" <table border=0 width='100%'>";
temp1+=" <tr>";
temp1+=" <td width='25%' class=htd> 发布人:"+format_user_name(v_username,0,'')+"<br> "+commend_friend(tit,v_topic,'down_view.asp?id='+v_id)+"</td>";
temp1+=" <td width='75%' class=htd>";
temp1+="上篇软件:";
if (v_topic1!="" && v_topic1!=null)
{ temp1+="<a href='down_view.asp?id="+v_id1+"' title='"+code_html(v_topic2,1,0)+"'>"+code_html(v_topic1,1,25)+"</a>"; }
else
{ temp1+="<font class=gray>没有找到相关软件</font>"; }
temp1+="<br>上篇软件:";
if (v_topic2!="" && v_topic2!=null)
{ temp1+="<a href='down_view.asp?id="+v_id2+"' title='"+code_html(v_topic2,1,0)+"'>"+code_html(v_topic2,1,25)+"</a>"; }
else
{ temp1+="<font class=gray>没有找到相关软件</font>"; }
temp1+=" </td></tr></table>";
temp1+="</td></tr>";
temp1+="</table>";
document.write (temp1+ukong);
//return temp1;
}
function down_list_top(nurl)
{
var temp1="";
temp1+="<tr>";
temp1+="<td width='54%'></td>";
temp1+="<td width='11%'><a href='"+nurl+"taxis=tim'><img src='"+web_dir+"images/down/down_tim.gif' title='按整理时间排序' border=0></a></td>";
temp1+="<td width='11%'><img src='"+web_dir+"images/down/down_size.gif' border=0></td>";
temp1+="<td width='11%'><a href='"+nurl+"taxis=counter'><img src='"+web_dir+"images/down/down_counter.gif' title='按下载次数排序' border=0></a></td>";
temp1+="<td width='13%'><a href='"+nurl+"taxis=types'><img src='"+web_dir+"images/down/down_types.gif' title='按推荐等级排序' border=0></a></td>";
temp1+="</tr>";
document.write (temp1);
//return temp1;
}
function down_list_body(n_ii,n_id,n_name,n_tim,n_counter,n_sizes,n_types,n_remark)
{
var temp1="";
temp1+="<tr>";
temp1+="<td height=20>"+n_ii+"、<b><a href='down_view.asp?id="+n_id+"' title='"+code_html(n_name,1,0)+"' target=_blank>"+code_html(n_name,1,20)+"</a></b></td>";
temp1+="<td class=tims align=center>"+n_tim.substring(2,10)+"</td>";
temp1+="<td class=tims align=right>"+n_sizes+"</td>";
temp1+="<td align=center class=red>"+n_counter+"</td>";
temp1+="<td><img src='"+web_dir+"images/down/star"+n_types+".gif' border=0></td>";
temp1+="</tr>";
temp1+="<tr><td colspan=5>软件介绍:"+n_remark+"</td></tr>";
temp1+="<tr><td colspan=5><table border=0 cellpadding=0 cellspacing=0 width='98%'><tr><td background='"+web_dir_skin+"bg_dian.gif'></td></tr></table></td></tr>";
document.write (temp1);
//return temp1;
}
function down_list_pagecute(p_nummer,p_rssum,p_viewpage,p_thepages,p_pageurl)
{
var temp1="";
temp1+="<tr><td colspan=5 align=center>";
temp1+="<table border=0 width='100%' cellspacing=0 cellpadding=2>";
temp1+="<tr>";
temp1+="<td height=25>";
temp1+="本栏共有 <font class=red>"+p_rssum+"</font> 个软件";
temp1+="页次:<font class=red>"+p_viewpage+"</font>/<font class=red>"+p_thepages+"</font> ";
temp1+=" 分页:"+format_pagecute(p_viewpage,p_thepages,p_pageurl,5);
temp1+="</td>";
temp1+="</table>";
temp1+="</td></tr>";
document.write(temp1);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -