JAVA涂鴉
關于JAVA的點點滴滴
BlogJava
首頁
新文章
新隨筆
聚合
管理
posts - 50, comments - 689, trackbacks - 0
QQ樹形7
<
html
>
<
head
>
<
metdiv?
http-equiv
="Content-Type"
?content
="text/html;?charset=gb2312"
?
/>
<
script?
language
="JavaScript"
?type
="text/javascript"
>
var
?curr
=
null
;
var
?hs
=
new
?Array();
var
?ps
=
new
?Array();
function
?getElementsByClassName(clsName)?
{?
????
var
?arr?
=
?
new
?Array();?
????
var
?elems?
=
?document.getElementsByTagName(
"
*
"
);
????
for
?(?
var
?cls,?i?
=
?
0
;?(?elem?
=
?elems[i]?);?i
++
?)
????
{
????????
if
?(?elem.className?
==
?clsName?)
????????
{
????????????arr[arr.length]?
=
?elem;
????????}
????}
????
return
?arr;
}
function
?initFaq()
{
????
var
?faq
=
document.getElementById(
"
faq
"
);
????hs
=
getElementsByClassName(
"
D_title
"
);
????ps
=
getElementsByClassName(
"
D_content
"
);
????
for
?(
var
?i
=
0
;i
<
hs.length;i
++
)
{
????????hs[i].id
=
'a_syy_'
+
i;
????????ps[i].id
=
hs[i].id
+
'_x';
????????
????????hs[i].onclick
=
function
()
{
????????????
if
?(curr
!=
null
&&
curr
!=
this
.id)
{
????????????????document.getElementById(curr
+
"
_x
"
).style.display
=
'none';
????????????????document.getElementById(curr).style.backgroundImage
=
'url(images
/
hide.gif)';
????????????????document.getElementById(curr).style.backgroundColor
=
'#E6B18C';
????????????}
????????????
var
?s
=
document.getElementById(
this
.id
+
"
_x
"
).style;
????????????s.display
=
((s.display
==
'none')
?
'block':'none');
????????????
if
?(s.display
!=
'none')
{
????????????????curr
=
this
.id;
????????????????
this
.style.backgroundImage
=
'url(images
/
show.gif)';
????????????????
this
.style.backgroundColor
=
'#FF8C3C';
????????????}
????????????
else
{
????????????????curr
=
null
;
????????????????
this
.style.backgroundImage
=
'url(images
/
hide.gif)';
????????????????
this
.style.backgroundColor
=
'#E6B18C';
????????????}
????????}
????????hs[i].onmouseover
=
function
()
{
????????????
this
.style.backgroundColor
=
"
#E69860
"
;
????????}
????????hs[i].onmouseout
=
function
()
{
????????????
this
.style.backgroundColor
=
(document.getElementById(
this
.id
+
"
_x
"
).style.display
==
'none')
?
"
#e6b18c
"
:'#FF8C3C';
????????}
????????hs[i].style.cursor
=
'pointer';
????????ps[i].style.display
=
'none';
????????}
}
</
script
>
<
style
>
body
{
}
{
????margin
:
0
;
????background
:
url(images/diary.gif)?no-repeat?right?bottom
;
}
#faq
{
}
{
????width
:
567px
;
????list-style
:
none
;
????padding
:
0
;
????margin
:
1px
;
}
#faq?li
{
}
{
????width
:
100%
;
????margin
:
0
;
}
#faq?.D_title
{
}
{
????width
:
100%
;
????height
:
22px
;
????color
:
#7455E8
;
????font
:
400?12px/22px?tahoma
;
????display
:
block
;
????margin-top
:
1px
;
????text-decoration
:
none
;
????background
:
#E6B18C?url(images/hide.gif)?no-repeat?5px?center
;
}
#faq?.D_content
{
}
{
????width
:
100%
;
????height
:
250px
;
????font
:
12px/18px?tahoma
;
????color
:
#F26D4D
;
????background
:
#E6E9FF
;
????margin
:
0
;
}
</
style
>
</
head
>
<
body?
onload
="initFaq()"
>
????
<
ul?
id
="faq"
?style
="background:#fff;"
>
????
<
li
>
????
<
div?
class
="D_title"
?href
="#"
>
2005-11-8 星期一 晴
</
div
>
????????
<
div?
class
="D_content"
>
????????
</
div
>
????
</
li
>
????
<
li
>
????????
<
div?
class
="D_title"
?href
="#"
>
2005-11-8 星期二 晴
</
div
>
????????
<
div?
class
="D_content"
>
????????
</
div
>
????
</
li
>
????
<
li
>
????????
<
div?
class
="D_title"
?href
="#"
>
2005-11-8 星期三 晴
</
div
>
????????
<
div?
class
="D_content"
>
????????
</
div
>
????
</
li
>
????
<
li
>
????????
<
div?
class
="D_title"
?href
="#"
>
2005-11-8 星期四 晴
</
div
>
????????
<
div?
class
="D_content"
>
????????
</
div
>
????
</
li
>
????
<
li
>
????????
<
div?
class
="D_title"
?href
="#"
>
2005-11-8 星期五 晴
</
div
>
????????
<
div?
class
="D_content"
>
????????
</
div
>
????
</
li
>
????
<
li
>
????????
<
div?
class
="D_title"
?href
="#"
>
2005-11-8 星期六 晴
</
div
>
????????
<
div?
class
="D_content"
>
????????
</
div
>
????
</
li
>
????
<
li
>
????????
<
div?
class
="D_title"
?href
="#"
>
2005-11-8 星期天 晴
</
div
>
????????
<
div?
class
="D_content"
>
????????
</
div
>
????
</
li
>
</
ul
>
</
body
>
</
html
>
posted on 2007-04-01 16:45
千山鳥飛絕
閱讀(472)
評論(0)
編輯
收藏
所屬分類:
JavaScript
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發表評論。
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
相關文章:
QQ樹形8
QQ樹形7
QQ樹形6
QQ樹形5
QQ樹形4
QQ樹形3
QQ樹形2
QQ樹形
類似QQ的樹型菜單
javascript實現二級聯動下拉框
正在閱讀:
<
2025年6月
>
日
一
二
三
四
五
六
25
26
27
28
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
4
5
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
留言簿
(35)
給我留言
查看公開留言
查看私人留言
隨筆檔案
2009年9月 (1)
2008年7月 (1)
2008年3月 (3)
2007年11月 (2)
2007年10月 (1)
2007年5月 (3)
2007年4月 (4)
2007年3月 (6)
2007年2月 (1)
2006年12月 (1)
2006年9月 (1)
2006年8月 (3)
2006年7月 (1)
2006年6月 (2)
2006年5月 (3)
2006年3月 (2)
2006年1月 (1)
2005年12月 (3)
2005年11月 (6)
2005年10月 (5)
文章分類
Ajax(7)
CVSNT(1)
eclipse(6)
Hibernate(3)
ibatis
J2SE(8)
Jasperreport (2)
JavaMail(1)
JavaScript(11)
MySQL
Spring(1)
Struts(1)
Web Servers(2)
Web開發(16)
文章檔案
2007年6月 (2)
2007年5月 (1)
2007年4月 (12)
2007年3月 (5)
2006年8月 (6)
2006年7月 (1)
2006年6月 (2)
2006年5月 (3)
2006年3月 (2)
2006年1月 (6)
2005年12月 (4)
2005年11月 (1)
2005年10月 (8)
2005年9月 (6)
好友的blog
晚來
祝子
我的其他blog
千山鳥飛絕(天極)
千山鳥飛絕專欄
老婆的Blog
伊斕的BLOG
搜索
積分與排名
積分 - 776088
排名 - 56
最新評論
1.?re: javascript實現二級聯動下拉框
太棒了 好東西就該這樣
--精神病
2.?re: struts+spring+hibernate的web應用 Dao層代碼編寫
又是個只操作單個表的,不要老寫這些toy code!
--我暈
3.?re: 如何使用Log4j?
謝謝樓主,給新手不少的幫助,
--login
4.?re: 如何使用Log4j?
不錯,淺顯易懂,好文章!
--心誠則靈
5.?re: struts+spring+hibernate的web應用 Dao層代碼編寫
方法
--方法
閱讀排行榜
1.?Jboss4.0.2的端口的修改(13243)
2.?eclipse3.1.1版本的中文包已經出來了。(11775)
3.?struts2.0+spring2.0+hibernate3.1 web應用 示例代碼下載(11579)
4.?很奇怪的Struts2中文亂碼問題(9754)
5.?Struts2.0+spring2.0+hibernate3.1 ACEGI應用示例(權限判斷)(9059)
評論排行榜
1.?eclipse3.1.1版本的中文包已經出來了。(21)
2.?struts2.0+spring2.0+hibernate3.1 web應用 示例代碼下載(20)
3.?我的QQ寵物怎么變得這么大了????(13)
4.?如何下載in action等系列書籍的源代碼(10)
5.?很奇怪的Struts2中文亂碼問題(7)
Copyright ©2025 千山鳥飛絕 Powered By
博客園
模板提供:
滬江博客
主站蜘蛛池模板:
安岳县
|
宾阳县
|
灌云县
|
苏尼特右旗
|
太仆寺旗
|
连平县
|
曲沃县
|
金塔县
|
大连市
|
兖州市
|
施秉县
|
正阳县
|
崇左市
|
吉隆县
|
阿克陶县
|
武城县
|
武宁县
|
铅山县
|
东辽县
|
沁源县
|
会宁县
|
淳化县
|
安顺市
|
福鼎市
|
静宁县
|
邳州市
|
赤城县
|
阳西县
|
安泽县
|
东莞市
|
彩票
|
威远县
|
静海县
|
日喀则市
|
霍邱县
|
安康市
|
广平县
|
乌兰察布市
|
德阳市
|
敦煌市
|
六盘水市
|