yyg1107
這家伙很懶,什么都沒(méi)有留下
posts(15)
comments(20)
trackbacks(0)
BlogJava
聯(lián)系
聚合
管理
公告
聯(lián)系方式:
常用鏈接
我的隨筆
我的評(píng)論
我的參與
最新評(píng)論
留言簿
給我留言
查看公開(kāi)留言
查看私人留言
隨筆分類(lèi)
(11)
axis(1)
hibernate(1)
java(2)
js(2)
other(5)
隨筆檔案
(8)
2008年6月 (1)
2007年8月 (2)
2007年4月 (3)
2006年11月 (2)
文章分類(lèi)
(37)
C++Builder(3)
eclipse(2)
html(4)
java(8)
jbpm(6)
JS(4)
other(4)
question handly!(4)
web容器(1)
workflow(1)
文章檔案
(36)
2007年4月 (2)
2007年3月 (1)
2007年1月 (2)
2006年12月 (2)
2006年11月 (3)
2006年10月 (11)
2006年9月 (2)
2006年7月 (2)
2006年6月 (1)
2006年5月 (1)
2006年4月 (6)
2006年3月 (3)
新聞檔案
(1)
2007年1月 (1)
收藏夾
(16)
好的BLOG(9)
收藏----blog(7)
JavaBlog
amigoxie
matrix
搜索
積分與排名
積分 - 32726
排名 - 1317
最新評(píng)論
1.?re: JS實(shí)現(xiàn)文本框輸入提供選擇框的提示功能-1
werewrewrwer
--wrewrwe
2.?re: struts啟動(dòng)的一個(gè)錯(cuò)誤!
更名struts-config.xml, remove && add struts capability,重新生成一個(gè)config.xml。
--barryken
3.?p
42
--2
4.?re: hql語(yǔ)句----隨機(jī)查詢(xún)?nèi)☆^10條記錄[未登錄](méi)
沒(méi)意思,這不就是分頁(yè)的那一部分代碼嘛!
--啊啊
5.?re: 第一次做成功的AXIS例子[未登錄](méi)
樓主:能不能留下你的聯(lián)系方式!探討一下相關(guān)問(wèn)題...
--hehe
閱讀排行榜
1.?JS實(shí)現(xiàn)文本框輸入提供選擇框的提示功能-1(7291)
2.?第一次做成功的AXIS例子(2428)
3.?命令行創(chuàng)建ODBC數(shù)據(jù)源(1544)
4.?struts啟動(dòng)的一個(gè)錯(cuò)誤!(1264)
5.?hibernate調(diào)用存儲(chǔ)過(guò)程例子(1006)
評(píng)論排行榜
1.?JS實(shí)現(xiàn)文本框輸入提供選擇框的提示功能-1(7)
2.?第一次做成功的AXIS例子(5)
3.?struts啟動(dòng)的一個(gè)錯(cuò)誤!(4)
4.?轉(zhuǎn):如何在JAVA中使用日期 (0)
5.?命令行創(chuàng)建ODBC數(shù)據(jù)源(0)
View Post
自動(dòng)提示效果
前陣子,IE的title提示突然罷工了,找了很多原因就是沒(méi)找到,一次實(shí)驗(yàn)popup.show后,它居然會(huì)出來(lái),可是要讓title出來(lái)前每次都必須調(diào)用popup.show方法,這怎么行呢
,估計(jì)還是注冊(cè)表的問(wèn)題吧,終于放棄,于是制作了這個(gè)簡(jiǎn)單的自動(dòng)提示js文件。支持firefox&ie,也不會(huì)有自帶的提示那種過(guò)一段時(shí)間消失的問(wèn)題了。
<
html
>
<
head
>
<
title
>
tip
</
title
>
<
meta?
http-equiv
="Content-Type"
?content
="text/html;?charset=gb2312"
>
</
head
>
<
body
>
<
script
>
if
(
!
document.attachEvent)
{
????document.attachEvent?
=
?
function
()
{document.addEventListener(arguments[
0
].substr(
2
),arguments[
1
],arguments[
2
])}
}
document.attachEvent(
"
onmouseover
"
,
function
(e)
{
????
var
?tip?
=
?
""
;
????
if
(
typeof
(event)
==
"
undefined
"
)
{
????????tip?
=
?e.target.getAttribute(
"
tips
"
)
????}
else
{
????????e????
=
?event;
????????tip?
=
?e.srcElement.tips;
????}
????
????
if
(
typeof
(tip)
!=
"
undefined
"
&&
tip.length
>
0
)
????
{
????????
var
?_tips?
=
?document.getElementById(
"
myTip
"
);
????????
????????
if
(
typeof
(_tips)
==
"
undefined
"
||
_tips?
==
?
null
)
????????
{
????????????_tips????????
=
?document.createElement(
"
div
"
);
????????????_tips.id????
=
?
"
myTip
"
;
????????????_tips.style.position????????
=
?
"
absolute
"
;
????????????_tips.style.width????????????
=
?
"
150px
"
;
????????????_tips.style.borderWidth????????
=
?
"
1px
"
;
????????????_tips.style.borderStyle????????
=
?
"
solid
"
;
????????????_tips.style.borderColor????????
=
?
"
gray
"
;
????????????_tips.style.fontSize????????
=
?
"
9pt
"
;
????????????_tips.style.backgroundColor????
=
?
"
#ffffff
"
;
????????????_tips.style.color????????????
=
?
"
#349045
"
;
????????????
????????????_tips.style.filter????????????
=
?
"
progid:DXImageTransform.Microsoft.Shadow(color=#999999,direction=135,strength=3)
"
;
????????????_tips.style.padding????????????
=
?
"
5px?8px?3px?8px
"
;
????????????
????????????document.body.appendChild(_tips);????????????
????????????_tips.style.display????????????
=
?
"
none
"
;
????????}
????????????_tips.style.display????
=
?
""
;
????????????
????????????_tips.innerHTML????????
=
?tip;
????????????_tips.style.left?
=
?document.body.scrollLeft
+
e.clientX
+
10
;?
????????????_tips.style.top?
=
?document.body.scrollTop
+
e.clientY
+
10
;?
????}
}
);
document.attachEvent('onmouseout',
function
(e)
{???
????
var
?_tips?
=
?document.getElementById(
"
myTip
"
);
????
if
(_tips
!=
null
)
????
{
????????_tips.style.display
=
"
none
"
;
????}
}
)
</
script
>
<
a?
href
="#"
?tips
="自定義提示"
?
>
測(cè)試鏈接
</
a
>
<
a?
href
="#"
?
>
測(cè)試鏈接
</
a
>
???
<
a?
href
="#"
?tips
="中華人民共和國(guó)中華人民共和國(guó)自中華人民共和國(guó)中華人民共和國(guó)自定義提示中華人民共和國(guó)中華人民共和國(guó)自定義提示中華人民共和國(guó)中華人民共和國(guó)自定義提示定義提示"
>
測(cè)試鏈接
</
a
>
???
</
body
>
</
html
>
from:http://www.cnblogs.com/ttyp/archive/2005/06/15/174714.html
posted on 2006-11-17 09:36
young
閱讀(241)
評(píng)論(0)
編輯
收藏
所屬分類(lèi):
JS
新用戶(hù)注冊(cè)
刷新評(píng)論列表
只有注冊(cè)用戶(hù)
登錄
后才能發(fā)表評(píng)論。
網(wǎng)站導(dǎo)航:
博客園
IT新聞
Chat2DB
C++博客
博問(wèn)
管理
相關(guān)文章:
浮動(dòng)框
讓你的網(wǎng)頁(yè)更精彩 - Javascript 調(diào)用MSAgent
javascript技巧
自動(dòng)提示效果
Powered by:
BlogJava
Copyright © young
主站蜘蛛池模板:
旬邑县
|
太湖县
|
东乌
|
辽阳市
|
丹巴县
|
房产
|
吉安县
|
和顺县
|
沙河市
|
南岸区
|
碌曲县
|
松原市
|
江西省
|
康马县
|
泸定县
|
定安县
|
犍为县
|
辽宁省
|
凌云县
|
周宁县
|
东平县
|
长兴县
|
芜湖市
|
博湖县
|
边坝县
|
韶关市
|
大关县
|
天等县
|
武邑县
|
广南县
|
宁晋县
|
隆回县
|
黑龙江省
|
汉中市
|
正宁县
|
正蓝旗
|
十堰市
|
阜宁县
|
诸城市
|
卫辉市
|
蒙山县
|