tambc
BlogJava
首頁
新隨筆
聯系
聚合
管理
5 Posts :: 21 Stories :: 5 Comments :: 0 Trackbacks
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
留言簿
(2)
給我留言
查看公開留言
查看私人留言
隨筆檔案
2007年2月 (2)
2006年12月 (3)
文章分類
Ajax
C#(1)
Delphi(3)
Hibernate(1)
Java(14)
JavaScript(7)
Oracle
Spring
SQLServer(1)
Struts
全文檢索(3)
工作流學習
文章檔案
2007年2月 (1)
2007年1月 (1)
2006年12月 (16)
搜索
最新評論
1.?re: textarea控制字符數
收益匪淺
--ljh
2.?re: textarea控制字符數
評論內容較長,點擊標題查看
--fdsa
3.?re: 免費部署 與同時訪問此網頁的網友聊天[未登錄]
股票
--秋風
4.?re: 實現HTTP長連接(服務器推)
yao lianjie
--張偉
5.?re: 近來使用velocity來生成網站靜態頁面
re: 近來使用velocity來生成網站靜態頁面的地址
--gv
閱讀排行榜
1.?近來使用velocity來生成網站靜態頁面(1398)
2.?轉:基于Java的開源 Carrot2 搜索結果聚合聚類引擎 2.0(703)
3.?使用C3P0時一個怪異的事情(473)
4.?用JS讓查看源代碼時什么也看不到(414)
5.?免費部署 與同時訪問此網頁的網友聊天(341)
評論排行榜
1.?免費部署 與同時訪問此網頁的網友聊天(1)
2.?近來使用velocity來生成網站靜態頁面(1)
3.?用JS讓查看源代碼時什么也看不到(0)
4.?轉:基于Java的開源 Carrot2 搜索結果聚合聚類引擎 2.0(0)
5.?使用C3P0時一個怪異的事情(0)
美化文件上傳界面
?1
<
head
>
?
?2
<
style
>
?
?3
*
{
}
{
font-size
:
12px
;
cursor
:
default
}
?
?4
.hand
{
}
{
cursor
:
hand
;
cursor
:
pointer
}
?
?5
</
style
>
?
?6
</
head
>
?
?7
?8
<
body
>
?
?9
<
form?
name
=fm1
>
?
10
<
div?
id
=bxAttList
>
?
11
<
div?
id
=bxAtt?
onmouseover
="$(’bxAtt1’).style.textDecoration=’underline’"
?onmouseout
="$(’bxAtt1’).style.textDecoration=’’"
?style
=float:left;width:60
>
?
12
<
span?
id
=bxAtt1?
style
=’position:absolute;padding-top:3;cursor:hand;font-family:宋體’
>
@添加附件
</
span
>
?
13
<
span?
id
=bxAtt2?
onmouseover
=this.scrollLeft=100?
style
=position:absolute;width:60;overflow:hidden;filter:alpha(opacity=0);-moz-opacity:0
></
span
>
?
14
</
div
>
?
15
</
div
>
?
16
</
form
>
?
17
</
body
>
?
18
<
script
>
?
19
file_create()?
20
function
?file_create()
{?
21
$(
"
bxAtt2
"
).innerHTML
=
"
<input?onchange=file_change(this)?hidefocus?type=file?name=file1?size=1?class=hand>
"
?
22
}
?
23
function
?file_change(tx)
{?
24
var
?sName,o?
25
sName
=
tx.value.replace(
/
\\
/
g,
"
/
"
).replace(
/
(.
*
\
/
)(.
*
)
/
,
"
$2
"
)?
26
o
=
document.createElement(
"
nobr
"
)?
27
o.style.cssText
=
"
float:left;margin-right:6;padding-top:3;color:darkgreen
"
?
28
o.innerHTML
=
"
□
"
+
sName
+
"
<font?onclick=$(’bxAttList’).removeChild(this.parentNode);file_repos()?class=hand?style=color:red;font-weight:bold>
"
+
unescape(
"
%d7
"
)
+
"
</font>
"
?
29
tx.style.display
=
"
none
"
?
30
o.appendChild(tx)?
31
$(
"
bxAttList
"
).insertBefore(o,$(
"
bxAtt
"
))?
32
file_repos()?
33
file_create()?
34
}
?
35
function
?file_repos()
{?
36
$(
"
bxAttList
"
).appendChild($(
"
bxAtt
"
))?
37
}
?
38
function
?$(obj)
{?
39
return
?
typeof
(obj)
==
"
object
"
?
obj:document.getElementById(obj)?
40
}
?
41
</
script
>
posted on 2006-12-21 11:41
tambc
閱讀(532)
評論(0)
編輯
收藏
所屬分類:
JavaScript
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發表評論。
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
相關文章:
Ajax客戶端發起的禁止使用Cache的指令
防止Combox浮在最上層的方法
美化文件上傳界面
在WEB頁中實現表頭表腳和打印分頁
textarea控制字符數
文件上傳前臺控制檢測程序
Powered by:
BlogJava
Copyright © tambc
主站蜘蛛池模板:
隆化县
|
东方市
|
专栏
|
句容市
|
内江市
|
潍坊市
|
祁连县
|
富蕴县
|
绥棱县
|
平潭县
|
留坝县
|
长沙县
|
海阳市
|
治县。
|
昆明市
|
醴陵市
|
舞钢市
|
胶南市
|
朝阳市
|
密山市
|
汶上县
|
扎兰屯市
|
乌拉特中旗
|
蓬溪县
|
启东市
|
海晏县
|
东安县
|
沙湾县
|
丹江口市
|
南宫市
|
仪征市
|
苍溪县
|
岳普湖县
|
吉安县
|
陵水
|
霍林郭勒市
|
洛南县
|
新竹市
|
苗栗县
|
阿瓦提县
|
玛纳斯县
|