• 点击购物车弹出提示层


    * 点击购物后弹出提示层
    * 参数 cartinfo:购物车信息
    */
    function openDiv_ecshop(cartinfo)
    {
    var _id = "speDiv";
    var m = "mask";
    if (docEle(_id)) document.removeChild(docEle(_id));
    if (docEle(m)) document.removeChild(docEle(m));
    //计算上卷元素值
    var scrollPos;
    if (typeof window.pageYOffset != 'undefined')
    {
    scrollPos = window.pageYOffset;
    }
    else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat')
    {
    scrollPos = document.documentElement.scrollTop;
    }
    else if (typeof document.body != 'undefined')
    {
    scrollPos = document.body.scrollTop;
    }
    var i = 0;
    var sel_obj = document.getElementsByTagName('select');
    while (sel_obj[i])
    {
    sel_obj[i].style.visibility = "hidden";
    i++;
    }
    // 新激活图层
    var newDiv = document.createElement("div");
    newDiv.id = _id;
    newDiv.style.position = "absolute";
    newDiv.style.zIndex = "10000";
    newDiv.style.width = "289px";
    newDiv.style.height = "120px";
    newDiv.style.top = "-120px";
    newDiv.style.left = "1px";
    newDiv.style.overflow = "hidden";
    newDiv.style.background = "#FFF";
    newDiv.style.border = "0px solid #59B0FF";
    newDiv.style.padding = "0px";
    //生成层内内容
    newDiv.innerHTML = '<div style="text-align:center;height:120px;line-height:25px;289px;background:url(/data/images/div_bg.gif) no-repeat 0 0;overflow:hidden;"><table width="280px" cellpading=0 cellspacing=0 align=center ><th style="height:30px;line-height:30px;text-align:right;"><a href="javascript:cancel_div_ecshop()" ><img src="/data/images/div_close.gif" style="margin:5px 10px;"></a></th><tr><td align=center ><img src="/data/images/div_hs.gif" align=absmiddle> <font style="font-size:15px;font-weight:bold;">该商品已成功放入购物车</font><br>'+cartinfo +'<br><a href="javascript:cancel_div_ecshop()"><<继续购物</a> <a href="flow.php"> <img src="/data/images/div_gwc.gif" align=absmiddle></a></td></tr>';
    newDiv.innerHTML += '<tr><td align=center></td></tr></table></div>';
    document.getElementById('gwc').appendChild(newDiv);


    }

  • 相关阅读:
    sharepoint 2007 升级到 sharepoint 2013
    sharepoint 2010中启用RBS及所遇问题
    sharepoint 读取文件夹中所有的数据
    脚本设置ip&自动获取ip
    window 2008 r2 每隔一小时都要重启一次解决办法
    sharepoint 弹出框
    sharepoint powershell 根据报错的GUID查询错误
    java中switch选择结构
    mysql查看表字段相关信息
    mac系统 -postman发送http请求
  • 原文地址:https://www.cnblogs.com/aivnfjgj/p/7105242.html
Copyright © 2020-2023  润新知