當前位置:編程學習大全網 - 源碼下載 - 我想學習網面制做誰可以幫我介紹壹些方法與代碼。。。

我想學習網面制做誰可以幫我介紹壹些方法與代碼。。。

經典的網頁代碼大奉送

1. oncontextmenu="window.event.return&#118alue=false" 將徹底屏蔽鼠標右鍵

<table border oncontextmenu=return(false)><td>no</table> 可用於Table

2. <body onselectstart="return false"> 取消選取、防止復制

3. onpaste="return false" 不準粘貼

4. oncopy="return false;" oncut="return false;" 防止復制

5. <link rel="Shortcut Icon" href="favicon.ico"> IE地址欄前換成自己的圖標

6. <link rel="Bookmark" href="favicon.ico"> 可以在收藏夾中顯示出妳的圖標

7. <input style="ime-mode:disabled"> 關閉輸入法

8. 永遠都會帶著框架

<script language="&#106avascript"><!--

if (window == top)top.location.href = "frames.htm"; //frames.htm為框架網頁

// --></script>

9. 防止被人frame

<SCRIPT LANGUAGE=&#106avascript><!--

if (top.location != self.location)top.location=self.location;

// --></SCRIPT>

10. <noscript><iframe src=*.html></iframe></noscript> 網頁將不能被另存為

11. <input type=button &#118alue=查看網頁源代碼

&#111nclick="window.location = 'view-source:'+ '"

autourl[4]="www.nuaa.edu.cn"

autourl[5]=www.cctv.com"

function butt(){

document.write("<form name=autof>")

for(var i=1;i<autourl.length;i++)

document.write("<input type=text name=txt"+i+" size=10 &#118alue=測試中……> =》<input type=text name=url"+i+" size=40> =》<input type=button &#118alue=GO &#111nclick=***********(this.form.url"+i+".&#118alue)><br/>")

document.write("<input type=submit &#118alue=刷新></form>")

}

butt()

function auto(url){

document.forms[0]["url"+b].&#118alue=url

if(tim>200)

{document.forms[0]["txt"+b].&#118alue="鏈接超時"}

else

{document.forms[0]["txt"+b].&#118alue="時間"+tim/10+"秒"}

b++

}

function run(){for(var i=1;i<autourl.length;i++)document.write("<img src=http://"+autourl[i]+"/"+Math.random()+" width=1 height=1 &#111nerror=auto('http://"+autourl[i]+"')>")}

run()</script>

29. 各種樣式的光標

auto :標準光標

default :標準箭頭

hand :手形光標

wait :等待光標

text :I形光標

vertical-text :水平I形光標

no-drop :不可拖動光標

not-allowed :無效光標

help :?幫助光標

all-scroll :三角方向標

move :移動標

crosshair :十字標

e-resize

n-resize

nw-resize

w-resize

s-resize

se-resize

sw-resize

  • 上一篇:簡述壹個類對其成員的三種存儲控制及其效果。
  • 下一篇:打造黨建聯動平臺
  • copyright 2024編程學習大全網