| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 691 人关注过本帖
标题:关于自定义title??
只看楼主 加入收藏
fcweb
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2005-9-6
收藏
 问题点数:0 回复次数:0 
关于自定义title??
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>自定义title - 51windows.net</title> </head> <body> <center> <span title="欣赏美不应该是一种痛苦 Love You Forever">爱我的人已经远去,只有自己照顾自己</span><br><br> <span title="<marquee style='width:100px;'>[url]www.51windows.net</marquee>[/url]" altbg="red" altcolor="yellow" altborder="yellow">滚动 字幕</span><br><br> <span title="<img src='' border='0'>" altbg="#F7F7F7" altcolor="#999999" altborder="#CCCCCC">图片</span><br><br> <span title="<i style='font-size:24pt;font-family:verdana;'>[url]www.51windows.net</i>[/url]" altbg="green" altcolor="yellow" altborder="darkgreen">大字体</span><br><br> <div style="display:none;border:1px solid #000000;background-color:#FFFFCC;font-size:12px;position:absolute;padding:2;" id=altlayer></div> <SCRIPT LANGUAGE="JavaScript"> <!-- document.body.onmousemove=quickalt; document.body.onmouseover=getalt; document.body.onmouseout=restorealt; var tempalt=''; function getalt(){ if(event.srcElement.title && (event.srcElement.title!='' || (event.srcElement.title=='' && tempalt!=''))){ altlayer.style.left=event.x; altlayer.style.top=event.y+20; altlayer.style.display=''; tempalt=event.srcElement.title; tempbg=event.srcElement.altbg; tempcolor=event.srcElement.altcolor; tempborder=event.srcElement.altborder; event.srcElement.title=''; altlayer.innerHTML=tempalt; if (typeof(tempbg)!="undefined"){altlayer.style.background=tempbg}else {altlayer.style.background="infobackground"} if (typeof(tempcolor)!="undefined"){altlayer.style.color=tempcolor}else {altlayer.style.color=tempcolor="infotext"} if (typeof(tempborder)!="undefined"){altlayer.style.border='1px solid '+tempborder;}else {altlayer.style.border='1px solid #000000';} } } function quickalt(){ if(altlayer.style.display==''){ altlayer.style.left=event.x; altlayer.style.top=event.y+10; } } function restorealt(){ event.srcElement.title=tempalt; tempalt=''; altlayer.style.display='none'; } //--> </SCRIPT>

上面的代码是可以解决title的自定问题 请问如何要表格的<tr>中也可以解决呢??

搜索更多相关主题的帖子: title span yellow head 
2005-10-10 16:52
快速回复:关于自定义title??
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.016144 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved