求这样效果的比较好的解决方案

bineon 2003-08-20 09:05:16
http://www.rongshuxia.com/rss/rellist.rs?refcid=8216
当鼠标放在标题上时候有具体显示。

请提供好的解决方案!

问题解决马上结帐
...全文
51 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
bineon 2003-08-22
  • 打赏
  • 举报
回复
我有好的办法了,在经典论坛找到的!
luok 2003-08-21
  • 打赏
  • 举报
回复
我想,你也许是想要动网论坛那个效果吧,去WWW.DVBBS.NET偷它的代码,呵呵.
bineon 2003-08-21
  • 打赏
  • 举报
回复
to myblessu(寒飞) 就是没有解决才问的,再说80分也不是这么简单的答案
to ruir() 这样显然不行,title不是那样的结果,必须借用js,问题是js不会用
to wanghr100(灰豆宝宝.net) 不错的效果,但是我不是要这个,因为这个代码我用过,效果不好。

情大家继续帮助我!
wanghr100 2003-08-21
  • 打赏
  • 举报
回复
<script>
//***********默认设置定义.*********************
tPopWait=50;//停留tWait豪秒后显示提示。
tPopShow=5000;//显示tShow豪秒后关闭提示
showPopStep=20;
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: #F8F8F5;color:#000000; border: 1px #000000

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 href="http://www.cnlk.com" title="灰豆宝宝.net" target="_blank">灰豆宝宝.net</a>
dos2000 2003-08-21
  • 打赏
  • 举报
回复
用这个吧,很经典,代码也非常清晰,全都在一个叶面里

http://leo.liaobu.net/date.htm
bineon 2003-08-21
  • 打赏
  • 举报
回复
ding
bineon 2003-08-21
  • 打赏
  • 举报
回复
to luok(罗开) :不是这样的效果
效果如下:
http://www.rongshuxia.com/rss/rellist.rs?refcid=8216
当鼠标放在标题上时候有具体显示。

ruir 2003-08-20
  • 打赏
  • 举报
回复
<a target="_blank" href="#" title="... 开校那天,秦村的人们在校园门口刨了一个大坑,将那死去的树,像一个巨大的碑似的立在那里。不过谁也没有料到,那树居然会在那年的秋天长出了几片绿叶。"><font size=1 color=#AA0000>拯救树</font></a>
ruir 2003-08-20
  • 打赏
  • 举报
回复
<a target="_blank" href="#" alt="... 开校那天,秦村的人们在校园门口刨了一个大坑,将那死去的树,像一个巨大的碑似的立在那里。不过谁也没有料到,那树居然会在那年的秋天长出了几片绿叶。 ">拯救树 <font size=1 color=#AA0000>alt</font></a></span>
主要是alt
myblessu 2003-08-20
  • 打赏
  • 举报
回复
你盗用他的代码不就行了?

61,112

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧