一道风景
fflush的收藏室
登录
注册
全站
当前博客
空间
博客
好友
相册
留言
用JSP实现DOS形式缓冲网页
收藏
<
SCRIPT language
=
JavaScript type
=
text
/
JavaScript
>
//
改变图片大小
function
resizepic(thispic)
...
{
if
(thispic.width
>
700
) thispic.width
=
700
;
}
//
无级缩放图片大小
function
bbimg(o)
...
{
var
zoom
=
parseInt(o.style.zoom,
10
)
||
100
;
zoom
+=
event.wheelDelta
/
12
;
if
(zoom
>
0
) o.style.zoom
=
zoom
+
'
%
'
;
}
//
双击鼠标滚动屏幕的代码
var
currentpos,timer;
function
initialize()
...
{
timer
=
setInterval (
"
scrollwindow ()
"
,
30
);
}
function
sc()
...
{
clearInterval(timer);
}
function
scrollwindow()
...
{
currentpos
=
document.body.scrollTop;
window.scroll(
0
,
++
currentpos);
if
(currentpos
!=
document.body.scrollTop)
sc();
}
document.onmousedown
=
sc
document.ondblclick
=
initialize
//
更改字体大小
var
status0
=
''
;
var
curfontsize
=
10
;
var
curlineheight
=
18
;
function
fontZoomA()
...
{
if
(curfontsize
>
8
)
...
{
document.getElementById(
'
fontzoom
'
).style.fontSize
=
(
--
curfontsize)
+
'
pt
'
;
document.getElementById(
'
fontzoom
'
).style.lineHeight
=
(
--
curlineheight)
+
'
pt
'
;
}
}
function
fontZoomB()
...
{
if
(curfontsize
<
64
)
...
{
document.getElementById(
'
fontzoom
'
).style.fontSize
=
(
++
curfontsize)
+
'
pt
'
;
document.getElementById(
'
fontzoom
'
).style.lineHeight
=
(
++
curlineheight)
+
'
pt
'
;
}
}
</
SCRIPT
>
发表于 @
2007年01月29日 21:59:00
|
评论(
loading...
)
新一篇: 实现邮箱登陆代码
|
用户操作
[即时聊天]
[发私信]
[加为好友]
Oo_oO
订阅我的博客
文章分类
Flex $ as 3.0
HTML/CSS
Java
LINUX
Web用户体验
收藏
Flex $ as 3.0
Java
Other
WEB标准
存档
2008年06月(1)
2007年05月(7)
2007年04月(1)
2007年01月(3)
软件项目交易