文本框的提示效果怎么做啊,进来看看吧!! <input type="button" title="你就直接写上你的注释注释得了" value="hello"> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <object id="HHC" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"></object><input type="text" onclick= HHC.TextPopup("看见了吗?","楷体",5,5,100,3000);>是这种吗?现学现卖! redblues() ,你的方法用了,就不能输入了,而且位置也不是很好meizz(梅花雨) ,我需要的是文本框,不是按钮 TOmeizz(梅花雨) ,你的方法可行,但鼠标需要停留一段时间一般用户看到TEXTBOX就会点进去了,不会在上面停留,所以你的方法不是很好啊最好有ONMOUSEDOWN事件激发 <html><head><title>层与按钮对齐</title></head><body><div align=left><table border=1><tr><td align=center height=50 width=200> <input type=button value=ok onmouseover="cc(this)"></td> <td align=center height=50 width=200> <input type=button value=ok onmouseover="cc(this)"></td> <td align=center height=50 width=200> <input type=button value=ok onmouseover="cc(this)"></td></tr><tr><td align=center height=50 width=200> <input type=button value=ok onmouseover="cc(this)"></td> <td align=center height=50 width=200> <input type=button value=ok onmouseover="cc(this)"></td> <td align=center height=50 width=200> <input type=button value=ok onmouseover="cc(this)"></td></tr><tr><td align=center height=50 width=200> <input type=button value=ok onmouseover="cc(this)"></td> <td align=center height=50 width=200> <input type=button value=ok onmouseover="cc(this)"></td> <td align=center height=50 width=200> <input type=button value=ok onmouseover="cc(this)"></td></tr></table><div><div id=pop style="position:absolute;width:100;height:50;z-index:99;display:none"><table border=0 bgcolor=#FF0000><tr><td align=center>层里文字</td></tr></table></div><script language=javascript>function cc(tt){ var daps = document.all.pop.style; var ttop = tt.offsetTop; //TT控件的定位点高 var thei = tt.clientHeight; //TT控件本身的高 var tleft = tt.offsetLeft; //TT控件的定位点宽 var ttyp = tt.type; //TT控件的类型 while (tt = tt.offsetParent){ttop+=tt.offsetTop; tleft+=tt.offsetLeft;} daps.top = (ttyp=="image")? ttop+thei : ttop+thei+6; //层的 Y 坐标 daps.left = tleft + 1; //层的 X 坐标 daps.display = ""; //层显示}</script></body></html> 最好添加一下;ONMOUSEDOWN时,提示隐藏 <input type=button value=ok onmouseover="cc(this)" onmouseout="document.all.pop.style.display='none'"> jqGrid搜索框内表单默认值? js框架如何改变他的移动速度? 如何实现跨域访问读xml 很难的问题!如何利用js或者vbscript或者html获取客户端的ip地址?? Javascript如何关掉一个正在循环的function javascript支持对象的序列化吗? 关于iframe自适应高度的问题 关于在框架中引用了不同机器上的网页的互相操作问题?急 !!!activex控件与下拉框的问题!!! 框架内刷新问题,请问怎么解决,高手来看看,我很急!!!!!!!! 我的问题(一) RegExp函数是什么意思,主要做什么用的?请指教,急!!!
<input type="text" onclick= HHC.TextPopup("看见了吗?","楷体",5,5,100,3000);>
是这种吗?现学现卖!
meizz(梅花雨) ,我需要的是文本框,不是按钮
<div align=left><table border=1>
<tr><td align=center height=50 width=200>
<input type=button value=ok onmouseover="cc(this)"></td>
<td align=center height=50 width=200>
<input type=button value=ok onmouseover="cc(this)"></td>
<td align=center height=50 width=200>
<input type=button value=ok onmouseover="cc(this)"></td></tr>
<tr><td align=center height=50 width=200>
<input type=button value=ok onmouseover="cc(this)"></td>
<td align=center height=50 width=200>
<input type=button value=ok onmouseover="cc(this)"></td>
<td align=center height=50 width=200>
<input type=button value=ok onmouseover="cc(this)"></td></tr>
<tr><td align=center height=50 width=200>
<input type=button value=ok onmouseover="cc(this)"></td>
<td align=center height=50 width=200>
<input type=button value=ok onmouseover="cc(this)"></td>
<td align=center height=50 width=200>
<input type=button value=ok onmouseover="cc(this)"></td></tr>
</table><div><div id=pop style="position:absolute;width:100;height:50;z-index:99;display:none">
<table border=0 bgcolor=#FF0000><tr><td align=center>层里文字</td></tr></table></div><script language=javascript>
function cc(tt)
{
var daps = document.all.pop.style;
var ttop = tt.offsetTop; //TT控件的定位点高
var thei = tt.clientHeight; //TT控件本身的高
var tleft = tt.offsetLeft; //TT控件的定位点宽
var ttyp = tt.type; //TT控件的类型
while (tt = tt.offsetParent){ttop+=tt.offsetTop; tleft+=tt.offsetLeft;}
daps.top = (ttyp=="image")? ttop+thei : ttop+thei+6; //层的 Y 坐标
daps.left = tleft + 1; //层的 X 坐标
daps.display = ""; //层显示
}
</script>
</body></html>