⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 part5.cfm.htm

📁 最全的ASP教程
💻 HTM
字号:
<HTML>

<HEAD>

   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">

   <META NAME="GENERATOR" CONTENT="Mozilla/4.04 [en] (Win95; I) [Netscape]">

   <TITLE>欢迎光临</TITLE>

<SCRIPT LANGUAGE="JavaScript">

<!--



  document.onmouseover = doDocumentOnMouseOver ;

  document.onmouseout = doDocumentOnMouseOut ;



  function doDocumentOnMouseOver() {

    var eSrc = window.event.srcElement ;

    if (eSrc.className == "item") {

      window.event.srcElement.className = "highlight"; // change class

    }

  }



  function doDocumentOnMouseOut() {

    var eSrc = window.event.srcElement ;

    if (eSrc.className == "highlight") {

      window.event.srcElement.className = "item"; // change class

    }

  }





var bV=parseInt(navigator.appVersion);

NS4=(document.layers) ? true : false;

IE4=((document.all)&&(bV>=4))?true:false;

ver4 = (NS4 || IE4) ? true : false;



function expandIt(){return}

function expandAll(){return}

//-->

</SCRIPT>

<SCRIPT LANGUAGE="JavaScript1.2">

<!--

isExpanded = false;



function getIndex(el) {

	ind = null;

	for (i=0; i<document.layers.length; i++) {

		whichEl = document.layers[i];

		if (whichEl.id == el) {

			ind = i;

			break;

		}

	}

	return ind;

}



function arrange() {

	nextY = document.layers[firstInd].pageY + document.layers[firstInd].document.height;

	for (i=firstInd+1; i<document.layers.length; i++) {

		whichEl = document.layers[i];

		if (whichEl.visibility != "hide") {

			whichEl.pageY = nextY;

			nextY += whichEl.document.height;

		}

	}

}



function initIt(){

	if (NS4) {

		for (i=0; i<document.layers.length; i++) {

			whichEl = document.layers[i];

			if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "hide";

		}

		arrange();

	}

	else {

		tempColl = document.all.tags("DIV");

		for (i=0; i<tempColl.length; i++) {

			if (tempColl(i).className == "child") tempColl(i).style.display = "none";

		}

	}

}



function expandIt(el) {

	if (!ver4) return;

	if (IE4) {expandIE(el)} else {expandNS(el)}

}



function expandIE(el) { 

	whichEl = eval(el + "Child");

	whichIm = event.srcElement;



	if (whichEl.style.display == "none") {

		whichEl.style.display = "block";

		whichIm.src = "images/minus.gif";		

	}

	else {

		whichEl.style.display = "none";

		whichIm.src = "images/icon-t.gif";

	}

    window.event.cancelBubble = true ;

}



function expandNS(el) {

	whichEl = eval("document." + el + "Child");

	whichIm = eval("document." + el + "Parent.document.images['imEx']");

	if (whichEl.visibility == "hide") {

		whichEl.visibility = "show";

		whichIm.src = "images/minus.gif";

	}

	else {

		whichEl.visibility = "hide";

		whichIm.src = "images/icon-t.gif";

	}

	arrange();

}



function showAll() {

	for (i=firstInd; i<document.layers.length; i++) {

		whichEl = document.layers[i];

		whichEl.visibility = "show";

	}

}



function expandAll(isBot) {

	newSrc = (isExpanded) ? "minus.gif" : "icon-t.gif";



	if (NS4) {

        document.images["imEx"].src = newSrc;

		for (i=firstInd; i<document.layers.length; i++) {

			whichEl = document.layers[i];

			if (whichEl.id.indexOf("Parent") != -1) {

				whichEl.document.images["imEx"].src = newSrc;

			}

			if (whichEl.id.indexOf("Child") != -1) {

				whichEl.visibility = (isExpanded) ? "hide" : "show";

			}

		}



		arrange();

		if (isBot && isExpanded) scrollTo(0,document.layers[firstInd].pageY);

	}

	else {

		divColl = document.all.tags("DIV");

		for (i=0; i<divColl.length; i++) {

			if (divColl(i).className == "child") {

				divColl(i).style.display = (isExpanded) ? "none" : "block";

			}

		}

		imColl = document.images.item("imEx");

		for (i=0; i<imColl.length; i++) {

			imColl(i).src = newSrc;

		}

	}



	isExpanded = !isExpanded;

}



with (document) {

	write("<STYLE TYPE='text/css'>");

	if (NS4) {

		write(".parent {font-size:9pt; line-height:10pt; color:black; text-decoration:none; margin-top: 5px; margin-bottom: 5px; position:absolute; visibility:hidden; color: black;}");

		write(".child {text-decoration:none; font-size:9pt; line-height:10pt; position:absolute; visibility:hidden}");

	        write(".item { color: darkblue; text-decoration:none;}");

		write(".regular {position:absolute; visibility:hidden}");

	        write("DIV { color:black; }")

	}

	else {

		write(".child {font:12px/13px Times; display:none}");

		write(".parent {font:12px/13px Times; color:black; font-weight:bold; text-decoration:none; margin-top: 5px; margin-bottom: 5px; color: black;}");

	        write(".item { color: darkblue; text-decoration:none;}");

	        write(".highlight { color: red; }");

	        write(".heada { font: 12px/13px; Times}");

	        write("DIV { color:black; }")

	}

	write("</STYLE>");

}



onload = initIt;



//-->

</SCRIPT>

</HEAD>

<BODY BGCOLOR="#FFFFFF" LINK="#000000" VLINK="#808080" ALINK="#000000" topmargin="11" leftmargin="15" marginwidth="15" marginheight="11">

<font size=2>第二部分 标记及脚本语言</font><p>
<font size=2>第五章 初级HTML</font><br>
<DIV ID="elOneParent" CLASS="parent"><A HREF="#" class="item" onClick="expandIt('elOne'); return false"><IMG SRC="icon-t.gif" tppabs="http://210.74.168.175/guide/asp/part5/icon-t.gif" NAME="imEx" BORDER=0 HEIGHT=10 WIDTH=5></A><A HREF="#" class="item" onClick="expandIt('elOne'); return false">
<FONT COLOR="#000000"><a href="5-1.cfm.htm" tppabs="http://210.74.168.175/guide/asp/part5/5-1.cfm" class="item" target="right"><FONT SIZE=-1>什么是HTML文件</FONT></a></FONT></A></DIV>

<DIV ID="elOneChild" CLASS="child">
</DIV>

<DIV ID="elTwoParent" CLASS="parent"><A HREF="#" class="item" onClick="expandIt('elTwo'); return false"><IMG SRC="icon-t.gif" tppabs="http://210.74.168.175/guide/asp/part5/icon-t.gif" NAME="imEx" BORDER=0 HEIGHT=10 WIDTH=5></A><A HREF="#" class="item" onClick="expandIt('elTwo'); return false">
<FONT COLOR="#000000"><a href="5-2.cfm.htm" tppabs="http://210.74.168.175/guide/asp/part5/5-2.cfm" class="item" target="right"><FONT SIZE=-1>介绍HTML标识符</FONT></a></FONT></A>
</DIV>

<DIV ID="elTwoChild" CLASS="child">
</DIV>

<DIV ID="elThreeParent" CLASS="parent"><A HREF="#" class="item" onClick="expandIt('elThree'); return false"><IMG SRC="icon-t.gif" tppabs="http://210.74.168.175/guide/asp/part5/icon-t.gif" NAME="imEx" BORDER=0 HEIGHT=10 WIDTH=5></A><A HREF="#" class="item" onClick="expandIt('elThree'); return false">
<FONT COLOR="#000000"><a href="5-3.cfm.htm" tppabs="http://210.74.168.175/guide/asp/part5/5-3.cfm" class="item" target="right"><FONT SIZE=-1>HTML标准</FONT></a></FONT></A></DIV>

<DIV ID="elThreeChild" CLASS="child">
</DIV>

<DIV ID="elFourParent" CLASS="parent"><A HREF="#" class="item" onClick="expandIt('elFour'); return false"><IMG SRC="icon-t.gif" tppabs="http://210.74.168.175/guide/asp/part5/icon-t.gif" NAME="imEx" BORDER=0 HEIGHT=10 WIDTH=5></A><A HREF="#" class="item" onClick="expandIt('elFour'); return false">
<FONT COLOR="#000000"><FONT SIZE=-1>建立基本的网页</FONT></FONT></A></DIV>

<DIV ID="elFourChild" CLASS="child">
&nbsp;&nbsp;&nbsp;<A HREF="5-4-1.cfm.htm" tppabs="http://210.74.168.175/guide/asp/part5/5-4-1.cfm" class="item" target="right">.5-4-1</A>
<BR>&nbsp;&nbsp;&nbsp;<A HREF="5-4-2.cfm.htm" tppabs="http://210.74.168.175/guide/asp/part5/5-4-2.cfm" class="item" target="right">.5-4-2</A>
<BR>&nbsp;&nbsp;&nbsp;<A HREF="5-4-3.cfm.htm" tppabs="http://210.74.168.175/guide/asp/part5/5-4-3.cfm" class="item" target="right">.5-4-3</A>
<BR>&nbsp;&nbsp;&nbsp;<A HREF="5-4-4.cfm.htm" tppabs="http://210.74.168.175/guide/asp/part5/5-4-4.cfm" class="item" target="right">.5-4-4</A>
<BR>&nbsp;&nbsp;&nbsp;<A HREF="5-4-5.cfm.htm" tppabs="http://210.74.168.175/guide/asp/part5/5-4-5.cfm" class="item" target="right">.5-4-5</A>
<BR>&nbsp;&nbsp;&nbsp;<A HREF="5-4-6.cfm.htm" tppabs="http://210.74.168.175/guide/asp/part5/5-4-6.cfm" class="item" target="right">.5-4-6</A>
<BR>&nbsp;&nbsp;&nbsp;<A HREF="5-4-7.cfm.htm" tppabs="http://210.74.168.175/guide/asp/part5/5-4-7.cfm" class="item" target="right">.5-4-7</A>
<BR>&nbsp;&nbsp;&nbsp;<A HREF="5-4-8.cfm.htm" tppabs="http://210.74.168.175/guide/asp/part5/5-4-8.cfm" class="item" target="right">.5-4-8</A>
<BR>&nbsp;&nbsp;&nbsp;<A HREF="5-4-9.cfm.htm" tppabs="http://210.74.168.175/guide/asp/part5/5-4-9.cfm" class="item" target="right">.5-4-9</A>
<BR>&nbsp;&nbsp;&nbsp;<A HREF="5-4-10.cfm.htm" tppabs="http://210.74.168.175/guide/asp/part5/5-4-10.cfm" class="item" target="right">.5-4-10</A>
</DIV>

<DIV ID="elFiveParent" CLASS="parent"><A HREF="#" class="item" onClick="expandIt('elFive'); return false"><IMG SRC="icon-t.gif" tppabs="http://210.74.168.175/guide/asp/part5/icon-t.gif" NAME="imEx" BORDER=0 HEIGHT=10 WIDTH=5></A><A HREF="#" class="item" onClick="expandIt('elFive'); return false">
<FONT COLOR="#000000"><FONT SIZE=-1>连接HTML网页</FONT></FONT></A></DIV>

<DIV ID="elFiveChild" CLASS="child">
&nbsp;&nbsp;&nbsp;<A HREF="5-5-1.cfm.htm" tppabs="http://210.74.168.175/guide/asp/part5/5-5-1.cfm" class="item" target="right">.5-5-1</A>
<BR>&nbsp;&nbsp;&nbsp;<A HREF="5-5-2.cfm.htm" tppabs="http://210.74.168.175/guide/asp/part5/5-5-2.cfm" class="item" target="right">.5-5-2</A>
<BR>&nbsp;&nbsp;&nbsp;<A HREF="5-5-3.cfm.htm" tppabs="http://210.74.168.175/guide/asp/part5/5-5-3.cfm" class="item" target="right">.5-5-3</A>
<BR>&nbsp;&nbsp;&nbsp;<A HREF="5-5-4.cfm.htm" tppabs="http://210.74.168.175/guide/asp/part5/5-5-4.cfm" class="item" target="right">.5-5-4</A>
<BR>&nbsp;&nbsp;&nbsp;<A HREF="5-5-5.cfm.htm" tppabs="http://210.74.168.175/guide/asp/part5/5-5-5.cfm" class="item" target="right">.5-5-5</A>
</DIV>

<DIV ID="elIllParent" CLASS="parent"><A HREF="#" class="item" onClick="expandIt('elIll'); return false"><IMG SRC="icon-t.gif" tppabs="http://210.74.168.175/guide/asp/part5/icon-t.gif" NAME="imEx" BORDER=0 HEIGHT=10 WIDTH=5></A><A HREF="#" class="item" onClick="expandIt('elIll'); return false">
<FONT COLOR="#000000"><FONT SIZE=-1>加入图象</FONT></FONT></A></DIV>

<DIV ID="elIllChild" CLASS="child">
&nbsp;&nbsp;&nbsp;<A HREF="5-6-1.cfm.htm" tppabs="http://210.74.168.175/guide/asp/part5/5-6-1.cfm" class="item" target="right">.5-6-1</A>
<BR>&nbsp;&nbsp;&nbsp;<A HREF="5-6-2.cfm.htm" tppabs="http://210.74.168.175/guide/asp/part5/5-6-2.cfm" class="item" target="right">.5-6-2</A>
<BR>&nbsp;&nbsp;&nbsp;<A HREF="5-6-3.cfm.htm" tppabs="http://210.74.168.175/guide/asp/part5/5-6-3.cfm" class="item" target="right">.5-6-3</A>
<BR>&nbsp;&nbsp;&nbsp;<A HREF="5-6-4.cfm.htm" tppabs="http://210.74.168.175/guide/asp/part5/5-6-4.cfm" class="item" target="right">.5-6-4</A>
<BR>&nbsp;&nbsp;&nbsp;<A HREF="5-6-5.cfm.htm" tppabs="http://210.74.168.175/guide/asp/part5/5-6-5.cfm" class="item" target="right">.5-6-5</A>
<BR>&nbsp;&nbsp;&nbsp;<A HREF="5-6-6.cfm.htm" tppabs="http://210.74.168.175/guide/asp/part5/5-6-6.cfm" class="item" target="right">.5-6-6</A>
</DIV>

<DIV ID="elFiveParent" CLASS="parent"><A HREF="#" class="item" onClick="expandIt('elFive'); return false"><IMG SRC="icon-t.gif" tppabs="http://210.74.168.175/guide/asp/part5/icon-t.gif" NAME="imEx" BORDER=0 HEIGHT=10 WIDTH=5></A><A HREF="#" class="item" onClick="expandIt('elFive'); return false">
<FONT COLOR="#000000"><A HREF="../down.cfm.htm" tppabs="http://210.74.168.175/guide/asp/down.cfm" class="item" target="main"><FONT SIZE=-1>返回主目录</FONT></FONT></A></DIV>



<SCRIPT LANGUAGE="JavaScript1.2">

<!--

if (NS4) {

	firstEl = "elOneParent";

	firstInd = getIndex(firstEl);

	showAll();

	arrange();

}

//-->

</SCRIPT>

</BODY>

</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -