dh20156风之石的专栏

@CSDN.net @V-EC.com @INTERNET @YOUR LIFE

杜欢ID:dh20156
41705次访问,排名2627好友24人,关注者94
向大家学习! ^_^
dh20156的文章
原创 55 篇
翻译 1 篇
转载 2 篇
评论 78 篇
dh20156风之石的公告
昵称: 风之石
位置: 中国,广东

最近评论
菜鸟:怎样获取选择的是那个值 ,怎样写
zj:如果text值 和Value值是不相同 例如 1 产品1 2 产品2 这样的话在文本框中显示的是1,2 而不是我选择的产品,还有就是我怎么知道它选择的是那个值呢?


我是个菜鸟还望高手帮我
shizhusz110:请问大哥怎么控制控件位置
jsgswjtu:D哥,能否提供思路:在已有的基础上,按拼音首字母匹配?(拼音首字母可以事先定义在数组中)
dh20156:呵呵 ^_^
文章分类
收藏
    相册
    岁月无声
    学习资源
    dh20156风之石的专栏
    风之石的MSN SPACE
    友情链接
    dh20156风之石的家乡博客(RSS)
    威驰软件、威驰社区、威驰网店的官方站点,http://www.v-ec.com/
    存档
    订阅我的博客
    XML聚合  FeedSky
    订阅到鲜果
    订阅到Google
    订阅到抓虾
    订阅到BlogLines
    订阅到Yahoo
    订阅到GouGou
    订阅到飞鸽
    订阅到Rojo
    订阅到newsgator
    订阅到netvibes

    原创 dhTipsLayer ver1.1发布收藏

    新一篇: ASP版CDONTS和Jmail发邮件实例 | 旧一篇: 春游,烧烤,钓鱼

     

    For IE,FF

    <html>
    <head>
    <style type="text/css">
     * {font-family:verdana;font-size:12px;}
     #dhtipscontent {width:300px;height:150px;background:white;border:5px solid #ddd;z-index:102;padding:5px;}
     #dhtipsdiv {background:#000;-moz-opacity:0.6;opacity:0.6;filter:alpha(opacity=60);z-index:101;border:none;}
     #dhtipsiframe {-moz-opacity:0;opacity:0;filter:alpha(opacity=0);z-index:100;border:none;}
     .tipsdiv {height:120px;overflow:auto;line-height:150%;}
     .closediv {height:25px;text-align:right;}
     .closebtn {position:relative;top:0px;right:0px;border:1px solid buttonshadow;}
    </style>
    </head>
    <body>
    <h1>show tips page</h1>
    <select id=sl>
     <option>1 show tips page</option>
     <option>2 show tips page</option>
     <option>3 show tips page</option>
    </select>
    <br/>
    <ul>
     <li>show tips page</li>
     <li>show tips page</li>
     <li>show tips page</li>
     <li>show tips page</li>
     <li>show tips page</li>
     <li>show tips page</li>
     <li>show tips page</li>
     <li>show tips page</li>
    </ul>
    <iframe src="about:blank"></iframe>
    <hr style="width:1500px;" />
    <input type=button value="show tips page 1" style="width:1500px;border:2px outset;" onclick="showtips('Tips 1:<br/>Hello,world!<br/>dhTipsLayer author:dh20156')" ID="Button1" NAME="Button1" />
    <hr style="width:1500px;" />
    <input type=button value="show tips page 2" style="width:1500px;border:2px outset;" onclick="showtips('Tips 2:<br/>Hello,world!<br/>dhTipsLayer author:dh20156')" ID="Button2" NAME="Button2" />
    <hr style="width:1500px;" />
    <ol>
     <li>show tips page</li>
     <li>show tips page</li>
     <li>show tips page</li>
     <li>show tips page</li>
     <li>show tips page</li>
     <li>show tips page</li>
     <li>show tips page</li>
     <li>show tips page</li>
    </ol>
    <br/>
    <ul>
     <li>show tips page</li>
     <li>show tips page</li>
     <li>show tips page</li>
     <li>show tips page</li>
     <li>show tips page</li>
     <li>show tips page</li>
     <li>show tips page</li>
     <li>show tips page</li>
    </ul>
    <br/>
    <ol>
     <li>show tips page</li>
     <li>show tips page</li>
     <li>show tips page</li>
     <li>show tips page</li>
     <li>show tips page</li>
     <li>show tips page</li>
     <li>show tips page</li>
     <li>show tips page</li>
    </ol>
    </body>
    </html>

    <script language="javascript" type="text/javascript">
    function showtips(tipStr){
     //dhTipsLayer:author:dh20156;
     if(document.getElementById("dhtipsiframe")==null){
      var iframe = document.createElement("IFRAME");
      iframe.id = "dhtipsiframe";
      iframe.style.position = "absolute";
      iframe.style.left = 0;
      iframe.style.top = 0;
      iframe.style.width = (document.body.scrollWidth>document.body.offsetWidth)?document.body.scrollWidth:document.body.offsetWidth;
      iframe.style.height = (document.body.scrollHeight>document.body.offsetHeight)?document.body.scrollHeight+20:document.body.offsetHeight;

      var div = document.createElement("DIV");
      div.id = "dhtipsdiv";
      div.style.position = "absolute";
      div.style.left = 0;
      div.style.top = 0;
      div.style.width = (document.body.scrollWidth>document.body.offsetWidth)?document.body.scrollWidth:document.body.offsetWidth;
      div.style.height = (document.body.scrollHeight>document.body.offsetHeight)?document.body.scrollHeight+20:document.body.offsetHeight;
      div.oncontextmenu = function(){return false}
      div.onselectstart = function(){return false}

      var div2 = document.createElement("DIV");
      div2.id = "dhtipscontent";
      div2.style.position = "absolute";
      div2.style.left = document.body.offsetWidth/2-150+document.body.scrollLeft;
      div2.style.top = document.body.offsetHeight/2-150+document.body.scrollTop;
      div2.innerHTML = "<div class=\"tipsdiv\">"+tipStr+"</div><div class=\"closediv\"><input type=\"button\" class=\"closebtn\" value=\"close\" onclick=\"document.body.style.overflow='auto';document.getElementById('dhtipsiframe').style.display='none';document.getElementById('dhtipsdiv').style.display='none';document.getElementById('dhtipscontent').style.display='none';\" /></div>";
      div2.oncontextmenu = function(){return false}

      document.body.appendChild(iframe);
      document.body.appendChild(div);
      document.body.appendChild(div2);
     }else{
      document.getElementById("dhtipsiframe").style.display = "block";
      document.getElementById("dhtipsdiv").style.display = "block";
      document.getElementById("dhtipscontent").style.display = "block";
      document.getElementById("dhtipscontent").innerHTML = "<div class=\"tipsdiv\">"+tipStr+"</div><div class=\"closediv\"><input type=\"button\" class=\"closebtn\" value=\"close\" onclick=\"document.body.style.overflow='auto';document.getElementById('dhtipsiframe').style.display='none';document.getElementById('dhtipsdiv').style.display='none';document.getElementById('dhtipscontent').style.display='none';\" /></div>";
      document.getElementById("dhtipscontent").style.left = document.body.offsetWidth/2-150+document.body.scrollLeft;
      document.getElementById("dhtipscontent").style.top = document.body.offsetHeight/2-150+document.body.scrollTop;
     }
     var l = document.body.scrollLeft;
     var t = document.body.scrollTop;
     document.body.style.overflow = "hidden";
     document.body.scrollLeft = l;
     document.body.scrollTop = t;
    }
    </script>

    发表于 @ 2007年05月19日 11:44:00|评论(loading...)|编辑

    新一篇: ASP版CDONTS和Jmail发邮件实例 | 旧一篇: 春游,烧烤,钓鱼

    评论:没有评论。

    发表评论  


    登录
    Csdn Blog version 3.1a
    Copyright © dh20156风之石