惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Threatpost
Hacker News: Ask HN
Hacker News: Ask HN
C
Cisco Blogs
P
Privacy & Cybersecurity Law Blog
C
CERT Recently Published Vulnerability Notes
P
Palo Alto Networks Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
L
Lohrmann on Cybersecurity
T
Threat Research - Cisco Blogs
Schneier on Security
Schneier on Security
S
Securelist
N
News | PayPal Newsroom
I
Intezer
H
Hacker News: Front Page
P
Privacy International News Feed
Recent Commits to openclaw:main
Recent Commits to openclaw:main
G
GRAHAM CLULEY
A
About on SuperTechFans
P
Proofpoint News Feed
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Project Zero
Project Zero
Cloudbric
Cloudbric
N
News and Events Feed by Topic
大猫的无限游戏
大猫的无限游戏
Attack and Defense Labs
Attack and Defense Labs
博客园 - 叶小钗
S
Security @ Cisco Blogs
L
LINUX DO - 最新话题
月光博客
月光博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
SegmentFault 最新的问题
博客园 - Franky
博客园 - 三生石上(FineUI控件)
IT之家
IT之家
博客园 - 聂微东
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
GbyAI
GbyAI
Google DeepMind News
Google DeepMind News
I
InfoQ
有赞技术团队
有赞技术团队
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园_首页
Microsoft Azure Blog
Microsoft Azure Blog
S
Security Affairs
Apple Machine Learning Research
Apple Machine Learning Research
腾讯CDC
Security Archives - TechRepublic
Security Archives - TechRepublic
V
Vulnerabilities – Threatpost
T
The Blog of Author Tim Ferriss
Scott Helme
Scott Helme

博客园 - 行者无疆

mac上fisco bcos3.0安装部署 linux安装nginx python学习-时间序列 python学习-数据聚合与分组运算 数据分析指标 数据分析 搜索求解 人工智能概述 R语言学习 mac 安装anaconda和环境配置 python学习-数据规整 python学习-pandas python学习-数据清洗 python学习-NumPy基础 python基础语法 docker 常用命令 css学习 windows service install vs2003下的wap开发
一个div遮照的简单实现
行者无疆 · 2008-02-19 · via 博客园 - 行者无疆

1 在页面上首先设置如下两个div层 
<div id="divMask" style="DISPLAY: none; Z-INDEX: 999; FILTER: alpha(opacity=50); LEFT: 0px; WIDTH: 1024px; POSITION: absolute; TOP: 0px; BACKGROUND-COLOR: silver; TEXT-ALIGN: center; opacity: 0.5; moz-opacity: 0.5"></div>
<div id="divPop" style="DISPLAY:none; Z-INDEX:1000; LEFT:400px; POSITION:absolute; TOP:350px"   align="center"></div>
2  设置遮罩
 window.parent.document.getElementById("divMask").style.height=window.parent.document.body.scrollHeight;
              //显示遮罩
              window.parent.document.getElementById("divMask").style.display = 'block';
               window.parent.document.getElementById("divPop").style.display = 'block';
               window.top.scrollTo(0,0);

posted @ 2008-02-19 19:54  行者无疆  阅读(1934)  评论()    收藏  举报