搜索结果

×

搜索结果将在这里显示。

✨ HE网站模版代码调用

头部格式:

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#Include virtual="/inc/config.asp" -->
<%
if Application("BuildHTML") = "" then lib.Refresh(3)
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

</html>

新闻部分:

列表里面替换3个标签内容:<ul> <li> <p> 3部分

<!--------新闻开始-------------->
    <ul>  

        <%
        sql=myLib.GetPageSql("Sp_article","ID",6,page,1,"")
        set rs = lib.execute(sql,false)
        if not rs.eof  then
        %>
        <% do while not rs.eof %>     

            <li>

                <p class="title">【新闻】<a href="/Html/Article_<%=rs("id")%>.Html" target="_blank">【<%=rs("title")%> 】</a></p>
                <p class="time"><%=FormatDateTime(rs("postdate"),2)%></p>

            </li>

        <%
        rs.movenext
        loop
        rs.close()
        end if
        %>        

    </ul>
<!--------新闻结束-------------->

活动部份:

<!--------活动开始-------------->
    <ul>

        <%
        sql=myLib.GetPageSql("Sp_pic","ID",6,page,1,"")
        set rs = lib.execute(sql,false)
        if not rs.eof  then
        %>
        <% do while not rs.eof %>

            <li>

                <p class="title">【活动】<a href="/Html/play_<%=rs("id")%>.Html" target="_blank">【<%=rs("title")%> 】</a></p>
                <p class="time"><%=FormatDateTime(rs("postdate"),2)%></p>

            </li>

        <%
        rs.movenext
        loop
        rs.close()
        end if
        %> 

    </ul>
<!--------活动结束-------------->

游戏设置:

<div>

        <%
        sql="select * from [Sp_About] where type=3"
        set rs = lib.execute(sql,false)
        if not rs.bof and not rs.eof then
        %>
        <%=rs("contact")%>
        <%
        end if
        rs.close
        %>

</div>

域名检查:

如果非指定域名,网站会弹窗并且变黑白

<script>
        if (!window.location.hostname.endsWith("lisai.cc")){
            window.document.write('<style>html {-webkit-filter: grayscale(100%) !important;-moz-filter: grayscale(100%) !important;-o-filter: grayscale(100%) !important;filter: grayscale(100%) !important;filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1) !important;}</style>')
            alert("\n由于您访问的域名不正确,因此系统处于演示模式\n\n解决办法:请您在lisai.cc域名下访问即可恢复正常!");
        }
    setInterval(function () {
        if (!window.location.hostname.endsWith("lisai.cc")){
            window.document.write('<style>html {-webkit-filter: grayscale(100%) !important;-moz-filter: grayscale(100%) !important;-o-filter: grayscale(100%) !important;filter: grayscale(100%) !important;filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1) !important;}</style>')
            alert("\n由于您访问的域名不正确,因此系统处于演示模式\n\n解决办法:请您在lisai.cc域名下访问即可恢复正常!");
        }
    }, 60 * 1000)
</script>