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>
2014年5月5日 星期一
XP電腦要如何更新微軟這次IE的漏洞呢?
修復 *.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]
=====================================================================
=====================================================================
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]
=====================================================================
2014年3月13日 星期四
How to change Windows Server 2012 product key
To change the Product Key in Windows Server 2012 do the following.
1. Press the windows key + R to bring up the run box.
2. Type "slui.exe 0x3" in the run box and click ok
3. Type in the new product key in the Windows Activation window and click "Activate".
1. Press the windows key + R to bring up the run box.
2. Type "slui.exe 0x3" in the run box and click ok
3. Type in the new product key in the Windows Activation window and click "Activate".
2014年3月11日 星期二
2014年3月10日 星期一
Android - There is no android project named
You are trying to run your Library Project, if the project is not library
Right Click on the Project >> Properties >> Android >> In the right Panel Scroll down >> Uncheck
Right Click on the Project >> Properties >> Android >> In the right Panel Scroll down >> Uncheck
isLibrary
android - "appcompat_v7" project is created automaticaly after
It's a support library which presumably your project refers to. You will need to build it as a library project in your workspace. This process is described here Support Library Setup under Adding libraries with resources.
You will find the project you need to copy in your SDK in the folder:
\yourSDKlocation\tools\android-sdk-windows4.4\extras\android\support\v7\appcompat
(It's no use just copying a jar, you must build it as a library project.)
You will find the project you need to copy in your SDK in the folder:
\yourSDKlocation\tools\android-sdk-windows4.4\extras\android\support\v7\appcompat
(It's no use just copying a jar, you must build it as a library project.)
2014年3月9日 星期日
iOS-解决"A valid provisioning profile for this executable was not found"
彈出了"A valid provisioning profile for this executable was not
found",即可執行 provisioning profile 沒有被找到。
解決方式是:
1、先檢查你的 provisioning profile 是否導入成功
Organizer ——> Devices ——> 選中運行的真機 ——> provisioning profiles 查看
(我一般會這樣做:先刪除該機的所有的provisioning profiles,然後再選中該機,右鍵 Add device to provisioning portal )
2、檢查 Project 和 Target 中的 Code Signing Identity 是否設置一樣
解決方式是:
1、先檢查你的 provisioning profile 是否導入成功
Organizer ——> Devices ——> 選中運行的真機 ——> provisioning profiles 查看
(我一般會這樣做:先刪除該機的所有的provisioning profiles,然後再選中該機,右鍵 Add device to provisioning portal )
2、檢查 Project 和 Target 中的 Code Signing Identity 是否設置一樣
訂閱:
文章 (Atom)