资讯   |   开发   |   选机中心   |   产品大全 | IBM | 惠普 | 联想 | 戴尔 | 苹果 | 神舟
更多: | 华硕 | 明基 | 方正 | 紫光 | TCL | 夏新 | 联宝 | 宏碁 | 七喜 | 长城 | 清华同方 | 海尔 | 三星 | 东芝 | 索尼 | 富士通 | LG | 技术 | ddnoon
当前位置:笔记本 > 软件开发 >
Advertisement
文章正文

[在线]如何让pop窗口精确显示在一个文本框上?

类型:转载   责任编辑:asp.net   日期:2007/05/23


热门软件下载:


   

文本框在一个iframe中,如何让pop窗口精确显示在一个文本框上?  
   
  代码如下  
  a.htm  
  =====================================================  
  <table   width="600"   border="1">  
  <tr   >  
  <td   width="180">占位</td>  
                  <td   height="200"   ><iframe   name="test"   id="test"   scrolling="no"   noresize   src="b.htm"   width=100%   height=100%   frameborder=0></iframe></td>  
      </tr>  
  </table>  
  =====================================================  
   
  b.htm  
  =====================================================  
  <script>  
  oPopup   =   window.createPopup();  
  function   createPop(obj){  
          var   oPopBody   =   oPopup.document.body  
          oPopBody.style.backgroundColor   =   "lightyellow";  
          oPopBody.style.border   =   "solid   black   1px";  
          oPopBody.innerHTML   =   test;  
          //下面代码在iframe中不能精确定位   请忙帮   看看  
          oPopup.show(window.screen,   window.screenLeft,300,   200);  
  }  
  </script>  
  <p>占位</p>  
  <p><input   name="b"   type="text"   id="b"   onClick="test(this)"></p>  
  =====================================================  
   
   
   
  多谢大家了

网友回答:

发表者:haofengfu

恭喜,楼主只好散分了。赫赫

发表者:cybernaute

接分

发表者:micker

恭喜楼主了,接分!

发表者:csdntzg

恭喜楼主了,也学习一下

发表者:yiyioo

哈哈  
  学习加接分喽!~!  
   
 

发表者:blestcc

学习楼主的代码去了

发表者:Holliet

接分学习ing!


 

 
热门推荐笔记本: IBM笔记本
相关文章:
webmaster:popbb@126.com   最佳浏览:1024X768 MSIE
©2007 popbb.net All Rights Reserved