国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > 網頁設計 > 正文

網頁制作有用的代碼

2020-03-22 19:40:33
字體:
來源:轉載
供稿:網友
請問如何去掉主頁右面的滾動條?
body scroll= no
body >********************************
怎樣不使用頁面的緩存?即每一次打開頁面時不是調用緩存中的東西
META HTTP-EQUIV= Pragma CONTENT= no-cache
********************************
請問如何忽視右鍵?
body oncontextmenu= return false
********************************
怎樣在同一頁面內控制不同鏈接的CSS屬性?
a:active{}
a:link{}
a:visited{}a.1:active{}
a.1:link{}
a.1:visited{}
在DW的CSS中定義一個新的標示,按照HTML的語法,超級連接得是
A.YOURS:LINK A.YOURS:HOVER
YOURS可以改作你自己的字
然后在選中某個連接后,在CSS面版中點中YOURS即可。
按需要,你可以定義N個標示,N種鼠標OVER的效果
********************************
電子郵件處理提交表單
form name= form1 method= post action= mailto:webmaster@phpstudy.net enctype= text/plain
input type=submit
/form
********************************
有沒有可能用層來遮住FLASH?
1.在flash的parameters里加入 param name= wmode html' target='_blank'>value= transparent
2. body onblur=self.focus()
********************************
如何根據屏幕分辨率調用相對應的頁面?
lert( 你的顯示分辯率為: +screen.width+ +screen.height)
先做好幾個頁面,比如一個htm1.htm是800*600,一個是htm2.htm是1024*768的
然后在你的入口頁面 index.htm 中判斷:
html
head
script language=javascript
!--
function mHref() {
if (screen.width == 1024) location.href = htm2.htm
else if (screen.width == 800) location.href = htm1.htm
else return(false);
}
//--
/script
/head
body onload= mHref();
/body
/html
********************************
如何彈出只有狀態欄的窗口?
html
head
title open() close() /title
script language= javascript type= text/javascript
!--
function openWin()
{
var newWin=open( , , menubar=1,height=200
newWin.document.write( form
newWin.document.write( 單擊以下按鈕關閉窗口: p
newWin.document.write( input type=button value='關閉' indow.close()
newWin.document.write( /form
}
/script /head
body
div align=center
h2 單擊以下按鈕顯示新窗口... /h2
form name=form1
input type=button value= 新窗口1[只顯示地址欄] indow.open('','new1','location=1')
input type=button value= 新窗口2[只顯示狀態欄] indow.open('','','status=1')
input type=button value= 新窗口3[只顯示工具欄] indow.open('','new2','toolbar=1,height=200,width=450')
input type=button value= 新窗口4[只顯示菜單欄] penWin()
input type=button value= 新窗口5[一個不少] indow.open('','new5')
input type=button value= 新窗口6[光棍但可調大小] indow.open('http://www.phpstudy.net/forumdisplay.php?forumid=32#thread','new6','resizable=1')
/form
/div
/body
/htmlhtml教程

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 庆安县| 八宿县| 沂南县| 社旗县| 萨嘎县| 简阳市| 天等县| 延边| 铜鼓县| 文成县| 都匀市| 壤塘县| 富宁县| 巧家县| 鹿邑县| 莲花县| 德令哈市| 兴国县| 衡阳县| 淅川县| 鞍山市| 咸阳市| 体育| 商丘市| 甘泉县| 行唐县| 来宾市| 开阳县| 金塔县| 静宁县| 西乌珠穆沁旗| 介休市| 库尔勒市| 五指山市| 漯河市| 呼伦贝尔市| 柞水县| 卓尼县| 海伦市| 平定县| 宁陕县|