0


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


超連結特效語法




固定式圖檔連結

 

將原始碼複製到網頁中欲呈現特效的位置

<!--語法在網頁插入的開始-->
<SCRIPT LANGUAGE="JavaScript">
<!--
scriptfm = " ";
Source = "logo33.gif";
Link = "http://wssh0812.myweb.hinet.net/05/";
Border = 0;
Alt = "回首頁";
Width = 87;//寬
Height = 73;//高
Left = 5;
Top = 5;
if(document.all)
{
document.write("<SPAN ID=\"Watermark\" STYLE=\"position: absolute;\"><A HREF=\"" + Link + "\" TARGET=\"_blank\"><IMG SRC=\"" + Source + "\" WIDTH=\"" + Width + "\" HEIGHT=\"" + Height + "\" BORDER=\"" + Border + "\" ALT=\"" + Alt + "\"></A></SPAN>");
WmUpdate();
}
if(document.layers)
{
document.write("<LAYER ID=\"Watermark\" zIndex=\"1000\"><A HREF=\"" + Link + "\" TARGET=\"_blank\"><IMG SRC=\"" + Source + "\" WIDTH=\"" + Width + "\" HEIGHT=\"" + Height + "\" BORDER=\"" + Border + "\" ALT=\"" + Alt + "\"></A></LAYER>");
WmUpdate();
}
function WmUpdate()
{
if(document.all)
{
Watermark.style.pixelLeft = (document.body.scrollLeft + document.body.clientWidth) - (Width + Left);
Watermark.style.pixelTop = (document.body.scrollTop + document.body.clientHeight) - (Height + Top);
}
if(document.layers)
{
document.Watermark.left = (window.pageXOffset + window.innerWidth) - (Width + Left + 16);
document.Watermark.top = (window.pageYOffset + window.innerHeight) - (Height + Top + 16);
}
setTimeout("WmUpdate()",5);
}
//-->
</SCRIPT>
<!--語法在網頁插入的結束-->
 


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