2014年5月5日 星期一

javasript的close視窗,在手機不會作用

Please  try it ::

<script language="JavaScript1.2">
function popuponclick()
{
my_window = window.open("",
  "mywindow","status=1,width=350,height=150");
my_window.document.write('<h1>
The Popup Window</H1>'); 
my_window.document.write('<a href="javascript: window.close();">Close the Popup Window</A>'); 
}

function closepopup()
{
    if(false == my_window.closed)
    {
    my_window.close();
    }
    else
   
    {
    alert('Window already closed!');
    }
}
</script>
<body>

<a href="javascript:%20popuponclick()">Open Popup Window</a>

<a href="javascript:%20closepopup()">Close the Popup Window</a>

</body>

XP電腦要如何更新微軟這次IE的漏洞呢?

先安裝KB2936068再安裝KB2964358否則只安裝最新的會有IE打不開的問題!!

http://download.microsoft.com/download/4/E/A/4EA4707A-7C39-486B-A761-EE17100C24DB/IE8-WindowsXP-KB2936068-x86-CHT.exe

http://download.microsoft.com/download/6/0/9/609115EA-02F5-4223-9C24-63A831E7092F/IE8-WindowsXP-KB2964358-x86-custom-CHT.exe

修復 *.lnk 檔案關聯

將下面的文字複製後 貼到記事本 (Notepad) 並存檔 檔案名稱命名為「lnk_recovery.reg」 最後滑鼠雙擊開啟「lnk_recovery.reg」試著點擊捷徑 應該已經恢復正常了

=====================================================================
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.lnk]
@="lnkfile"

[HKEY_CLASSES_ROOT\.lnk\ShellEx]

[HKEY_CLASSES_ROOT\.lnk\ShellEx\{000214EE-0000-0000-C000-000000000046}]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\.lnk\ShellEx\{000214F9-0000-0000-C000-000000000046}]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\.lnk\ShellEx\{00021500-0000-0000-C000-000000000046}]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\.lnk\ShellEx\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\.lnk\ShellNew]
"Handler"="{ceefea1b-3e29-4ef1-b34c-fec79c4f70af}"
"IconPath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\
00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,\
31,00,36,00,37,00,36,00,39,00,00,00
"ItemName"="@shell32.dll,-30397"
"MenuText"="@shell32.dll,-30318"
"NullFile"=""
"Command"=-

[HKEY_CLASSES_ROOT\.lnk\ShellNew\Config]
"DontRename"=""

[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.lnk\UserChoice]

=====================================================================