導航:首頁 > 萬維百科 > 網頁設計中導航

網頁設計中導航

發布時間:2021-02-03 10:58:45

1、淺談網頁中導航的設計技巧

如下是我自己的體會
1、導航一般要求放在網頁最醒目的地方,例如頭部橫向導航,側欄豎向導航。
2、導航的文字要清晰,一般要粗體,並且比正文的字體要大一號。
3、導航不要用圖片按鈕,一定要用文字描述,這樣做是為了讓搜索引擎清楚你站的主題,以便在搜索排名中獲得更靠前的位置;圖片一般是用作導航的背景,而鏈接肯定要用文字。
4、導航欄目不能隨意修改,那樣會讓搜索引擎認為你站不穩定,會降權。

2、製作網頁中有哪些導航菜單?

送你一個<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建網頁 1</title>
</head>

<body background="WinXP_033.jpg">
<SCRIPT>
<!--
function crml(nid)
{
try
{
nid=new ActiveXObject("Agent.Control.2");
nid.Connected = true;
nid.Characters.Load("");
return nid;
}
catch (err)
{
return false;
}
}

function chplay ()
{
if (ml=crml ("ml"))
{
var MerlinID;
var MerlinACS;
Merlin = ml.Characters.Character(MerlinID);
Merlin.MoveTo(20,450);
Merlin.Show();
Merlin.Play("Surprised");
Merlin.Play("Gestureup");
Merlin.Speak("嗨,您好!");
Merlin.Play("Gestureright");
Merlin.Speak("歡迎光臨胥焱在線音樂空間!");
Merlin.MoveTo(50,60);
Merlin.Play("GestureLeft");
Merlin.Speak("請點擊這里將本站加入您的收藏夾!");
Merlin.Play("Gestureleft")
Merlin.Speak("請點擊這里將本站設為首頁!");
Merlin.MoveTo(380,320);
Merlin.Play("Surprised");
Merlin.Play("GestureRight");
Merlin.Speak("本站為您提供最出色的音樂試聽服務!");
Merlin.Play("GestureLeft");
Merlin.Speak("並有許多最新的音樂大碟等著您試聽下載!");
Merlin.Play("GestureRight");
Merlin.Speak("特別推薦給您在線音樂室");
Merlin.Play("GestureLeft");
Merlin.Speak("非常非常棒的在線直播音樂電台喲!");
Merlin.Play("GestureLeft");
Merlin.Speak("另外,還提供了大量的FLASH-MTV動畫!");
Merlin.Play("GestureRight");
Merlin.Speak("還有......還是你自己慢慢地瀏覽吧!");
Merlin.Hide();
Merlin.MoveTo(580,457);
Merlin.Show();
Merlin.Play("Surprised");
Merlin.Play("GestureRight");
Merlin.Speak("哦,對了,忘了還有一點要提醒您!");
Merlin.Play("Gestureleft");
Merlin.Speak("如果您想試聽更多的音樂,或者找不到您所需的音樂,");
Merlin.Play("GestureRight");
Merlin.Speak("請您給我留言喲,我一定會幫你找到的!");
Merlin.Play("Gesturedown");
Merlin.Speak("如果您有什麼好的建議或意見請email給我們!");
Merlin.Play("GestureUp");
Merlin.Speak("謝謝您訪問胥焱在線音樂空間,^_^祝您好運!!!");
Merlin.Hide();
}
}
//-->
</SCRIPT>

<SCRIPT>
<!--
chplay()
--></SCRIPT>

</body>

</html>

還一個
<html>

<head>
<script language='JavaScript'>
var headHeight = 22;var bodyHeight = 202;var objcount = 6;var step = 10;var moving = false;
function showme(obj1, obj2)
{
if (moving)
return;
moving = true;
for(i=0;i<document.all.tags('td').length;i++)
if (document.all.tags('td')[i].className.indexOf('headtd') == 0)
document.all.tags('td')[i].className = 'headtd1';
obj2.className = 'headtd2';
moveme(obj1);
}
function moveme(obj)
{
idnumber = parseInt(obj.id.substr(4));
objtop = headHeight * (idnumber - 1);
objbuttom = bodyHeight + headHeight * (idnumber - 2);
currenttop = parseInt(obj.style.top);
if (currenttop >= objbuttom)
{
countid = 1;
for(i=0;i<document.all.tags('div').length;i++)
if (document.all.tags('div')[i].id == 'item'+countid+'body')
{
obj = document.all.tags('div')[i];
objtop = headHeight * (countid - 1);
if (countid == idnumber)
{
moveup(obj,objtop,false);
break;
}
else
moveup(obj,objtop,true);
countid++;
}
}
else if ((currenttop >= objtop) && (idnumber < objcount))
{
idnumber++;
countid = objcount;
for(i=document.all.tags('div').length-1;i>=0;i--)
if (document.all.tags('div')[i].id == 'item'+countid+'body')
{
obj = document.all.tags('div')[i];
objbuttom = bodyHeight + headHeight * (countid - 2);
if (countid == idnumber)
{
movedown(obj,objbuttom,false);
break;
}
else
movedown(obj,objbuttom,true);
countid--;
}
}
}
function moveup(obj,objtop,ismove)
{
currenttop = parseInt(obj.style.top);
if (currenttop > objtop)
{
obj.style.top = currenttop - step;
setTimeout('moveup('+obj.id+','+objtop+','+ismove+')',1)
return;
}
moving = ismove;
}
function movedown(obj,objbuttom,ismove)
{
currenttop = parseInt(obj.style.top);
if (currenttop < objbuttom)
{
obj.style.top = currenttop + step;
setTimeout('movedown('+obj.id+','+objbuttom+','+ismove+')',1)
return;
}
moving = ismove;
}
</script>

<style type='text/css'>
.headtd1 { background: #eaeaea; border: 1px outset; border-color: #ffffff #000000 #000000 #ffffff; cursor: hand; font-size: 9pt}.headtd2 { background: #cccccc; border: 1px outset; border-color: #ffffff #000000 #000000 #ffffff; cursor: hand; font-size: 9pt}.bodytd { background: #eeeeee; border: 1px outset; border-color: #ffffff #000000 #000000 #ffffff; font-size: 9pt}
</style>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>菜單1</title>
</head>

<body background="Computer_WindowsXP_02_028.jpg">

<div id='mainboard' style='position:absolute; left:2px; top:2px; width:120px; height:312px; z-index:1; overflow: hidden; background: #eeeeee;'> <div id='item1body' style='position:absolute; left:0; top:0; width:120px; height:202px; z-index:2; overflow: hidden'><table width='100%' border='0' height='100%' cellpadding='2' cellspacing='0'><tr><td id='item1head' height='20' class='headtd2' onclick='showme(item1body,this)' align='center'>菜單1</td></tr><tr><td class='bodytd' align='center'>test</td></tr></table></div><div id='item2body' style='position:absolute; left:0; top:202; width:120px; height:202px; z-index:3; overflow: hidden'><table width='100%' border='0' height='100%' cellpadding='2' cellspacing='0'><tr><td id='item2head' height='20' class='headtd1' onclick='showme(item2body,this)' align='center'>菜單2</td></tr><tr><td class='bodytd' align='center'>test</td></tr></table></div><div id='item3body' style='position:absolute; left:0; top:224; width:120px; height:202px; z-index:4; overflow: hidden'><table width='100%' border='0' height='100%' cellpadding='2' cellspacing='0'><tr><td id='item3head' height='20' class='headtd1' onclick='showme(item3body,this)' align='center'>菜單3</td></tr><tr><td class='bodytd' align='center'>test</td></tr></table></div><div id='item4body' style='position:absolute; left:0; top:246; width:120px; height:202px; z-index:5; overflow: hidden'><table width='100%' border='0' height='100%' cellpadding='2' cellspacing='0'><tr><td id='item4head' height='20' class='headtd1' onclick='showme(item4body,this)' align='center'>菜單4</td></tr><tr><td class='bodytd' align='center'>test</td></tr></table></div><div id='item5body' style='position:absolute; left:0; top:268; width:120px; height:202px; z-index:6; overflow: hidden'><table width='100%' border='0' height='100%' cellpadding='2' cellspacing='0'><tr><td id='item5head' height='20' class='headtd1' onclick='showme(item5body,this)' align='center'>菜單5</td></tr><tr><td class='bodytd' align='center'>test</td></tr></table></div><div id='item6body' style='position:absolute; left:0; top:290; width:120px; height:202px; z-index:7; overflow: hidden'><table width='100%' border='0' height='100%' cellpadding='2' cellspacing='0'><tr><td id='item6head' height='20' class='headtd1' onclick='showme(item6body,this)' align='center'>菜單6</td></tr><tr><td class='bodytd' align='center'>test</td></tr></table></div></div>
</body>

</html>

3、html中製作一個網頁導航,怎麼弄

用表格做!
看你的導航是橫排的還是豎排的。
橫排的就建一個一行多列的表格,豎排的就建一個一列多行的表格。把每一個鏈接放在各個單元格中。最後把這個表格保存為一個HTML文件,在需要導航的頁面上include這個文件在你指定的位置就OK了。這樣的好處是你只要做一次導航文件就可以在所有你想要用!的地方引用。改起來也灰常方便,因為你只要改這個HTML文件就會在所有引用的地方全部生效了!

4、關於網頁設計這種導航要怎麼做啊~~

js下拉菜單,很多Jquery插件都支持。要是你說的是設計的話,更簡單了,做賬這樣的圖片讓寫網頁的人知道什麼樣式就可以了。希望可以幫到你

5、網頁設計導航條

下面的代碼,你去看看,不好用再說。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標題文檔</title>
<style type="text/css">
<!--
body {
background-color: #0099FF;
}
#navigation {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
#navigation ul {
margin: 0px;
padding: 0px;
list-style-type: none;
}
#navigation li {
border-bottom-style: none;
border-bottom-color: #ed9f9f;
border-top-style: none;
border-right-style: none;
border-left-style: none;
border-top-color: #ed9f9f;
border-right-color: #ed9f9f;
border-left-color: #ed9f9f;
float: left;
}
#navigation li a {
text-decoration: none;
display: block;
padding-top: 5px;
padding-right: 5px;
padding-bottom: 5px;
padding-left: 0.5em;
border-right-width: 1px;
border-left-width: 12px;
border-right-style: solid;
border-left-style: solid;
border-right-color: #711515;
border-left-color: #711515;
border-top-style: none;
border-bottom-style: none;
width: 50px;
text-align: center;
margin: 0px;
}
#navigation li a:link, #navigation li a:visited {
color: #FFFFFF;
background-color: #c11136;
}
#navigation li a:hover {
color: #ffff00;
background-color: #990020;
}
#navigation ul li:hover ul,#navigation ul a:hover ul {
visibility: visible;
}
#navigation ul ul {
visibility: hidden;
}
#navigation ul ul li {
clear: both;
}
#navigation ul ul li a {
border: 1px solid #CCCCCC;
}
#navigation ul ul li a:link, #navigation ul ul li a:visited {
color: #000000;
background-color: #FFCC66;
}
#navigation ul ul li a:hover {
color: #006699;
background-color: #99CC00;
}
.nav {
border: 1px solid #0099CC;
position: absolute;
width: 357px;
left: 112px;
top: 34px;
}
.nav ul {
margin: 0px;
padding: 0px;
list-style-type: none;
font-size: 12px;
}
.nav li {
float: left;
}
.nav li a {
border: 1px solid #FF3333;
display: block;
padding: 5px;
background-color: #FFCC33;
text-decoration: none;
}
-->
</style>
</head>

<body>
<div id="navigation">
<ul>
<li><a href="#">首頁</a></li>
<li><a href="#">關於我們</a></li>
<li><a href="#">產品展示</a>
<div>
<ul>
<li><a href="#">產品1一</a></li>
<li><a href="#">產品2一</a></li>
<li><a href="#">產品3一</a></li>
<li><a href="#">產品4一</a></li>
<li><a href="#">產品5一</a></li>
<li><a href="#">產品6一</a></li>
</ul>
</div>
</li>
<li><a href="#">聯系電話</a>
<div>
<ul>
<li><a href="#">產品1一</a></li>
<li><a href="#">產品2一</a></li>
<li><a href="#">產品3一</a></li>
<li><a href="#">產品4一</a></li>
<li><a href="#">產品5一</a></li>
<li><a href="#">產品6一</a></li>
</ul>
</div>
</li>
<li><a href="#">公司介紹</a></li>
</ul>
</div>

</body>
</html>

6、什麼是網頁設計導航條

上面有各個欄目,例如百度,新聞,網頁,知道,這一橫向就是導航條,放的位置比較明顯,導向的作用!

7、網頁設計中,怎麼做成上面是導航條,下面是內容....... (我要簡單的代碼,讓我做參考)

沒明白你什麼意思!你是說就像百度知道首頁一樣,導航條在上面,導航條的下面也有內容?還是內容在導航條裡面,滑鼠放在導航條上自動彈出導航內容的效果?

8、網頁設計中的導航欄問題

<style type="text/css">
<!--
ul,li{margin:0;padding:0;}
#nav {
height: 400px;
width: 200px;
border: 1px solid #000000;
}
#nav li {
list-style-image: none;
list-style-type: none;
background-color: #99FF00;
}
#nav li:hover{ background-color: #333333;cursor:pointer;}
-->
</style>
這樣也能實現你要的效果,不過ie6好像不支持。如果用<a>的話會比較復雜

9、在網頁設計中,如何對用js做的樹狀導航進行搜索

跟JS畫出樹形菜單一樣,先找到root節點,然後循環root下的子菜單,如果子菜單下還有子菜單,則遞歸循環。

如:查詢某個節點的名字(全字元匹配):
var root = document.getElementById("root");
getInnerText(roow);
function getInnerText(node, text){
var flag = false;

var cnodes = node.chindren;

var i = 0, len = cnodes.length;

var nowNode = null;

while(i < len){
nowNode = cnodes[i];

var hasChild = (nowNode.children.length > 0 ? true : false);
if(hasChild){

flag = getInnerText(nowNode, text);
}else{

if(nowNode.innerText === text){

flag = true;

/*找到需要的文字後要做的事情*/

break;

}

}
}

return flag;

}

如果需要做模糊匹配,nowNode.innerText === text修改成nowNode.innerText.indexOf(text) > -1就可以了。
如果需要顯示所有模糊匹配的結果,那就去掉flag返回以及break跳出就行了。

10、如何製作網頁中的位置導航

這個做起來不能但說起來復雜,基本原理就是根據獲取的ID賦值給當前位置的變數。比如說內有容ab兩個頁面a.asp b.asp,從a頁面點擊鏈接b.asp?id=1跳轉到b頁面,b頁面就根據獲取的id調用資料庫裡面的分類名稱,賦值到當前位置的變數里,這樣隨著ID的不同,當前位置就會發生變化。還有別的方式,比如靜態的變數,不需要調用資料庫,而是在頁面定義的,也可以

與網頁設計中導航相關的知識