js/common.js

(开头部分) 11KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

if(location.href.indexOf('http://dzxsw.com')==0)
    location=location.href.replace('dzxsw.com','www.dzxsw.com');
//搜索文本框得到焦点后清空文本
function judge()
{
    document.getElementById("t_search").value='';
}
function press()
{
    if(window.event.keyCode==13)
        search(0);
}
//切换页面
function search(isrigor)
{
    var tmpvalue=document.getElementById('t_search').value;
    var tmptxt=StranLink_Obj.innerHTML;
    if(tmptxt.indexOf("简")>-1)
        tmpvalue=StranText(tmpvalue,0,1);
    if(tmpvalue=='' || tmpvalue=='请输入搜索字符')
        location="/search.aspx";
    else
        location="/search.aspx?key="+escape(tmpvalue)+"&istitle="+document.getElementById('s_title').value+"&isrigor="+isrigor;
    return false;
}
function iscrip()
{
    if(GetUrlParam('iscrip')=='true')
        document.getElementById('scrip').innerHTML='  <a href="/user/scrip.aspx"><img src="/image/newscrip.gif" alt="新纸条" />您有未读纸条</a>';
}
//添加推荐
function acommend(tid)
{
    document.getElementById("scommend").src='/operate.aspx?tid='+tid+"&type=1";
    return false;
}
//添加到本地书库
function alocal(tid,title)
{
    document.getElementById("slocal").src='/operate.aspx?tid='+tid+"&type=2&title="+escape(title);
    return false;
}
//添加到我的书窝
function amybook(tid)
{
    document.getElementById("smybook").src='/operate.aspx?tid='+tid+"&type=3";
    return false;
}
//添加书签
function abmark(tid,cid)
{
    document.getElementById("bmark").src='/operate.aspx?tid='+tid+"&type=4&cid="+cid;
    return false;
}
//评论字符数检测
function jcomment()
{
    var length=document.getElementById("t_comment").value.length;
    if(length<6 || length>2000)
    {
后面还有 323 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。