\\ 版面常用語法 //
Q O O Z A 專區終於成立了喇 ! ! 就 P O 點語法祝賀吧 . .
背景圖置中:
<STYLE>
body{ background-image: url(圖片網址); background-repeat: no-repeat;
background-attachment: fixed; background-position: 50% 50% }</STYLE>
背景向下滑:
<script language="VBScript">
dim i, pic
i = -1
pic = document.body.sourceIndex
sub scrollBG
i=i+1
Document.all(pic).style.BackgroundPosition= "0 " & i
id=SetTimeOut("scrollBG", 50, "VBScript")end sub
scrollBG</script>
背景斜移:
<SCRIPT language="Javascript">
var background = "圖片網址";
var speed = 80;
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (browserName != "Netscape" || browserVer >= 4.5) {
function moveback(movert,movedn,hPos,vPos) {
if (arguments[4])
document.body.style.backgroundImage = "url(\"" + arguments[4] + "\")";if (arguments[5])
document.body.style.backgroundRepeat = arguments[5]
if (!isNaN(hPos)) {
if ((movert!=0) && (hPos>0)) hPos=-100000
hPos += movert} if (!isNaN(vPos)) {
if ((movedn!=0) && (vPos>0)) vPos=-100000
vPos+= movedn}
document.body.style.backgroundPosition= hPos + " " + vPos
if (isNaN(hPos)) hPos = "\"" + hPos + "\""
if (isNaN(vPos)) vPos = "\"" + vPos + "\""
setTimeout("moveback("+movert+","+movedn+","+hPos+","+vPos+")",speed)
}moveback(1,1,0,0, background);}</SCRIPT>
背景圖淡化:
<style>
body{
background-image : url(背景圖網址);filter:Alpha(Opacity=40);
background-repeat : repeat;
background-attachment : fixed;}
</style>
板面灰階 :
<style>
body{filter:gray}
</style>
板面淡化 做成半透明效果:
<STYLE>
table{filter:Alpha(Opacity=60)}
</STYLE>
板面糢糊 :
<style>
body{filter:Blur(Direction=45,Strength=5)}
</style>
板面負片 :
<style>
body{Filter:Invert}
</style>
板面x光效果 :
<style>
body{Filter:Xray}
</style>
背景圖外圍模糊:
<style>
body{
background-image : url(背景圖網址);filter:Alpha(Opacity=99,style=2);
background-repeat : repeat;
background-attachment : fixed;}
</style>
留言板框加虛線:
<style>
table{style;border:2px dashed; border-color:white}
</style>
留言板框加點狀線:
<style>
table{style;border:2px dotted; border-color:white}
</style>
就暫時 p o 住咁多先吧 ! ! 有空的就再加 . . 要來十卜喔 ^ ^
[ 本帖最後由 RIriKY 於 2006-11-3 03:56 PM 編輯 ]
|