Warning: error_log(/data/www/wwwroot/hmttv.cn/caches/error_log.php): failed to open stream: Permission denied in /data/www/wwwroot/hmttv.cn/phpcms/libs/functions/global.func.php on line 537 Warning: error_log(/data/www/wwwroot/hmttv.cn/caches/error_log.php): failed to open stream: Permission denied in /data/www/wwwroot/hmttv.cn/phpcms/libs/functions/global.func.php on line 537
段JavaScript腳本程序, 負(fù)責(zé)關(guān)閉窗口, 如果網(wǎng)頁不是通過腳本程序打開的(window.open()), 調(diào)用window.close()腳本關(guān)閉窗口前, 必須先將window.opener對象置為null,
否則瀏覽器(IE7、IE8)會彈出一個確定關(guān)閉的對話框。
解決方案有以下幾種方法:
1.指向自己關(guān)閉法
<script language="javaScript">
function closeWindow()
{
window.opener = null;
window.open(' ', '_self', ' ');
window.close();
}
</script>
<input type='button' value='關(guān)閉窗口' onClick="closeWindow()">
2.框架top關(guān)閉法
<script language="javaScript">
function closeWindow()
{
window.opener = null;
window.open('', '_top', '');
window.parent.close();
}
</script>
<input type='button' value='關(guān)閉窗口' onClick="closeWindow()">
3.另外還有一種網(wǎng)上常用的方法, 不過似乎對IE8不起作用但在IE6上是中簡單的直接關(guān)閉的方法
1、按Win+R鍵,打開運行,輸入regedit,點擊確定;
2、在注冊表編輯器界面中,展開至HKEY_USERSDEFAULTSoftwareMicrosoftWindowsCurrentVersionExplorer;
3、在右側(cè)新建一個名為“NoDesktop”的DWORD(32位)值,將數(shù)據(jù)數(shù)值修改為“1”即可。
、新建項目
1、新建===web項目===輸入項目名稱====完成
二、新建html文件
在新建項目中新建html模板
輸入文件名稱:
三、認(rèn)識基本格式
聯(lián)想出基本格式:
四、編輯html文件
運行html,選擇瀏覽器
五、html常用的快捷鍵
(1)ctrl+n+w web項目創(chuàng)建
(2)ctrl+n+h html文檔創(chuàng)建
(3)ctrl+s 保存html頁面(頁面上如果未保存會顯示*號)
(4)ctrl+r html運行
(5)ctrl+z 撤回
(6)!+tab鍵 聯(lián)想基本格式
(7)ctrl+/ 注釋和取消注釋
(8)ctrl+鼠標(biāo)滾輪, 字體方大和縮小
六、認(rèn)識標(biāo)簽
(1)H標(biāo)簽(標(biāo)題標(biāo)簽)
(2)p標(biāo)簽 (段落標(biāo)簽)
(3)img 標(biāo)簽(圖片標(biāo)簽)
兩種:第一種widows上傳圖片,第二種:網(wǎng)上圖片鏈接
第一種
img中顯示圖片
img中引入圖片
第二種:網(wǎng)上圖片的鏈接:
(4) 標(biāo)簽(空格)
(5)em 標(biāo)簽表示斜體
(6)i 標(biāo)簽表示斜體
(7)br 表示換行
(8)b 標(biāo)簽表示加粗
(9) strong 標(biāo)簽表示加粗
(10)s 標(biāo)簽(刪除線)
(11)u 標(biāo)簽 (下劃線)
(12)font 顏色
(13)sub下標(biāo)
(14)sup上標(biāo)
*請認(rèn)真填寫需求信息,我們會在24小時內(nèi)與您取得聯(lián)系。