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

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
博客园 - Franky
MyScale Blog
MyScale Blog
Jina AI
Jina AI
B
Blog
Microsoft Security Blog
Microsoft Security Blog
T
Troy Hunt's Blog
博客园_首页
T
Threatpost
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
L
Lohrmann on Cybersecurity
GbyAI
GbyAI
T
Tenable Blog
B
Blog RSS Feed
S
Securelist
T
Threat Research - Cisco Blogs
P
Privacy International News Feed
P
Proofpoint News Feed
T
The Exploit Database - CXSecurity.com
H
Hackread – Cybersecurity News, Data Breaches, AI and More
量子位
博客园 - 三生石上(FineUI控件)
大猫的无限游戏
大猫的无限游戏
雷峰网
雷峰网
C
CXSECURITY Database RSS Feed - CXSecurity.com
罗磊的独立博客
AWS News Blog
AWS News Blog
V
V2EX
宝玉的分享
宝玉的分享
J
Java Code Geeks
小众软件
小众软件
Spread Privacy
Spread Privacy
腾讯CDC
Google Online Security Blog
Google Online Security Blog
月光博客
月光博客
V
Visual Studio Blog
The Hacker News
The Hacker News
C
CERT Recently Published Vulnerability Notes
Project Zero
Project Zero
Know Your Adversary
Know Your Adversary
T
The Blog of Author Tim Ferriss
Last Week in AI
Last Week in AI
Apple Machine Learning Research
Apple Machine Learning Research
NISL@THU
NISL@THU
C
Check Point Blog
Webroot Blog
Webroot Blog
D
DataBreaches.Net
Cloudbric
Cloudbric
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
IT之家
IT之家

博客园 - 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;
}