社区
JavaScript
帖子详情
谁能帮我实现这样的效果,可能比较简单!!!!!!!!
comnetorgcn
2003-07-01 04:55:21
表格的内容动态从数据库中取出,要实现:
默认只显示表格中的前8个字符,当鼠标指到单元格时,用一个小的浮动窗口显示全部内容,且浮动窗口的位置随鼠标的位置而定。鼠标离开后,窗口自动消失
谁能提供点线索,最好能有可参考的代码,或者提供已实现此功能的网页也行,谢谢
...全文
57
7
打赏
收藏
谁能帮我实现这样的效果,可能比较简单!!!!!!!!
表格的内容动态从数据库中取出,要实现: 默认只显示表格中的前8个字符,当鼠标指到单元格时,用一个小的浮动窗口显示全部内容,且浮动窗口的位置随鼠标的位置而定。鼠标离开后,窗口自动消失 谁能提供点线索,最好能有可参考的代码,或者提供已实现此功能的网页也行,谢谢
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
7 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
comnetorgcn
2003-07-01
打赏
举报
回复
多谢,结帐
gq
2003-07-01
打赏
举报
回复
<span title="悬停文字">文字</span>
<span title="悬停 文字">文字</span>
<a href="http://www.163.com" title="网易搜索引擎 要加分哟!">网易</a>
*****************************************************************************
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
</head>
<body>
<select onmouseout="hideTitle()" style="width:100" onmousemove="showTitle()">
<option>aaaaaaaaaaaaaaaaaaaaaaaaaaa</option>
<option>bbbbbbbbbbbbbbbbbbbbbbbbbbb</option>
<option>ccccccccccccccccccccccccccc</option>
</select>
<select onmouseout="hideTitle()" style="width:100" onmousemove="showTitle()">
<option>111111111111111111111111</option>
<option>22222222222222222222222</option>
<option>33333333333333333333333333</option>
</select>
<span style="display:none;position:absolute;background-color=#F8F9DF;" id=titleSpan></span>
<SCRIPT LANGUAGE="JavaScript">
<!--
function showTitle()
{
var elm = event.srcElement;
titleSpan.innerText = elm.options[elm.selectedIndex].text;
titleSpan.style.top=event.y+20
titleSpan.style.left=event.x+20
titleSpan.style.display="";
}
function hideTitle()
{
titleSpan.style.display="none";
}
//-->
</SCRIPT>
</body>
</html>
*****************************************************************
<script>
var thefont
var i=0,j=0
var thefonts=new Array()
function showit(obj){
thefont=obj
e=event.srcElement
t=e.offsetTop;
l=e.offsetLeft;
while(e=e.offsetParent){
t+=e.offsetTop;
l+=e.offsetLeft;}
tips.style.display=""
tips.style.left=l+event.srcElement.offsetWidth
tips.style.top=t+event.srcElement.offsetHeight
expan()
}
function hideit(){
tips.style.display="none"
tips.style.width=0
tips.style.height=0
tips.innerHTML=""
i=0
j=0
}
function showmessage(){
thefonts=thefont.split("")
addfont()
}
function addfont(){
if(j<thefonts.length){
tips.innerHTML="<font color=black>"+tips.innerText+"</font><font color=white>"+thefonts[j]+"</font>"
setTimeout("addfont()",50)
}
j++
}
function expan(objs){
if(i<150){
tips.style.width=i*2
tips.style.height=i*1
setTimeout("expan()",10)
}
else
if(i==150)
showmessage()
i++
}
</script>
<style type=text/css>
a {font-size:14px;color:#666666;font-family:"tahoma";text-decoration: none}
span{font-size:12px;color:black;font-family:Verdana;border:1 solid gray}
</style>
<a href="#" onmouseover="showit('123 123 123 123 123 123 123 123 123 12a3 123 123 123 123 123 123.')" onmouseout=hideit()>123</a>
<span id=tips style="position:absolute;width:0px;height:0px;background:#cccccc;display:none;filter: Alpha(opacity=60)"></span>
gq
2003-07-01
打赏
举报
回复
给你个些代码自己研究。
<script>
tPopWait=50;tPopShow=7000;showPopStep=2;popOpacity=99;sPop=null;curShow=null;tFadeOut=null;tFadeIn=null;tFadeWaiting=null;
document.write("<style type='text/css'id='defaultPopStyle'>");
document.write(".cPopText { background-color: #e8f4ff;color:#000000; border: 1px #0099cc solid;font-color: font-size: 12px; padding-right: 4px; padding-left: 4px; height: 20px; padding-top: 2px; padding-bottom: 2px; filter: Alpha(Opacity=0)}");
document.write("</style>");
document.write("<div id='dypopLayer' style='position:absolute;z-index:1000;' class='cPopText'></div>");
function showPopupText(){
var o=event.srcElement;MouseX=event.x;MouseY=event.y;
if(o.alt!=null && o.alt!=""){
o.dypop=o.alt;o.alt=""
};
if(o.title!=null && o.title!=""){
o.dypop=o.title;o.title=""
};
if(o.dypop!=sPop){
sPop=o.dypop;
clearTimeout(curShow);
clearTimeout(tFadeOut);
clearTimeout(tFadeIn);
clearTimeout(tFadeWaiting);
if(sPop==null || sPop==""){
dypopLayer.innerHTML="";
dypopLayer.style.filter="Alpha()";
dypopLayer.filters.Alpha.opacity=0;
}
else {
if(o.dyclass!=null) popStyle=o.dyclass
else
popStyle="cPopText";
curShow=setTimeout("showIt()",tPopWait);
}
}
}
function showIt(){
dypopLayer.className=popStyle;
dypopLayer.innerHTML=sPop;
popWidth=dypopLayer.clientWidth;
popHeight=dypopLayer.clientHeight;
if(MouseX+12+popWidth>document.body.clientWidth)
popLeftAdjust=-popWidth-24
else
popLeftAdjust=0;
if(MouseY+12+popHeight>document.body.clientHeight)
popTopAdjust=-popHeight-24
else
popTopAdjust=0;
dypopLayer.style.left=MouseX+12+document.body.scrollLeft+popLeftAdjust;
dypopLayer.style.top=MouseY+12+document.body.scrollTop+popTopAdjust;
dypopLayer.style.filter="Alpha(Opacity=0)";
fadeOut();
}
function fadeOut(){
if(dypopLayer.filters.Alpha.opacity<popOpacity){
dypopLayer.filters.Alpha.opacity+=showPopStep;
tFadeOut=setTimeout("fadeOut()",1);
}
else{
dypopLayer.filters.Alpha.opacity=popOpacity;
tFadeWaiting=setTimeout("fadeIn()",tPopShow);
}
}
function fadeIn(){
if(dypopLayer.filters.Alpha.opacity>0) {
dypopLayer.filters.Alpha.opacity-=1;
tFadeIn=setTimeout("fadeIn()",1);
}
}
document.onmouseover=showPopupText;
</script>
<a TITLE="快呀 <br> <br>发布时间: 2002/10/13 08:52pm <br>最后回复: 被骗了。。。。。。 ">快呀</a>
comnetorgcn
2003-07-01
打赏
举报
回复
用title不能分行,如果内容较多时,显示效果不太好,有没有其他办法?
gq
2003-07-01
打赏
举报
回复
看看上面的代码就应该有所认识了。。title的内容指的是移动到上面,显示的内容,表格中内容,就看自己咯。。想显示多少就取多少来显示。
comnetorgcn
2003-07-01
打赏
举报
回复
To: gq(游子)
能再说清楚点吗
gq
2003-07-01
打赏
举报
回复
<td width="50%" ><span title="<%=test%>"> <%=left(test,8)%></span></td>
便民微
帮
微信号推广
效果
好的微
帮
号有哪些看看这个
本文介绍了一种通过自媒体平台微
帮
号进行广告推广的方法,强调了本地粉丝的重要性,以及如何利用经济实惠的方式达到意想不到的推广
效果
。文章推荐了wsh00518作为推广选择,提到了清理广告粉,确保粉丝质量。
实现
比较简单
的轮播图
效果
本文详细介绍了一种使用HTML、CSS和JavaScript
实现
轮播图的方法,包括处理图片切换、过渡动画及小点控制等功能,适用于前端开发人员学习和参考。
Unity Shader
效果
实现
汇总
本文汇总了Unity中
实现
的各种Shader
效果
,包括Edge+Bloom的边缘高光、outline+stencil+bloom的轮廓背光、Sketch草图
效果
、局部模糊/毛玻璃
效果
、体积光、溶解、移动光和冰格子
效果
。详细介绍了每个
效果
的
实现
思路和技术要点,如边缘检测、高光模糊、Stencil过滤等,并提供了相关资源链接和示例图片。
探索无限
可能
:RecyclerView
实现
的画廊
效果
该博客介绍了基于RecyclerView
实现
的画廊
效果
项目。此项目核心技术是RecyclerView,结合自定义布局管理器和动画
效果
,
实现
流畅展示。具有灵活性、性能优化等特点,适用于图片浏览器、产品展示等场景,还提供详细集成步骤,方便开发者使用。
作业
帮
&小猿搜题竞品分析报告
本文对比分析了作业
帮
和小猿搜题两款K12在线教育APP,从用户体验、战略定位、商业模式等方面深入探讨,指出双方优势与改进建议。
JavaScript
87,988
社区成员
224,683
社区内容
发帖
与我相关
我的任务
JavaScript
Web 开发 JavaScript
复制链接
扫一扫
分享
社区描述
Web 开发 JavaScript
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章