- 浏览: 410654 次
- 性别:
- 来自: 广州
文章分类
- 全部博客 (174)
- ajax (2)
- java (4)
- spring (0)
- eclipse (0)
- ejb (0)
- hibernate (2)
- jsf (1)
- c# (13)
- sqlserver (12)
- oracle (1)
- ibatis (3)
- appfuse (0)
- seam (0)
- log4j (0)
- Java2Html (0)
- javascript && html && css (38)
- 英语学习 (1)
- jag (2)
- guice (0)
- warp (0)
- facelets (1)
- struts (0)
- 资源汇聚 (4)
- 打印 (2)
- 热点文章收藏 (2)
- aop/aop.net (3)
- 代码生成器 (1)
- 数据库 (1)
- 开发工具集 (1)
- Erlang (1)
- web services (1)
- acegi (2)
- 存储过程集汇 (1)
- 黑客攻防 (2)
- C/C++ (6)
- wap (1)
- 缓存 分布式 (0)
- 企业库 (3)
- 搜索引擎:Lucene (0)
- 数据安全 (1)
- uml (1)
- 项目管理 (3)
- asp (1)
- SWT/JFACE (3)
- 面试与技巧 (1)
- 程序人生 (1)
- java rcp (2)
- 软件测试 (4)
- 不同应用服务器整合 (1)
- 数据仓库 (2)
- 求职/离职 (1)
- 网站珍藏 (1)
- visual studio 插件 (2)
- IT那些事 (1)
- linux/unix (10)
- windows (1)
- javaMail (1)
- common mail (1)
- tomcat (1)
- java并发/并行 (3)
- emacs (5)
- zookeeper (1)
- hadoop (7)
- 自动运维部署 (8)
- 业界资讯 (1)
最新评论
-
ffshow2006:
有一个有毒啊
两款Access密码破解器 -
nicepulse:
太好了,正好最近我也遇到这类的问题,代理不大正常,刚开始就是重 ...
SQL Server Agent 执行SSIS失败解决方案 -
supersnake:
这个比较喜欢
5款纯div+css制作的弹出菜单(标准且无js) -
cloudgamer:
我也写过一个提示效果
javascript tooltip (网页的提示效果) -
kuchaguangjie:
顶1个,哈哈
获取页面请求参数的JS脚本
一个很不错的javascript网页提示效果的封装,个人认为style 7,8,9在实际情况最为实用
点这里看演示效果
点这里下载演示
详细分析,请阅读全文
引用
第一步
<script language="JavaScript1.2" src="js/main.js" type="text/javascript"></script>
将此写在head中
引用
第二步
<script language="JavaScript1.2" src="js/style.js" type="text/javascript"></script>
将此写在body中, 个人建议不用这种加载的形式,可把style.js解开直接写在页面中,这有一个好处就是,如果要实现动态的效果的时候可以从数据库直接读取,对其进行替换
view plaincopy to clipboardprint?
<script type="text/javascript">
var FiltersEnabled = 1 // if your not going to use transitions or filters in any of the tips set this to 0
Text[0]=["5dhome.net","Business planning software."]
Text[1]=["","<b>SimplytheBest DHTML Scripts</b><br>A collection of the best DHTML script and Javascripts on the Web."]
Text[2]=["Right","This box is right positioned."]
Text[3]=["Center","This box is center positioned."]
Text[4]=["Left","This box is left positioned."]
Text[5]=["Float","This box is float positioned at a (10,10) coordinate, it also floats with the scrollbars so it is always static."]
Text[6]=["Fixed","This box is fixed positioned at a (150,400) coordinate."]
Text[7]=["Sticky style","This box will sticky around<br>This is useful when you want to insert a link like this <A href='http://www.5dhome.net'>PlanMagic</A>."]
Text[8]=["Keep style","This sticks around the mouse."]
Text[9]=["Left coordinate control","This box is right positioned with a 40 X coordinate."]
Text[10]=["Top coordinate control","This box is right positioned with a 50 Y coordinate."]
Text[11]=["Visual effects","This box has a Shadow and a bit of Transparency. It also has a random Transition effect applied to it."]
Text[12]=["Different style","This has a whole new style!"]
Text[13]=["","<b>PlanMagic Business Software:</b><ul><li>Business plan<li>Marketing plan<li>Financial plan<li>Construction plan<li>Bar business plan<li>Restaurant plan<li>Hotel business plan<li>Resort business plan</ul>"]
Style[0]=["white","black","#cc0000","#FFCC99","","","","","","","","","","",200,"",2,2,10,10,"","","","",""]
Style[1]=["white","black","#cc0000","#FFCC99","","","","","","","center","","","",200,"",2,2,10,10,"","","","",""]
Style[2]=["white","black","#cc0000","#FFCC99","","","","","","","left","","","",200,"",2,2,10,10,"","","","",""]
Style[3]=["white","black","#cc0000","#FFCC99","","","","","","","float","","","",200,"",2,2,10,10,"","","","",""]
Style[4]=["white","black","#cc0000","#FFCC99","","","","","","","fixed","","","",200,"",2,2,150,400,"","","","",""]
Style[5]=["white","black","#cc0000","#FFCC99","","","","","","","","sticky","","",200,"",2,2,10,10,"","","","",""]
Style[6]=["white","black","#cc0000","#FFCC99","","","","","","","","keep","","",200,"",2,2,10,10,"","","","",""]
Style[7]=["white","black","#cc0000","#FFCC99","","","","","","","","","","",200,"",2,2,40,10,"","","","",""]
Style[8]=["white","black","#cc0000","#FFCC99","","","","","","","","","","",200,"",2,2,10,50,"","","","",""]
Style[9]=["white","black","#cc0000","#FFCC99","","","","","","","","","","",200,"",2,2,10,10,51,0.5,75,"simple","gray"]
Style[10]=["white","black","black","white","","","right","","Tahoma","cursive","center","",3,4,200,20,5,10,10,0,50,1,70,"complex","gray"]
Style[11]=["white","black","#cc0000","#FFCC99","","","","","","","","","","",200,"",2,2,10,10,51,0.5,45,"simple","gray"]
Style[12]=["white","black","#cc0000","#FFCC99","","","","","","","","","","",200,"",2,2,10,10,51,1,0,"",""]
applyCssFilter()
</script>
<script type="text/javascript">
var FiltersEnabled = 1 // if your not going to use transitions or filters in any of the tips set this to 0
Text[0]=["5dhome.net","Business planning software."]
Text[1]=["","<b>SimplytheBest DHTML Scripts</b><br>A collection of the best DHTML script and Javascripts on the Web."]
Text[2]=["Right","This box is right positioned."]
Text[3]=["Center","This box is center positioned."]
Text[4]=["Left","This box is left positioned."]
Text[5]=["Float","This box is float positioned at a (10,10) coordinate, it also floats with the scrollbars so it is always static."]
Text[6]=["Fixed","This box is fixed positioned at a (150,400) coordinate."]
Text[7]=["Sticky style","This box will sticky around<br>This is useful when you want to insert a link like this <A href='http://www.5dhome.net'>PlanMagic</A>."]
Text[8]=["Keep style","This sticks around the mouse."]
Text[9]=["Left coordinate control","This box is right positioned with a 40 X coordinate."]
Text[10]=["Top coordinate control","This box is right positioned with a 50 Y coordinate."]
Text[11]=["Visual effects","This box has a Shadow and a bit of Transparency. It also has a random Transition effect applied to it."]
Text[12]=["Different style","This has a whole new style!"]
Text[13]=["","<b>PlanMagic Business Software:</b><ul><li>Business plan<li>Marketing plan<li>Financial plan<li>Construction plan<li>Bar business plan<li>Restaurant plan<li>Hotel business plan<li>Resort business plan</ul>"]
Style[0]=["white","black","#cc0000","#FFCC99","","","","","","","","","","",200,"",2,2,10,10,"","","","",""]
Style[1]=["white","black","#cc0000","#FFCC99","","","","","","","center","","","",200,"",2,2,10,10,"","","","",""]
Style[2]=["white","black","#cc0000","#FFCC99","","","","","","","left","","","",200,"",2,2,10,10,"","","","",""]
Style[3]=["white","black","#cc0000","#FFCC99","","","","","","","float","","","",200,"",2,2,10,10,"","","","",""]
Style[4]=["white","black","#cc0000","#FFCC99","","","","","","","fixed","","","",200,"",2,2,150,400,"","","","",""]
Style[5]=["white","black","#cc0000","#FFCC99","","","","","","","","sticky","","",200,"",2,2,10,10,"","","","",""]
Style[6]=["white","black","#cc0000","#FFCC99","","","","","","","","keep","","",200,"",2,2,10,10,"","","","",""]
Style[7]=["white","black","#cc0000","#FFCC99","","","","","","","","","","",200,"",2,2,40,10,"","","","",""]
Style[8]=["white","black","#cc0000","#FFCC99","","","","","","","","","","",200,"",2,2,10,50,"","","","",""]
Style[9]=["white","black","#cc0000","#FFCC99","","","","","","","","","","",200,"",2,2,10,10,51,0.5,75,"simple","gray"]
Style[10]=["white","black","black","white","","","right","","Tahoma","cursive","center","",3,4,200,20,5,10,10,0,50,1,70,"complex","gray"]
Style[11]=["white","black","#cc0000","#FFCC99","","","","","","","","","","",200,"",2,2,10,10,51,0.5,45,"simple","gray"]
Style[12]=["white","black","#cc0000","#FFCC99","","","","","","","","","","",200,"",2,2,10,10,51,1,0,"",""]
applyCssFilter()
</script>
引用
第三步
在body中具体使用函数
<A href="yourpage.html" onMouseOver="stm(Text[0],Style[6])" onMouseOut="htm()">Your text [0][6]</A>
<A href="yourpage.html" onMouseOver="stm(Text[0],Style[7])" onMouseOut="htm()">Your text [0][7]</A>
<A href="yourpage.html" onMouseOver="stm(Text[0],Style[8])" onMouseOut="htm()">Your text [0][8]</A>
- tooltip.zip (6.1 KB)
- 描述: 源代码
- 下载次数: 194
发表评论
-
有关滚动条Scroll样式的设置
2008-08-07 17:02 31011.overflow内容溢出时的设置(设定被设定对象是否显示滚 ... -
两个文件改变网站流量
2008-08-01 14:49 927用两个文件,用js 改变网站流量 url_1.html 代 ... -
div 超出的文字以省略号显示
2008-07-24 21:36 1742div { overflow:hidden; ... -
css中如何使div居中(垂直水平居中)
2008-07-16 11:48 3838css中如何使div居中(垂直水平居中) 2007-01-12 ... -
DivCSS布局实例 用dl dt dd来制作列表
2008-07-16 09:03 1337今天有人发邮件问的一个问题,最开始的想法是用ul列表来实现;但 ... -
CSS在页面布局中实现div垂直居中的方法总结
2008-07-16 08:56 2531CSS在页面布局中实现div垂直居中的方法总结 2008年07 ... -
css控制div自动换行
2008-07-16 08:56 5137自动换行问题,正常字符的换行是比较合理的,而连续的数字和英文字 ... -
网页颜色搭配精选十例
2008-07-10 03:43 2900颜色的使用在网页制作 ... -
网页制作傻瓜工具集锦
2008-07-10 03:42 1803初学网页制作时,往往觉 ... -
五彩缤纷建网页(5)网页色彩配色软件
2008-07-10 03:39 10121.ColorWiz (国外) 超媒体置标语言(HTML) ... -
不间断连续图片滚动效果的制作方法
2008-07-10 03:35 2887以前我们站点也介绍过 ... -
图片的连续滚动
2008-07-10 03:28 771<html><head></he ... -
HTML各个元素对搜索引擎的权重比例
2008-07-09 13:10 799HTML各个元素对搜索引擎 ... -
css教程–十步学会用css建站(全)
2008-07-03 12:57 1384css教程–十步学会用css建站(全) 关键字: css教程 ... -
div 、ul、li 动态生成table (2)
2008-06-24 16:49 1582/// <summary> /// ... -
div 、ul、li 动态生成table
2008-06-18 13:45 2294public string GenerateTable(int ... -
5款纯div+css制作的弹出菜单(标准且无js)
2008-06-16 13:01 18445款纯div+css制作的弹出菜单(标准且无js) 一、最 ... -
Js字符串操作函数大全
2008-06-11 15:59 9059Js字符串操作函数大全 Js字符串操作函数大全 /***** ... -
JS实现局部打印和预览
2008-05-27 13:59 6189JS实现局部打印和预览: 第一种: JS 实现简单的页面局部 ... -
前台开发使用工具集合
2008-05-09 08:45 3789前台开发使用工具集合 1。 Fiddler一个很强大 ...
相关推荐
ToolTip浮动提示框效果(源代码)ToolTip浮动提示框效果(源代码)ToolTip浮动提示框效果(源代码)
微信小程序-ToolTip信息提示组件导入将ToolTip文件夹复制到pages文件夹内使用在需要使用ToolTip的页面对应的.wxml文件中添加: src="../ToolTip/toolTip.wxml"/> <!-- 引入toolTip模板 --> is=...
tooltip效果
非常经典的javascript tooltip
使用原生JavaScript设计和实现Tooltip浮动提示框特效,了解代码简化、事件绑定、事件冒泡等技巧和知识。 特效四个关键点: 显示:鼠标移到ToolTip超链接上时,ToolTip提示框可以显示出来 隐藏:鼠标移开时,ToolTip...
JavaScript渐变链接提示tooltip封装类
这个炫酷tooltip工具提示插件将带您离开黄底黑字的html tooltip原始时代。该tooltip插件共9种效果,使用html5 svg和css3 transform属性完成。这个工具提示效果带图片带动画,效果一流。
纯js tooltip工具提示插件
jQuery的一款tooltip提示插件,通过鼠标悬停显示提示时间,提示内容使用ajax动态显示。
Hint.css是一款功能强大的Tooltip工具提示插件库。hint.css使用SASS来编写,不依赖于JavaScript。该tooltip插件使用data-*属性、伪元素、内容属性和CSS3过渡效果来制作tooltip。
jquery Tooltip简易文本提示框插件
经典的tooltip信息提示框,依赖于jq,方便易于维护,本文的tooltip信息提示框不借助任何插件,只要引入样式即可显示css3酷炫的效果。在手机浏览器、微信或app里面演示是完全没问题的。
锁定界面和使用ToolTip创建提示,解锁界面的默认密码是1234,当鼠标移到确定按钮或这是第一个文本框时,出现提示。
这是一款Bootstrap tooltip工具提示修改主题样式插件。通过该插件,可以修改bootstrap3和bootstrap4的内置tooltip主题样式,生成各种颜色的漂亮的tooltip工具提示。
给HTML元素添加Title虽然也可实现tooltip,但是局限性太大,换行、添加图片等都比较麻烦,并且如果tooltip太长,可能等不到浏览者看完就消失了。这个示例解决了上诉问题!
jQuery tooltip鼠标提示层,jQuery CSS实现,鼠标移到链接文字上会弹出一个图片 文字的层提示框,鼠标移走后提示自动消失,特效代码来自国外的前端设计网站。这个链接提示层支持在弹出层中显示图片、文字和链接格式...
OpenLayers地图要素tooltip[文字提示],对要素进行动态提示