yuesu/Comja/upfun.js

(开头部分) 4KB

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

 function parentcfm(str, picid) {
        var imgstr = '<img src="' + webd + str  + '" alt=""  />';
        upinfoshow();
        try {
          //  InsertContent(imgstr); 
         }
        catch (Error) {
            alert("插入图片错误:" + Error.description);
        }
        finally { 
        }       
        //给picid_txt赋值
        var picid_txt = "#picid_txt";
        var picids = $(picid_txt).prop("value");
        if (picids == "" || picids == undefined) {
            picids = picid + ":" + str + ":"; 
        }
        else
            picids += "," + picid + ":" + str + ":"; 
        $(picid_txt).val(picids); //赋值完
        
        //以下显示信息
        var count = parseInt(document.getElementById("piccount").innerHTML);
        count++;
        document.getElementById("piccount").innerHTML = count; 
       // $("#picinfo").append("<li>图片编号: <span style='color:red'>" + picid + "</span>  <a href='javascript:void(0);' onclick='insertpic(\"" + picid + "\",\"" + str + "\");'>插入</a> <a href='javascript:void(0);' onclick='delfun(" + picid + ",this);'>删除</a></li>");
	   $("#picinfo").append("<li>图片编号: <span style='color:red'>" + picid + "</span> <img src='" + webd + str  +"' style='width:50px;' width='50' height='50' alt='' /> <a href='javascript:void(0);' onclick='delfun(" + picid + ",this);'>删除</a></li>");
        
        
    }
    function upinfoshow() { $("#Uppic").css("display", ""); }

    function insertpic(picid,str,des) {
        if (des == "")
        {
         des=document.getElementById("picname_" + picid).value;
         if (des == "图片说明")
             des = "";
        }
        var imgstr = '<img src="' + str + '" alt="' + des + '"  />';
        InsertContent(imgstr);
    }
    //以下为删除图片
    function delfun(picid, obj) {
        if (confirm('确实要删除吗?')) {
            var count = parseInt(document.getElementById("piccount").innerHTML);
            count--;
            var picid_txt = "#picid_txt";
            var picids = $(picid_txt).prop("value");
            $.ajax({
                type: "POST",
                url: webd+"s/delarticlepic",
                dataType: "html",
                data: { "p": "" + picid + "", "userid": "" + userid + "" }, //p,ps传输的参数
                success: function(html) {
                    if (html != "0") {
                        $(obj).parent().remove();
                        document.getElementById("piccount").innerHTML = count;
                        reduceid(picid);
                    }
后面还有 46 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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