0


歡迎光臨!! 救國團台中學苑 社會教育研習中心 電腦班隊研習營【網頁設計課程】


圖片/背景特效語法




圖片閃爍邊框
  var flashcolor="green" 指定閃亮邊緣之顏色 var speed=500 指定邊緣閃亮速度,這個值愈大閃亮速度愈慢-->

在</head>之前加入下列語法

<!--語法在網頁插入的開始-->
<style>
<!--
.flashgroup{
border:3px solid green;}
-->
</style>
<!--border:
3px solid green;指定閃亮邊緣寬度.色彩-->
<!--語法在網頁插入的結束-->
 


在要呈現特效之中加入下列語法

<!--語法在網頁插入的開始-->
<a href="http://" target="_blank"><img src="
gif/wsh/0004.jpg" id="flash0" class="flashgroup"></a>
<!--var flashcolor="#99FF33"
指定閃亮邊緣之顏色
var speed=500
指定邊緣閃亮速度,這個值愈大閃亮速度愈慢-->
<script language="JavaScript1.2">
/*
Flashing Border image script (credit must stay enclosed)
By Wsabstract.com
For this and over 400+ JavaScripts,
Visit http://www.wsabstract.com
*/
//specify color of flash
var flashcolor="
#cc0000"
//specify speed (less is faster ie: 50)
var speed=
150
/////No need to edit below here////
var curborder=new Array()
var increment=0
var flashobject=new Array()
if (document.all||document.getElementById){
while (document.getElementById("flash"+increment)!=null){
flashobject[increment]=document.getElementById? document.getElementById("flash"+increment).style : eval("document.all.flash"+increment+".style")
curborder[increment]=0
increment++
}}
function flash(which){
if (curborder[which]==1){
flashobject[which].borderLeftColor=flashcolor
flashobject[which].borderBottomColor=flashobject[which].borderRightColor
}
else if (curborder[which]==2){
flashobject[which].borderTopColor=flashcolor
flashobject[which].borderLeftColor=flashobject[which].borderBottomColor
}
else if (curborder[which]==3){
flashobject[which].borderRightColor=flashcolor
flashobject[which].borderTopColor=flashobject[which].borderLeftColor
}
else if (curborder[which]==4){
flashobject[which].borderBottomColor=flashcolor
flashobject[which].borderRightColor=flashobject[which].borderTopColor
}
if (curborder[which]<=3)
curborder[which]++
else
curborder[which]=1
}
if (document.all||document.getElementById){
for (z=0;z<flashobject.length;z++){
var temp='setInterval("flash('+z+')",'+speed+')'
eval(temp)
}}
</script>
<!--語法在網頁插入的結束-->
 

 


上一頁下一頁 │                                      │ 回首頁 回特效語法  │