HTML的制作技巧

自动连接

在预定时间后自动连入另一个指定的页面。

方法:

在<title>...</title>中加入以下一行:

<meta http-equiv="refresh" content="10"; url="otherpage.htm">

其中10代表10秒后自动连接。

 

提前载入图片

若要载入的图像过多时,可在前一页中提

前载入下一页的图片。加入以下一行:

<img src="image.jpg" width=0 height=0>

 

浮动背景

当你拉住下拉条时,背景不动。

(会使浏览速度减慢。:-(    )

加入:

<body backgroud="#ffff" bgproperties="fixed">

 

如何去掉主页超链接的下划线?

 

把下列语句放在<head>...</head>之间

<style>
B {font-weight: 700;
}
P {padding: 5px 0px;
margin: 0px;
font-family: 宋体,黑体,宋体;
}

A {text-decoration: none}
TD { font-family: 宋体,黑体,宋体;
}
</style>
<script language="javascript">
var contents = true;
</script>

更简单的是
<!--
a {text-decoration:none}
a:hover {color: red;text-decoration:underline}
-->
</style>

 

开启新窗

有些带FRAME的主页,经常在连接分页时出现一个小小的窗口。

以下为制作方法:

在<body>...</body>中加入:

<a href="http://seed.yeah.net" target="resource window"></a>

 

 

自动换行:

在主页中自动换行以适应不同的浏览器或分辨率。

(在front page98中已自动加入)

 

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

移动文字

这在主页上是常用的,其制作方法很简单。

<marquee>要移动的文字</marquee>

1.移动 的方向:<direction=!> !=left, right

2.移动的方式:<bihavior=!>  !=scroll ,side,alternate

3.循环次数:<loop=!>  !=次数。若未指定则循环不止。

4 循环速度:<scrollamount=!>  !=数字

你好! 你好!