| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 391 人关注过本帖
标题:asp循环出来记录,点击一条弹出层,怎么向层传递参数?
只看楼主 加入收藏
ajy88888888
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2023-8-3
收藏
 问题点数:0 回复次数:0 
asp循环出来记录,点击一条弹出层,怎么向层传递参数?
asp循环出来记录,点击一条弹出层,怎么向层传递参数?

<input type=button name=popBox value=入库 onclick=""popBox()"">

 <style>
        /*背景层*/
        #popLayer {
            display: none;
            background-color: #B3B3B3;
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            z-index: 10;
            -moz-opacity: 0.8;
            opacity:.80;
            filter: alpha(opacity=80);/* 只支持IE6、7、8、9 */
        }
 
        /*弹出层*/
        #popBox {
            display: none;
            background-color:#F8F8F8;
            z-index: 11;
            width: 300px;
            height: 100px;
            position:fixed;
            top:0;
            right:0;
            left:0;
            bottom:0;
            margin:auto;
            text-align: center;
        }
 
        #popBox .close{
            text-align: right;
            margin-right: 5px;
            background-color: #B3B3B3 ;
        }
 
        /*关闭按钮*/
        #popBox .close a {
            text-decoration: none;
            color: #2D2C3B;
        }
 
    </style>
<script>
    /*点击弹出按钮*/
    function popBox() {
        var popBox = document.getElementById("popBox");
        var popLayer = document.getElementById("popLayer");
        popBox.style.display = "block";
        popLayer.style.display = "block";
        console.log(i);
    };
 
    /*点击关闭按钮*/
    function closeBox() {
        var popBox = document.getElementById("popBox");
        var popLayer = document.getElementById("popLayer");
        popBox.style.display = "none";
        popLayer.style.display = "none";
    }
</script>

/**********弹出的层,物料编码怎么接收到循环中的记录值?
<div id="popBox">
    <div class="close">
        <a href="javascript:void(0)" onclick="closeBox()">关闭</a>
    </div>
    <div class="content">
        <form method="POST" action="?"><br>物料编码:<%=Request("cmobile")%><br>入库数量:<input type="text" name="T1" size="6"> <input type="submit" value="提交" name="B1"></form>
        
</div>
</div>
<div id="mjs:tip" class="tip" style="position:absolute;left:0;top:0;display:none;"></div>
搜索更多相关主题的帖子: style div 弹出 点击 display 
2023-08-03 23:29
快速回复:asp循环出来记录,点击一条弹出层,怎么向层传递参数?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.025945 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved