hczt/imagShow.aspx

(开头部分) 4KB

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

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="imagShow.aspx.cs" Inherits="hczt_imagShow" %>

<!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">
<head id="Head1" runat="server">
    <title>图片集锦</title>
    <link rel="stylesheet" type="text/css" href="../css/hczt.css">
    <script language=javascript type="text/javascript" src="../js/jquery.js"></script>
    <script>

        var i_length = 0;
        var i_current = 0;
        
        function setimginfo() 
        {
            $("#myh1").text(jsonmsg[i_current].title);
            $("#content").text(jsonmsg[i_current].Intro);
            $("#imgcount").text(i_length + "/" + parseInt(i_current + 1));
            document.getElementById("imgshow").src = jsonmsg[i_current].imageUrl;
        }
        $(document).ready(function() {
            $.ajax(
                {
                    type: "post",
                    url: "imagShow.aspx/getPic",
                    data: "{}",
                    beforeSend: function(xhr) 
                    {
                        xhr.setRequestHeader("Content-type", "application/json; charset=utf-8");
                    },
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    cache: false,
                    success: function(msg, status) 
                    {
                        if (msg != "") 
                        {
                        
                            jsonmsg = eval(msg);
                            if ($.browser.msie) 
                            {
                                i_length = jsonmsg.length - 1;
                            }
                            else 
                            {
                                i_length = jsonmsg.length;
                            }
                                $("#myh1").text(jsonmsg[i_current].title);
                                $("#content").text(jsonmsg[i_current].Intro);
                                $("#imgcount").text(i_length + "/" + parseInt(i_current + 1));
                                document.getElementById("imgshow").src = jsonmsg[i_current].imageUrl;

                            $("#preimg").click(function() 
                            {
                                if (i_current <= 0) 
                                {
                                    i_current = i_length - 1;
                                    setimginfo();
                                }
后面还有 64 行代码,购买后查看完整代码

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

AI 解读

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

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