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

推荐订阅源

Spread Privacy
Spread Privacy
T
Threatpost
L
LINUX DO - 热门话题
Google Online Security Blog
Google Online Security Blog
I
InfoQ
大猫的无限游戏
大猫的无限游戏
博客园_首页
爱范儿
爱范儿
有赞技术团队
有赞技术团队
V
Visual Studio Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
酷 壳 – CoolShell
酷 壳 – CoolShell
P
Privacy International News Feed
C
Cyber Attacks, Cyber Crime and Cyber Security
Jina AI
Jina AI
博客园 - 聂微东
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
C
CERT Recently Published Vulnerability Notes
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
K
Kaspersky official blog
L
LangChain Blog
G
GRAHAM CLULEY
B
Blog RSS Feed
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
The Cloudflare Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
A
About on SuperTechFans
阮一峰的网络日志
阮一峰的网络日志
Last Week in AI
Last Week in AI
T
Tailwind CSS Blog
Cyberwarzone
Cyberwarzone
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed
Help Net Security
Help Net Security
S
Security @ Cisco Blogs
Cloudbric
Cloudbric
雷峰网
雷峰网
C
Check Point Blog
MongoDB | Blog
MongoDB | Blog
NISL@THU
NISL@THU
L
Lohrmann on Cybersecurity
Vercel News
Vercel News
T
Tor Project blog
T
The Exploit Database - CXSecurity.com
T
Troy Hunt's Blog
W
WeLiveSecurity
T
Threat Research - Cisco Blogs

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