本文引用自sandy4042124 - ✖FONG YIの教學▶▶晉級留言語法
<a href="http://sandy4042124.pixnet.net/blog"><img src="http://i.imgur.com/11zyurp.png" alt=""""""""""楓伊"""""""""" border="0"></a>
✖語法
▍標題圖
<img src="圖片網址" border="0">
▍游標
<style type="text/css">
body {cursor:url(游標網址)}
</style>
body {cursor:url(游標網址)}
</style>
▍複製框
<INPUT onMouseOver="this.focus()" onFocus="select()" NAME="n" SIZE="30" style="color: 色碼; FONT-SIZE: 8pt; font-family:verdana;border:1 solid #ffffff)" VALUE="? 內容
">
">
▍跑馬燈
<TABLE style="border:1 dotted 色碼">
<TD bgcolor="色碼"></TD><TD bgcolor="色碼"></TD>
<TD width="350" align=center> <marquee direction=left scrollamount=4 width=200>
文字
</marquee></TD>
<TD bgcolor="色碼"></TD><TD bgcolor="色碼"></TD>
</TABLE>
▍板面距離
<style type="text/css">
body { margin-top: 0px; margin-left: 0px;
margin-right: 500px; margin-bottom: 0px }
</style>
▍背景置中
<STYLE>
body{ background-image: url(圖片網址); background-repeat: no-repeat;
background-attachment: fixed; background-position: 50% 50% }</STYLE>
▍選單(可增加)
<div align="center">
<a href="JavaScript:ShowSubMenu(1)">標題1</a>˙
<a href="JavaScript:ShowSubMenu(2)">標題2</a>˙
<a href="JavaScript:ShowSubMenu(3)">標題3</a>˙
<a href="JavaScript:ShowSubMenu(4)">標題4</a>˙
<a href="JavaScript:ShowSubMenu(5)">標題5</a>˙
<a href="JavaScript:ShowSubMenu(6)">標題6</a>˙
<a href="JavaScript:ShowSubMenu(7)">標題7</a>˙
<a href="JavaScript:ShowSubMenu(8)">標題8</a>˙
<a href="JavaScript:ShowSubMenu(9)">標題9</a>
<div id="SubMenu1" class="SubMenu" style="display:none">文字1</div>
<div id="SubMenu2" class="SubMenu" style="display:none">文字2</div>
<div id="SubMenu3" class="SubMenu" style="display:none">文字3</div>
<div id="SubMenu4" class="SubMenu" style="display:none">文字4</div>
<div id="SubMenu5" class="SubMenu" style="display:none">文字5</div>
<div id="SubMenu6" class="SubMenu" style="display:none">文字6</div>
<div id="SubMenu7" class="SubMenu" style="display:none">文字7</div>
<div id="SubMenu8" class="SubMenu" style="display:none">文字8</div>
<div id="SubMenu9" class="SubMenu" style="display:none">文字9</div>
<br>
<script language="JavaScript">
var currentMenu = 1;
function ShowSubMenu(id) {
if (document.all["SubMenu" + id].style.display == "")
{
document.all["SubMenu" + id].style.display = "none";
currentMenu = 0;
}
else
{
if (currentMenu != 0) {document.all["SubMenu" + currentMenu].style.display = "none";}
document.all["SubMenu" + id].style.display = "";
currentMenu = id;
}
}
</script>
※紅字部份可改
全站熱搜
留言列表