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

推荐订阅源

量子位
Vercel News
Vercel News
Google DeepMind News
Google DeepMind News
罗磊的独立博客
WordPress大学
WordPress大学
The Cloudflare Blog
GbyAI
GbyAI
The Register - Security
The Register - Security
L
LangChain Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Microsoft Security Blog
Microsoft Security Blog
MyScale Blog
MyScale Blog
A
About on SuperTechFans
U
Unit 42
T
The Blog of Author Tim Ferriss
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
Visual Studio Blog
云风的 BLOG
云风的 BLOG
Stack Overflow Blog
Stack Overflow Blog
博客园 - 三生石上(FineUI控件)
博客园 - 司徒正美
Blog — PlanetScale
Blog — PlanetScale
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
M
MIT News - Artificial intelligence
C
CERT Recently Published Vulnerability Notes
T
The Exploit Database - CXSecurity.com
T
Tor Project blog
A
Arctic Wolf
H
Hacker News: Front Page
NISL@THU
NISL@THU
F
Full Disclosure
雷峰网
雷峰网
L
LINUX DO - 热门话题
Recent Announcements
Recent Announcements
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Apple Machine Learning Research
Apple Machine Learning Research
Google Online Security Blog
Google Online Security Blog
I
InfoQ
Webroot Blog
Webroot Blog
S
Security Affairs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
爱范儿
爱范儿
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
N
News | PayPal Newsroom
Forbes - Security
Forbes - Security
博客园 - Franky
V
Vulnerabilities – Threatpost
博客园 - 【当耐特】
Latest news
Latest news

博客园 - waya

解決MySQL中文亂碼 java的圖像縮略方法 攝影用光 Flex調試工具Flextracepanel linux下安裝JDK5 Installing Flex Data Services on JBoss 得到不同時區的當前時間 - waya - 博客园 Flex實現的一些小應用,截幾個界面圖留驗 一個便宜的高负载网站架构 同時啟動多個Tomcat服務器 - waya - 博客园 在同一臺機器上同時啟動多個JBOSS spring2與spring1的單例模式的配置區別 Flex的多行表頭 Trace到文件的設置 開啟整屏窗口並無痕關閉父窗口 Log4j日志异步写入數據庫 參數URL編碼 時間字符串轉換 URL编码表一览
隱藏顯示表格行;確認提示窗口;開啟定制窗口
waya · 2006-12-15 · via 博客园 - waya

點擊顯示或隱藏某個頁面元素

<script language="javascript">
    
function show(topicid){
        
var targetDiv=eval("tr_"+topicid);
        
if(targetDiv.style.display!='block'){
            targetDiv.style.display
="block";
        }
else{
            targetDiv.style.display
="none";
        }

    }

</script>

<span onClick="javascript:show('10');">顯示/隱藏</span>

<table>
    
<tr id="tr_10" style="display:none">
        
<td>M</td>
    
</tr>
</table>

刪除可審核時的確認窗口

<script language="javascript">
    
function opConfirm(){
      
if(confirm('你確認嗎?')){
         window.open('h.html','','');
//確認後打開一個窗口
      }

    }

</script>

開啟定制窗口,指定窗口大小,或指定窗口在屏幕中的位置

function screenwidth() {//屏幕的寬
    var screenX;
    
if(navigator.appName == "Microsoft Internet Explorer"{
        screenX 
= window.screen.availWidth;
        }

    
else {
        screenX 
= window.screen.availWidth
        }

    
return screenX;
}


function screenheight() {//屏幕的高
    var screenY;
    
if(navigator.appName == "Microsoft Internet Explorer"{
        screenY 
= window.screen.availHeight;
        }

    
else {
        screenY 
= window.screen.availHeight
        }

    
return screenY;
}


function popupfull(pageurl) {//全屏窗口
    var wHeight;
    
var wWidth;
    wHeight 
= screenheight() - 100;
    wWidth 
= screenwidth() - 50;    
    
var options = 'toolbar=0,location=0,scrollbars=1,resizable=1,dependent=1,top=20,left=20,width='+wWidth+',height='+wHeight
    window.open(pageurl,'Sample_PopupFull', options).focus();
    
return false;
}

function popupright(pageurl) {//居屏幕右邊的窗口
    var wLeft, wHeight;
    wLeft 
= screenwidth() - 430;
    wHeight 
= screenheight() - 100;
    
var options = 'toolbar=0,location=0,scrollbars=1,resizable=1,dependent=1,top=20,left='+wLeft+',width=400,height='+wHeight
    window.open(pageurl,'Sample_PopupSM',options).focus();
    
return false;
}