㈠ 網頁導航菜單固定,具體一些
加在你的導航區塊,一般用position屬性,再用z-index把層級改高,實現漂浮固定在一個頁面位置。
㈡ 製作網頁中有哪些導航菜單
送你一個<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>
㈢ 如何設置好網站的導航欄目
導航欄設計是網站建設中非常重要的一個環節,設計一款可用的、足夠吸引人的導航,是多麼的重要。若想要你的網站足夠吸引人,必須要掌握如下幾點要點。
1.加入顯眼的搜索框
用戶經常使用搜索篩選信息,更快更直接獲取重要的信息,所以搜索款框應該突出展示,應該出現在每一個頁面上,應該和主導航欄一起存在,要易於訪問。強大的搜索框是讓用戶留存的重要影響因素之一。
2.不要隱藏導航
超級小的圖標,隱藏在頁腳,不顯眼的鏈接,這些對於增減用戶體驗而言都是非常不利的,會讓用戶覺得難以掌控。相反,時刻存在的導航讓用戶會更加安心,讓用戶時刻都擁有離開、跳轉的安全通道。
3.控制導航欄的數量
據頁面數據分析顯示,通常一個網站內的導航欄數量最好不要超出7個,這也是為了凸顯導航欄作用,作為導航欄,更應該起到的作用是將有價值的信息傳遞給用戶,而並非是把所有的東西都放在導航欄力還會給用戶留下非常不好的印象。
4.首要的導航擋在重要位置
基本上每一個網站的導航欄都會包含搜索、關於我們、首頁,聯系我們,而電商類的網站則通常會包含購物車、購買的按鈕。但是,不管怎麼樣,永遠將最關鍵、最重要的導航類目讓用戶看到,這才是導航所應該做到的事情。
㈣ 網頁導航菜單
這個我運行過,可以的了,就一個文件。
<style type="text/css">
.anylinkcss{
position:absolute;
visibility: hidden;
border:1px solid black;
border-bottom-width: 0;
font:normal 12px Verdana;
line-height: 18px;
z-index: 100;
background-color: #E9FECB;
width: 205px;
}
.anylinkcss a{
width: 100%;
display: block;
text-indent: 3px;
border-bottom: 1px solid black;
padding: 1px 0;
text-decoration: none;
font-weight: bold;
text-indent: 5px;
}
.anylinkcss a:hover{ /*hover background color*/
background-color: black;
color: white;
}
</style>
<script language="javascript">
var disappeardelay=250
var enableanchorlink=0
var hidemenu_onclick=1
var ie5=document.all
var ns6=document.getElementById&&!document.all
function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}
function showhide(obj, e, visible, hidden){
if (ie5||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie5 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var windowedge=ie5 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
}
return edgeoffset
}
function dropdownmenu(obj, e, dropmenuID){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
if (typeof dropmenuobj!="undefined")
dropmenuobj.style.visibility="hidden"
clearhidemenu()
if (ie5||ns6){
obj.onmouseout=delayhidemenu
dropmenuobj=document.getElementById(dropmenuID)
if (hidemenu_onclick) dropmenuobj.onclick=function(){dropmenuobj.style.visibility='hidden'}
dropmenuobj.onmouseover=clearhidemenu
dropmenuobj.onmouseout=ie5? function(){ dynamichide(event)} : function(event){ dynamichide(event)}
showhide(dropmenuobj.style, e, "visible", "hidden")
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}
return clickreturnvalue()
}
function clickreturnvalue(){
if ((ie5||ns6) && !enableanchorlink) return false
else return true
}
function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
function dynamichide(e){
if (ie5&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}
function delayhidemenu(){
delayhide=setTimeout("dropmenuobj.style.visibility='hidden'",disappeardelay)
}
function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}
</script>
<!--第一個鏈接和菜單 -->
<a href="" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu1')">網頁特效</a>
<div id="anylinkmenu1" class="anylinkcss">
<a href="">圖形圖像</a>
<a href="">滑鼠事件</a>
<a href="">時間日期</a>
<a href="">導航菜單</a>
<a href="">窗體變化</a>
<a href="">表單按鈕</a>
<a href="">特殊腳本</a>
<a href="">游戲娛樂</a>
</div>
<!--第二個鏈接和菜單 -->
<a href="" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu2')">網路學院</a>
<div id="anylinkmenu2" class="anylinkcss" style="width: 150px; background-color: lightyellow">
<a href="">網頁製作</a>
<a href="">網路編程</a>
<a href="">圖形圖像</a>
<a href="">多媒體製作</a>
<a href="">網站建設</a>
<a href="">操作系統</a>
</div>
㈤ 誰知道什麼是網站導航
一個網站導航系統的基礎是網站的欄目設置,在欄目之下還可以進一步設計其他輔助的導航手段,例如一種常見的形式是,通過在各個欄目的主菜單下面設置一個輔助菜單來說明用戶目前所在網頁在網站中的位置。其表現形式比較簡單,一般形式為:首頁>一級欄目>二級欄目>三級欄目>內容頁面。網站地圖也可以理解為網站導航系統的一部分。此外,還可以專門設置更為職能的導航系統,如果需要,可以隨時告訴用戶所在的欄目和位置。
網站導航的基本作用是為了讓用戶在瀏覽網站過程中不至迷失,並且可以方便地回到網站首頁以及其他相關內容的頁面。這主要是基於這樣一個重要事實:絕大多數用戶(大約50-90%)都不是通過一個網站的首頁逐級瀏覽各個欄目和網頁內容的,如果用戶從某個網頁來到一個網站,如果沒有詳細的導航引導,用戶則很容易在網站中迷失。 網站導航系統的專業與否也就影響著用戶對網站的感受,也是網站信息是否可以有效地傳遞給用戶的重要影響因素之一。
㈥ 學習網站有哪些導航菜單
列出了 7 種常見的響應式導航的設計模式,它們分別是:
置頂(或「放任自流」)
頁腳錨點
菜單選擇
開關
側滑
置底
徹底隱藏
上述每種設計模式都各有利弊,大家在選擇導航設計方案時,需要根據項目的實際情況作出判斷。
㈦ 導航的網頁導航欄
這里指的是網頁的導航。一般的網頁都有導航欄,方便用戶的瀏覽。所謂的網站的導航欄指的是引導用戶訪問網站的欄目、菜單、在線幫助、分類等布局結構等形式的總稱。所以網站建設的過程中一定要使網站導航結構清晰,能夠使訪問者在最短時間內找到自己喜歡的內容。對於導航的布局搜索引擎和用戶都有利,便於提升網站內的用戶操作和瀏覽,也便於搜索引擎目錄索引和識別。
㈧ 網頁導航欄的設計方式有哪些
導航欄的設計方式有很多種,通過專業的PS設計軟體,可以結合自己的靈感設計,網上有很多可以做為參考或欣賞。
㈨ 網站的banner和導航欄是指什麼
banner是網站頂端的一個大的圖片,有的固定一張有的是多張循環展示,banner是網站要給用戶的第一印象。
導航欄是網站最關鍵的位置,決定網站的結構,一般包含首頁、關於我們、產品介紹、企業資訊、聯系我們等等。
㈩ 網站建設菜單導航設計 怎樣做比別人的菜單更好
1、根據自己網站的定位,搜索和你同類型訪問量比較高的網站,可以藉助一些軟體或者專業的網站,研究競爭對手的網站。
2、可以藉助網路指數來確定關鍵詞。
3、確定好關鍵詞之後再來設置導航菜單。
4、根據導航菜單,再來設置頁面的布局和內容,這樣既能夠突顯自己的特性,又能夠比較容易的搜索的關鍵詞,有利於網路的收錄。