请问如何让
1<a href="#" title="<table border='0' cellpadding='0' cellspacing='0'><TR><TD>F1No</TD><TD>Title</TD><TD>Status</TD><TD>Amount</TD></TR><TR><TD colspan=2>Total Amount</TD><TD></TD><TD>0</TD></TR></table>">
2或者用其他的方法来实现这样的格式!
3谢谢了!
4---在线等待!
5\---------------------------------------------------------------
6
7系统里的提示条是没有办法显示表格的, 不过你可以用层来模拟:
8
9<a href="#" onmouseout="document.all.pop.style.display='none'" onmouseover="cc(this)">aaaaaaaa</a>
10<div id="pop" style="position:absolute;width:214;height:50;z-index:99;display:none; border: 1px solid #808080; background: #FFD780">
11<table border="1" cellpadding="2" cellspacing="0">
12<tr><td>F1No</td><td>Title </td><td>Status</td><td>Amount</td></tr>
13<tr><td colspan="2">Total Amount</td><td> </td><td>0</td></tr>
14</table>
15</div>
16<script language="javascript">
17function cc(tt)
18{
19var daps = document.all.pop.style;
20var ttop = tt.offsetTop; //TT控件的定位点高
21var tleft = tt.offsetLeft; //TT控件的定位点宽
22var ttyp = tt.type; //TT控件的类型
23while (tt = tt.offsetParent){ttop+=tt.offsetTop; tleft+=tt.offsetLeft;}
24daps.top = (ttyp=="image")? ttop+30 : ttop+30+6; //层的 Y 坐标
25daps.left = tleft + 1; //层的 X 坐标
26daps.display = ""; //层显示
27}
28</script>
29\---------------------------------------------------------------
30
31不能,你可以用层来摸拟
32给你个例子,你再改改就行了
33//***********默认设置定义.*********************
34tPopWait=50;//停留tWait豪秒后显示提示。
35tPopShow=5000;//显示tShow豪秒后关闭提示
36showPopStep=20;
37popOpacity=100;
38
39//***************内部变量定义*****************
40sPop=null;
41curShow=null;
42tFadeOut=null;
43tFadeIn=null;
44tFadeWaiting=null;
45
46document.write("<style id="defaultPopStyle" type="text/css">");
47document.write(".cPopText { background-color: #54b5e6;color:#ffffff;border: 1px #3366cc solid;padding-right: 4px; padding-left: 4px; font-size:12px;height: 16px; padding-top: 3px; padding-bottom: 1px; filter: Alpha(Opacity=0)}");
48document.write(".cPopText1 { background-color: #54b5e6;color:#ffffff;border: 1px #3366cc solid;font-size:10px;font-weight:bold;font-family:verdana;padding-right: 4px; padding-left: 4px; height: 15px; padding-top: 1px; padding-bottom: 1px; filter: Alpha(Opacity=0)}");
49document.write("</style>");
50document.write("<div class="cPopText" id="dypopLayer" style="position:absolute;z-index:1000;"></div>");
51
52
53function showPopupText(){
54var o=event.srcElement;
55MouseX=event.x;
56MouseY=event.y;
57if(o.cl!=null && o.cl!=""){o.dypop=o.cl;popStyle="cPopText1";};
58else if (o.wf!=null && o.wf!=""){o.dypop=o.wf;popStyle="cPopText";}
59if(o.dypop!=sPop) {
60sPop=o.dypop;
61clearTimeout(curShow);
62clearTimeout(tFadeOut);
63clearTimeout(tFadeIn);
64clearTimeout(tFadeWaiting);
65if(sPop==null ¦ ¦ sPop=="") {
66dypopLayer.innerHTML="";
67dypopLayer.style.filter="Alpha()";
68dypopLayer.filters.Alpha.opacity=0;
69}
70else {
71curShow=setTimeout("showIt()",tPopWait);
72}
73
74}
75}
76
77function showIt(){
78dypopLayer.className=popStyle;
79dypopLayer.innerHTML=sPop;
80popWidth=dypopLayer.clientWidth;
81popHeight=dypopLayer.clientHeight;
82if(MouseX+12+popWidth>document.body.clientWidth) popLeftAdjust=-popWidth-24
83else popLeftAdjust=0;
84if(MouseY+12+popHeight>document.body.clientHeight) popTopAdjust=-popHeight-24
85else popTopAdjust=0;
86dypopLayer.style.left=MouseX+10+document.body.scrollLeft+popLeftAdjust;
87dypopLayer.style.top=MouseY+10+document.body.scrollTop+popTopAdjust;
88dypopLayer.style.filter="Alpha(Opacity=0)";
89fadeOut();
90}
91
92function fadeOut(){
93if(dypopLayer.filters.Alpha.opacity<popopacity) dypoplayer.filters.alpha.opacity="popOpacity;" dypoplayer.filters.alpha.opacity+="showPopStep;" else="" fadein(){="" function="" if(dypoplayer.filters.alpha.opacity="" tfadeout='setTimeout("fadeOut()",1);' tfadewaiting='setTimeout("fadeIn()",tPopShow);' {="" }="">0) {
94dypopLayer.filters.Alpha.opacity-=1;
95tFadeIn=setTimeout("fadeIn()",1);
96}
97}
98document.onmouseover=showPopupText;</popopacity)></a>