国产成人精品无码青草_亚洲国产美女精品久久久久∴_欧美人与鲁交大毛片免费_国产果冻豆传媒麻婆精东

18143453325 在線咨詢 在線咨詢
18143453325 在線咨詢
所在位置: 首頁 > 營銷資訊 > 網(wǎng)絡(luò)營銷 > 網(wǎng)頁制作過程中常用的20個功能代碼

網(wǎng)頁制作過程中常用的20個功能代碼

時間:2022-05-29 08:09:02 | 來源:網(wǎng)絡(luò)營銷

時間:2022-05-29 08:09:02 來源:網(wǎng)絡(luò)營銷

一個好的網(wǎng)頁制作要能充分吸引訪問者的注意力,讓訪問者產(chǎn)生視覺上的愉悅感。因此在網(wǎng)頁創(chuàng)作的時候就必須將網(wǎng)站的整體設(shè)計與網(wǎng)頁設(shè)計的相關(guān)原理緊密結(jié)合起來。那么在網(wǎng)頁制作過程中有哪些代碼功能能使我們的網(wǎng)站更加的個性化呢?

1、讓背景圖不滾動

IE瀏覽器支持一個Body屬性bgproperties,它可以讓背景不滾動,其代碼如下:

<Body Background="圖片文件" bgproperties="fixed">

2、讓你的網(wǎng)頁無法另存為

<noscript><iframe src=*></iframe></noscript>

3、讓IFRAME框架內(nèi)的文檔的背景透明

<iframe src="about:<body style=‘background:transparent‘>" allowtransparency></iframe>

4、禁止右鍵

<body oncontextmenu="return false" ondragstart="return false" onselectstart ="return false" onselect="document.selection.empty()" oncopy="document.selection.empty()" onbeforecopy="return false"onmouseup="document.selection.empty()">

5、進(jìn)入頁面后立即自動刷新

<meta http-equiv="refresh" content="120;url=http://www.mahaixiang.cn">

6、打開窗口即最大化

<script language="JavaScript">
  <!-- Begin
   self.moveTo(0,0)
   self.resizeTo(screen.availWidth,screen.availHeight)
  // End -->
  </script>

7、隱藏IFRAME的滾動條的三種方法

(1)、設(shè)置iframe scrolling="no"

(2)、被包含頁body應(yīng)用overflow:hidden

(3)、被包含頁的body標(biāo)簽加scroll="no"

8、加入背景音樂

<bgsound src="mid/windblue[1].mid" loop="-1">

  只適用于IE

<embed src="music.mid" autostart="true" loop="true" hidden="true">

  對Netscape ,IE ,TT都適用

9、嵌入網(wǎng)頁

<iframe name="tt" src="http://www.mahaixiang.cn/seoyjy/1.html" width="500" height="280" scrolling="Auto" frameborder="0"></iframe>

10、跳轉(zhuǎn)

<meta http-equiv="refresh" content="3;URL=list.htm">

11、滾動

<MARQUEE direction=up height=146 onmouseout=start() onmouseover=stop() scrollAmount=4></marquee>

12、細(xì)線分隔線

<hr noshade size=0 color=#C0C0C0>

13、過度方式

<meta http-equiv="Page-Exit" content="revealTrans(Duration=3,Transition=5)">

Duration的值為網(wǎng)頁動態(tài)過渡的時間,單位為秒。

Transition是過渡方式,它的值為0到23,分別對應(yīng)24種過渡方式。如下表所示:

14、如何控制橫向和縱向滾動條的顯隱

<body style="overflow-y:hidden"> 去掉x軸
  <body style="overflow-x:hidden"> 去掉y軸
  <body scroll="no">不顯

15、怎樣在網(wǎng)頁中加入E-mail鏈接并顯示預(yù)定的主題

<A href="mailto:Email@263.net?subject=主題">……</a>

16、定義本網(wǎng)頁關(guān)鍵字,可以在<Head></Head>中加入如下代碼

<meta name="Keywords" content="seo博客,億企邦,mahaixiang.cn">

Content 中所包含的就是關(guān)鍵字,你可以自行設(shè)置。

這里有個技巧,你可以重復(fù)某一個單詞,這樣可以提高單個頁面的關(guān)鍵詞密度,如:

<meta name="Keywords" content="seo博客,seo博客,seo博客">

17、添加到收藏夾

<a href="javascript:window.external.addFavorite(‘http://www.mahaixiang.cn‘,‘說明‘);">添加到收藏夾</a>

18、設(shè)為首頁

<a href=# onclick=this.style.behavior=‘url(#default#homepage)‘;this.setHomePage(‘http://www.mahaixiang.cn‘);>設(shè)為首頁</a>

19、定制瀏覽器地址欄前的小圖標(biāo)

在網(wǎng)頁的<head></head>間加入以下語句即可:

link rel="shortcuticon" href="http://www.mahaixiang.cn/icon.ico">

其中 icon.ico 為16x16的圖標(biāo)文件,顏色不要超過16色。

20、把滾動條放在瀏覽器窗口的左邊

在<body>中加dir=RTL,即<body dir=RTL>

億企邦點(diǎn)評:

隨著互聯(lián)網(wǎng)的發(fā)展需求,網(wǎng)站制作的布局設(shè)計將會變得越來越重要。訪問者不愿意再看到只注重內(nèi)容的站點(diǎn)。雖然內(nèi)容很重要,但只有當(dāng)網(wǎng)站制作和網(wǎng)頁內(nèi)容成功接合時,這種網(wǎng)頁或者說站點(diǎn)才是受人喜歡的。那么如何將這些功能技巧融入到網(wǎng)頁制作中,增加訪客的用戶體驗,將會是未來設(shè)計師們面對的最大的挑戰(zhàn)。

關(guān)鍵詞:功能,過程,中常

74
73
25
news

版權(quán)所有? 億企邦 1997-2022 保留一切法律許可權(quán)利。

為了最佳展示效果,本站不支持IE9及以下版本的瀏覽器,建議您使用谷歌Chrome瀏覽器。 點(diǎn)擊下載Chrome瀏覽器
關(guān)閉