解决Firefox中Iframe不能编辑的js

function MakeEditable(){  
    var theIframe = document.getElementById("wrEditor")  
    theIframe.contentWindow.document.body.contentEditable = true;  
 
     //in moz you cannot change desgin mode straight away so try and then retry  
     try{  
        theIframe.contentWindow.document.designMode = "on";  
    }catch(e){  
        setTimeout(MakeEditable,250);  
        return false;  
    }  
    return true;  
 }   




function Editor(content){

   
    document.write('<iframe name="wrEditor" id="wrEditor" width="1111" height="1111" src="about:blank" οnlοad="MakeEditable()"></iframe>');

   
    oEditor = document.wrEditor;
   
   
   
    var strHtml = '<html><style>{font-size:14px;line-height: 20px; margin:2px;}/ntd, a{color:#0000FF; font-size:14px;}</style><body>'+content+'</body></html>';
    oEditor.document.open();
    oEditor.document.write(strHtml);
    oEditor.document.close();
    
    oEditor.document.designMode="on";
    oEditor.focus();
}

 

 

SDCCN Checkpoint SecureClient Configuration
1    Things to consider before installation:
Disable All Firewall Products on Your PC (After finish configuration and initial test, you can try to enable your local firewall to see whether it is compatible with Checkpoint client. Section 5 lists all ports that need to be open.)
2    Installation
Install SecureClient with default installation options
Installation package: SC_NGX_R60_HFA1_598001019.msi
Reboot after installation
3    Configuration: change every 58.246.138.70 to 211.144.195.122
After installation and reboot, right click on SecureClient tray icon, choose settings
 

Select “Connections” -> “new -> “site”
 

Server address: 58.246.138.70
 

Authentication mode: username and password
 

Username and password: same as your office account (without domain name) and password
 

Connectivity settings: advanced
 

Perform IKE over TCP
 

Accept certificate validation (click “Next>”)
 

Finish
 

Select profile “58.246.138.70”, then click “Properties…”
 
 

Select gateway “fwcnsh”
 

Configure advanced properties
 
Click “OK” after you finish advanced properties
 

Additional options

 

Advanced

 

Click “OK”. This finishes all configurations.
 

4    Connect
After configuration, right click on SecureClient tray icon, choose “Connect…”
 
Username and password: same as your office account (without domain name) and password
 
Successful
   
After connected, you can remote desktop to your office computer by IP.

5    Ports and IP protocols numbers needed to be opened on a non-VPN gateway to enable VPN-1 SecuRemote/SecureClient trafic
 
 
Here is the list of ports and IP Protocol numbers that need to be open:

protocol 50 for ESP
UDP 2746 for UDP Encapsulation
UDP 500 for IKE
TCP 500 for IKE over TCP
TCP 18231 for Policy Server logon when the client is inside the network
UDP 18233 for Keepalive protocol when the client is inside the network
TCP 18232 for Distribution Server when the client is inside the network
TCP 264 for topology download
UCP 259 for MEP configuration
UDP 18234 for performing tunnel test when the client is inside the network
TCP 18264 for ICA certificate registration

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值