⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pagetop.ascx

📁 小说网(c#)版源程序,学习还是不错滴,大家可以下载下来看看.
💻 ASCX
字号:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="pagetop.ascx.cs" Inherits="_pagetop" %>
<script src="pagetop.js" type="text/javascript"></script>
<div style="width:940px;text-align:center;">
    <div style="width:920px;background-color:#ff9c00; height:30px; color:White;">
        <div id="islogin" style="float:left; width:560px; text-align:left; margin-top:5px; visibility:hidden;">
            <div class="pagetop_img">&nbsp;用户名&nbsp;<input id="Text_User" name="Text_User" type="text" class="login_inputtext" maxlength="10" /></div>
            <div class="pagetop_img">&nbsp;密码&nbsp;<input id="Text_Password" name="Text_Password" type="password" class="login_inputtext" maxlength="10" /></div>
            <div class="pagetop_img">&nbsp;验证码&nbsp;<input id="Text_Validate" name="Text_Validate" type="text" class="login_inputtext" style="width:30px;" maxlength="3" /></div>
            <div class="pagetop_img" style="margin-top:2px;">&nbsp;<img alt="点击刷新" src="validate.aspx?time=' + Math.random();" style="cursor:pointer;" onclick="this.src='validate.aspx?time=' + Math.random();" /></div>
            <div class="pagetop_img"><input id="Check_Box" name="Check_Box" value="save" type="checkbox" />记录cookie&nbsp;&nbsp;</div>
            <div class="pagetop_img">&nbsp;<asp:Button ID="Button_Submit" runat="server" Text="登陆" style="border:black 1px solid; height:20px;" OnClientClick="return login_judge();" OnClick="Button_Submit_Click" /></div>
            <div class="pagetop_img">&nbsp;&nbsp;<input id="Button2" type="button" value="注册" style="border:black 1px solid; height:20px;" onclick="javascript:location.href='user/register.aspx'" /></div>
            <div class="pagetop_img">&nbsp;&nbsp;<input id="Button4" type="button" value="取回密码" style="width:60px;border:black 1px solid; height:20px;" onclick="javascript:location.href='user/getpass.aspx'" /></div>
        </div>
        <div style="float:left; width:360px; text-align:right; margin-top:8px;">
            <a href="system/suggest.xml" style="color:White;" target="_blank">留言</a>&nbsp;&nbsp;&nbsp;
            <a href="cookie.aspx" style="color:White;">我的Cookie书库</a>&nbsp;&nbsp;&nbsp;
            <a onclick="return clearcookie();" href="" style="color:White;">清空Cookie书库</a>&nbsp;&nbsp;&nbsp;
            <a href="#;" onclick="this.style.behavior='url(#default#homepage)'; this.setHomePage('http://www.dzxsw.com/');" style="color:White;">设为首页</a>&nbsp;&nbsp;&nbsp;
            <a href="#;" onclick="external.AddFavorite('http://www.dzxsw.com','大众小说网');" style="color:White;">加入收藏</a>&nbsp;&nbsp;
        </div>
    </div>
    <% if (Session.Contents["username"] != null) Response.Write("<script type='text/javascript'>document.getElementById('islogin').innerHTML='&nbsp;&nbsp;&nbsp;&nbsp;" + Session.Contents["username"].ToString() + "欢迎回来&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"sql.aspx\" style=\"color:white;\">我的书窝</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"user/exit.aspx\" style=\"color:white;\">退出</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a id=\"novelupdate\" href=\"sql.aspx?isupdate=true\" style=\"color:blue;visibility:hidden;\"><img src=\"image/newchapter.gif\" alt=\"\" />书窝里有小说更新,快去看看吧!</a>';</script>"); Response.Write("<script type='text/javascript'>document.getElementById('islogin').style.visibility='visible';</script>"); %>
    <div style="width:920px; ">
        <div style=" height:60px;">
            <div style="float:left; width:295px; height:60px; background-image:url(image/logo.jpg);"></div>
            <div style="float:left; width:616px; height:60px; margin-top:4px; text-align:right;">
                <script type="text/javascript"><!--
                google_ad_client = "pub-7142898498434570";
                google_ad_width = 468;
                google_ad_height = 60;
                google_ad_format = "468x60_as";
                google_ad_type = "text_image";
                google_ad_channel = "";
                google_color_border = "336699";
                google_color_bg = "FFFFFF";
                google_color_link = "0000FF";
                google_color_text = "000000";
                google_color_url = "008000";
                //-->
                </script>
                <script type="text/javascript"
                  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                </script>
            </div>
        </div>
        <div style="text-align:right; margin-top:6px; background-image:url(image/menu.gif); height:25px; ">
        <div style="margin-top:5px; margin-left:10px;">
            <a href="default.aspx" style="color:white;">首页</a> ┊ 
            <a href="novellist.aspx?boardid=1" style="color:white;">玄幻奇幻</a> ┊ 
            <a href="novellist.aspx?boardid=2" style="color:white;">武侠仙侠</a> ┊ 
            <a href="novellist.aspx?boardid=3" style="color:white;">都市言情</a> ┊ 
            <a href="novellist.aspx?boardid=5" style="color:white;">历史军事</a> ┊ 
            <a href="novellist.aspx?boardid=7" style="color:white;">游戏竞技</a> ┊ 
            <a href="novellist.aspx?boardid=9" style="color:white;">科幻灵异</a> ┊ 
            <a href="novellist.aspx?boardid=11" style="color:white;">美文同人</a>&nbsp;&nbsp;
            </div>
        </div>
    </div>
    <div style="text-align:right; height:25px; margin-right:10px; margin-bottom:8px; margin-top:8px;">
        <div id="visibility" style="float:left; width:200px; text-align:left; visibility:hidden; color:Black;"><div style="margin-left:20px;background-color:Yellow; height:25px; width:150px;border:#FF9933 1px solid;"><div style="float:left;margin-top:3px;">&nbsp;&nbsp;<img src="image/loading.gif" alt="" /></div><div style="float:left;margin-top:3px; font-weight:bold;">&nbsp;正在处理您的请求...</div></div></div>
        <div style="float:left; width:400px; margin-top:6px; text-align:right;">【作品·搜索】 关键字:</div>
        <div style="float:left;width:320px;">
            <input id="Text_Search" type="text" value="请输入" onfocus="judge();" class="inputtext" maxlength="20" />&nbsp;&nbsp;
            <select id="Select_Type"><option selected="selected" value="novel">按书名</option><option value="author">按作者</option></select>
            <input id="Button1" type="button" value=" 搜 索 " onclick="return searchinfo();" />
        </div>
    </div>
</div>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -