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

推荐订阅源

A
Arctic Wolf
T
Tenable Blog
T
Troy Hunt's Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Privacy & Cybersecurity Law Blog
NISL@THU
NISL@THU
Application and Cybersecurity Blog
Application and Cybersecurity Blog
H
Hacker News: Front Page
S
Secure Thoughts
AWS News Blog
AWS News Blog
L
LINUX DO - 最新话题
D
Darknet – Hacking Tools, Hacker News & Cyber Security
M
MIT News - Artificial intelligence
T
Tor Project blog
S
Schneier on Security
PCI Perspectives
PCI Perspectives
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
美团技术团队
Google DeepMind News
Google DeepMind News
V
Visual Studio Blog
爱范儿
爱范儿
Google DeepMind News
Google DeepMind News
Cyberwarzone
Cyberwarzone
T
The Exploit Database - CXSecurity.com
罗磊的独立博客
T
Threat Research - Cisco Blogs
Recent Commits to openclaw:main
Recent Commits to openclaw:main
V
V2EX
C
CXSECURITY Database RSS Feed - CXSecurity.com
Stack Overflow Blog
Stack Overflow Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
G
GRAHAM CLULEY
L
LINUX DO - 热门话题
D
Docker
J
Java Code Geeks
GbyAI
GbyAI
H
Heimdal Security Blog
The Hacker News
The Hacker News
MongoDB | Blog
MongoDB | Blog
V
Vulnerabilities – Threatpost
T
Tailwind CSS Blog
Cloudbric
Cloudbric
TaoSecurity Blog
TaoSecurity Blog
C
CERT Recently Published Vulnerability Notes
Y
Y Combinator Blog
Recorded Future
Recorded Future
Cisco Talos Blog
Cisco Talos Blog
T
Threatpost
The Register - Security
The Register - Security
Hacker News - Newest:
Hacker News - Newest: "LLM"

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