zoukankan
html css js c++ java
让背景如此暗淡(一种弹出提示信息时页面背景色调改变的方法)
http://bbs.blueidea.com/thread-2676327-1-1.html
<
head
>
<
meta
http-equiv
="Content-Type"
content
="text/html; charset=gb2312"
/>
<
title
>
提示信息框
</
title
>
<
style
type
="text/css"
>
a
{
}
{
color
:
#000
;
font-size
:
12px
;
text-decoration
:
none
}
a:hover
{
}
{
color
:
#900
;
text-decoration
:
underline
}
body
{
}
{
background
:;
filter
:
progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#ffffff,endColorStr=#003366)
;
overflow
:
hidden
}
#massage_box
{
}
{
position
:
absolute
;
left
:
expression((body.clientWidth-350)/2)
;
top
:
expression((body.clientHeight-200)/2)
;
width
:
350px
;
height
:
200px
;
filter
:
dropshadow(color=#666666,offx=3,offy=3,positive=2)
;
z-index
:
2
;
visibility
:
hidden
}
#mask
{
}
{
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
expression(body.scrollWidth)
;
height
:
expression(body.scrollHeight)
;
background
:
#666
;
filter
:
ALPHA(opacity=60)
;
z-index
:
1
;
visibility
:
hidden
}
.massage
{
}
{
border
:
#036 solid
;
border-width
:
1 1 3 1
;
width
:
95%
;
height
:
95%
;
background
:
#fff
;
color
:
#036
;
font-size
:
12px
;
line-height
:
150%
}
.header
{
}
{
background
:
#036
;
height
:
10%
;
font-family
:
Verdana, Arial, Helvetica, sans-serif
;
font-size
:
12px
;
padding
:
3 5 0 5
;
color
:
#fff
}
</
style
>
<!--
实现层移动
-->
<
script
language
="javascript"
>
var
Obj
=
''
document.onmouseup
=
MUp
document.onmousemove
=
MMove
function
MDown(Object)
{
Obj
=
Object.id
document.all(Obj).setCapture()
pX
=
event.x
-
document.all(Obj).style.pixelLeft;
pY
=
event.y
-
document.all(Obj).style.pixelTop;
}
function
MMove()
{
if
(Obj
!=
''
)
{
document.all(Obj).style.left
=
event.x
-
pX;
document.all(Obj).style.top
=
event.y
-
pY;
}
}
function
MUp()
{
if
(Obj
!=
''
)
{
document.all(Obj).releaseCapture();
Obj
=
''
;
}
}
</
script
>
</
head
><
body
>
<
div
id
="massage_box"
><
div
class
="massage"
>
<
div
class
="header"
onmousedown
=MDown(massage_box)
><
div
style
="display:inline; 150px; position:absolute"
>
本站提示信息
</
div
>
<
span
onClick
="massage_box.style.visibility='hidden'; mask.style.visibility='hidden'"
style
="float:right; display:inline; cursor:hand"
>
×
</
span
></
div
>
<
ul
style
="margin-right:25"
><
li
>
本人申明此博客所有文章(包括文章插图)均为原创,如需引用或转载请注明出处。
</
li
><
li
>
欢迎大家对博文中观点留言评述,谢绝无聊人士无素质无观点的灌水漫骂。
</
li
><
li
>
本站已设背景音乐,听音乐盒中收集的音乐时请先到页面底部关闭背景音乐。
</
li
></
ul
></
div
></
div
>
<
div
id
="mask"
></
div
>
<
span
onClick
="mask.style.visibility='visible';massage_box.style.visibility='visible'"
style
="cursor:hand"
><
a
href
="#"
>
显示提示信息
</
a
></
span
>
<
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
><
br
>
bottom here
</
body
>
</
html
>
查看全文
相关阅读:
c#读取文件内容存放到int数组 array.txt
YxShop_V4.2.0开源免费商城2009新春版发布,整合dz最新版,开源!
c# 读取xml文件 "分析 EntityName 时出错"的解决方案
正则表达式口诀
c#操作xml文件
在WebClient类中保持Session
实测SCSI RAID速度
朋友送我的一套书
给LFF占了个板凳
ECC内存也能坏
原文地址:https://www.cnblogs.com/CB/p/1134460.html
最新文章
企业版Workbench和社区版Workbench的区别
Windows SDK九月CTP开放下载
WCF: ConcurrencyMode: 控制服务被同时调用的行为
[分享]写了一个类似Vista开始菜单的应用程序搜索小工具
Microsoft .NET Framework 3.0九月CTP开放下载
下一代Visual Studio(Orcas)九月CTP开放下载
关于set_clock_latency中的early和late选项
OC、OD简单记
关于set_input_delay和set_output_delay的选项max和min的存在意义和推导
dB、dBm和dBW
热门文章
Modelsim关于建立和保持时间的报错
关于编译引导符`ifdef
系统最高时钟频率的计算
别搞混了!assertion和deassertion
多时钟驱动的输入输出约束
关于FPGA的保持时间不满足
asp.net 无法破解的软件注册码算法
序列化,反序列化时低序位非打印 ASCII 字符的问题
中国详细省市县自治区名称列表
黑帽SEO强势技术大纲
Copyright © 2011-2022 走看看