網頁語法

內有許多許多語法給大家,

令你們的網頁加添動畫及特技!!

日期時間顯示
自助點歌
自選底色
來訪次數
泡泡滑鼠
背景往下走
背景測試
晃動圖片
浮動公告視窗
停留時間
連結箭咀
無工具列視窗
登入時間
黑夜流星
滑鼠LOGO
滑鼠爆花米
圖片交替跑馬燈
小小視窗
網頁加框
標準體重
隨機播歌
顏色窗框邊
飄上效果
更新時間
可控視窗
固定背景
連結消除底線
更改軸色
自助點歌
瞄準線
自動換頁
防止偷圖
背景透明化
掉下來的文字
滑鼠特效
連結變化顏色
變色框框
背景變色
變色按鈕
下拉式背景選單
加到我的最愛
搜尋引擎

瞄準線

<style>
<!--
#leftright, #topdown{
position:absolute;
left:0;
top:0;
width:1px;
height:1px;
layer-background-color:black;
background-color:black;
z-index:100;
font-size:1px;
}
-->
</style>
<style type="text/css">
<!--
A:link {text-decoration:none;color:#ff0000}
A:visited {text-decoration:none;color:#ff0000}
table {font-size:12pt;line-height:100%;}
-->
</style>
<script language="JavaScript">
<!--
function MM_swapImgRestore() { //v2.0
if (document.MM_swapImgData != null)
for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)
document.MM_swapImgData[i].src = document.MM_swapImgData[i+1];
}
function MM_preloadImages() { //v2.0
if (document.images) {
var imgFiles = MM_preloadImages.arguments;
if (document.preloadArray==null) document.preloadArray = new Array();
var i = document.preloadArray.length;
with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){
preloadArray[i] = new Image;
preloadArray[i++].src = imgFiles[j];
} }
}

function MM_swapImage() { //v2.0
var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;
for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {
objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];
if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
(objStr.indexOf('document.all[') ==0 && document.all ==null))
objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);
obj = eval(objStr);
if (obj != null) {
swapArray[j++] = obj;
swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j];
obj.src = MM_swapImage.arguments[i+2];
} }
document.MM_swapImgData = swapArray; //used for restore
}
//-->
</script>
</head>
<body>
<div id="leftright" style="width:expression(document.body.clientWidth-2)"></div><div id="topdown" style="height:expression(document.body.clientHeight-2)"></div><script language="JavaScript1.2">
<!--

/*
Document crosshair Script-
By Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more free DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/

if (document.all&&!window.print){
leftright.style.width=document.body.clientWidth-2
topdown.style.height=document.body.clientHeight-2
}
else if (document.layers){
document.leftright.clip.width=window.innerWidth
document.leftright.clip.height=1
document.topdown.clip.width=1
document.topdown.clip.height=window.innerHeight
}
function followmouse1(){
//move cross engine for IE 4+
leftright.style.pixelTop=document.body.scrollTop+event.clientY+1
topdown.style.pixelTop=document.body.scrollTop
if (event.clientX<document.body.clientWidth-2)
topdown.style.pixelLeft=document.body.scrollLeft+event.clientX+1
else
topdown.style.pixelLeft=document.body.clientWidth-2
} function followmouse2(e){
//move cross engine for NS 4+
document.leftright.top=e.y+1
document.topdown.top=pageYOffset
document.topdown.left=e.x+1
} if (document.all)
document.onmousemove=followmouse1
else if (document.layers){
window.captureEvents(Event.MOUSEMOVE)
window.onmousemove=followmouse2
}
//-->
</script>
<div align="center"><center> <table border="0" width="495" height="38">
<tr>
<td width="11" height="38" rowspan="2" valign="middle" align="center"></td>
<td width="506" height="18" valign="middle" align="center"><font color="#FF0000"><br>
</font><p><font color="#FF0000"><small> </small></font></p>
<p><font color="#FF0000"><small> </small></font></p>
<p><font color="#FF0000"><small> </small></font></p>
<p><font color="#FF0000"><small> </small></font></p>
<p><font color="#FF0000"><small> </small></font></p>
<p><font color="#0000FF"><small> </small></font></td> </tr>