📄 edxsky_article.js
字号:
function article_bar_top(tvar,tt)
{
var temp1="<table cellspacing=0 cellpadding=1 class=table>";
temp1+="<tr><td class=td> "+img_skin(web_img_m)+" "+tvar+"</td></tr>";
temp1+="<tr class=bg_td><td align=center>";
if (tt==1) temp1+=" <table border=0 width='100%'>";
document.write (temp1);
}
function article_bar_end(mvar,tt)
{
var temp1="";
if (tt==1) temp1+=" </table>";
temp1+="</td></tr>";
if (mvar!="" && mvar!=null) temp1+="<tr class=bg_tds height="+m_hei+"><td align=right>"+mvar+" </td></tr>";
temp1+="</table>";
document.write (temp1+ukong);
}
function article_topic_type(b_c_num,b_id,b_username,b_topic,b_tim,b_counter,b_ispic,b_tim_type,b_emoney,b_power)
{
var n_url="article_view.asp?id="+b_id;
var n_jt=img_skin(web_img_h);
document.write ( format_article_topic_type(n_jt,b_username,b_topic,b_c_num,n_url,b_tim,b_counter,b_ispic,"文章标题","阅读次数",b_tim_type,b_emoney,b_power) );
}
function format_article_topic_type(b_jt,b_username,b_topic,b_c_num,b_url,b_tim,b_counter,b_ispic,b_tit,b_count,b_tim_type,b_emoney,b_power)
{
var n_img="";
var tim_type="";
var n_c_num=b_c_num;
if (vtrue(b_ispic))
{
n_img=" <img src='"+web_dir_skin+"small/img.gif' border=0>";
n_c_num-=2;
}
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>"+b_jt+"<a href='javascript:;' onclick=\"javascript:article_view_return('"+b_emoney+"','"+b_power+"','"+b_url+"');\" alt='"+b_tit+":"+code_html(b_topic,1,0)+"<br>发 布 人:"+b_username+"<br>"+b_count+":"+b_counter+" 人次<br>整理时间:"+b_tim+"'>"+code_html(b_topic,1,n_c_num)+"</a>"+n_img+tim_type+"</td></tr>";
return temp1;
}
function article_view_return(v_emoney,v_power,v_url)
{
if (note_emoney('浏览此文章',v_emoney,v_power))
{ open_view(v_url,1); }
}
function article_label()
{
var temp1="<table border=0 cellspacing=0 cellpadding=4>";
temp1+="<tr><td> "+img_skin("label_"+m_channel)+" <a href='article_list.asp?action=good'";
if (action=="good") temp1+=" class=red";
temp1+=">推荐文章</a></td></tr>";
temp1+="<tr><td> "+img_skin("label_"+m_channel)+" <a href='article_list.asp?action=hot'";
if (action=="hot") temp1+=" class=red";
temp1+=">热门文章</a></td></tr>";
temp1+="</table>";
document.write (temp1);
//return temp1;
}
function article_list_pagecute(p_nummer,p_rssum,p_viewpage,p_thepages,p_pageurl)
{
var temp1="";
temp1+="<table border=0 width='98%' 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>"+ukong;
document.write(temp1);
}
function article_search(stit)
{
var keyvar="请输入关键字";
var temp1="<table border=0>";
temp1+="<form name=article_sea_frm action='article_list.asp' method=get onsubmit=\"javascript:frm_submitonce(this);\">";
temp1+="<input type=hidden name=action value='search'>";
temp1+="<tr height=30>";
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 article_sea('"+stit+"');\"></td>";
//<input type=image src='images/small/search_go.gif' border=0>
temp1+=" </tr></form></table>";
document.write(temp1);
return temp1;
}
function article_sea(stit)
{
if (document.article_sea_frm.keyword.value=="请输入关键字")
{
alert("请在搜索"+stit+"前先输入要查询的 关键字 !");
document.article_sea_frm.keyword.focus();
return false;
}
}
function article_view1(v_id,v_topic,v_tim,v_comto,v_author)
{
var temp1="<table cellspacing=0 cellpadding=1 class=table0>";
temp1+="<tr><td class=td> "+img_skin(web_img_m)+" "+v_topic+"</td></tr>";
temp1+="<tr class=bg_tds><td align=right height="+m_hei+" class=gray>作者:"+v_author+" 出处:"+v_comto+" 更新时间: "+v_tim+" </td></tr>";
temp1+="<tr class=bg_td><td align=center>";
temp1+=" <table border=0 class=tablew><tr><td>";
temp1+=" <table border=0 width='100%' class=tf><tr><td class=bw>";
document.write (temp1);
//return temp1;
}
function article_view2(v_id,v_sort,v_topic,v_counter,v_username,v_id1,v_topic1,v_id2,v_topic2)
{
var temp1=" <font class=gray>(本文已被浏览 "+v_counter+" 次)</font>";
temp1+=" </td></tr></table>";
temp1+=" </td></tr></table>";
temp1+="</td></tr>";
temp1+="<tr class=bg_tds><td>";
temp1+=" <table border=0 width='100%'>";
temp1+=" <tr>";
temp1+=" <td width='35%' class=htd> 发布人:"+format_user_name(v_username,0,'')+"<br> "+commend_friend(tit,v_topic,'article_view.asp?id='+v_id)+" "+commend_err(tit,v_topic,v_id,v_sort,'err.asp?id='+v_id)+"</td>";
temp1+=" <td width='65%' class=htd>";
temp1+="上篇文章:";
if (v_topic1!="" && v_topic1!=null)
{ temp1+="<a href='article_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='article_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;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -