DIV CSS 佈局教程網

 DIV+CSS佈局教程網 >> 網頁腳本 >> CSS入門知識 >> CSS詳解 >> 在頁面上特殊顯示的極酷的文字,同時可以旋轉
在頁面上特殊顯示的極酷的文字,同時可以旋轉
編輯:CSS詳解     

<!-- 把如下代碼加入<body>區域中 -->
第一步:把如下代碼加入<body>區域中
 <SCRIPT LANGUAGE="JavaScript">
<!-- Beginning of JavaScript -


var timer
function initiate() {
    mytext1.Rotate(0,0,10)
    mytext2.Rotate(0,0,-10)
    mytext3.Rotate(0,5,0)
mytext4.Rotate(0,5,5)
    timer=setTimeout("initiate()",20)
}
-->
</SCRIPT>
<OBJECT ID="mytext1"
CLASSID="CLSID:369303C2-D7AC-11d0-89D5-00A0C90833E6"
STYLE="POSITION:absolute;TOP:0px;LEFT:200px;WIDTH:300;HEIGHT:300">
<PARAM NAME="Line0001" VALUE="SetFillColor(0,0,255)">
<PARAM NAME="Line0002" VALUE="SetFont('돋움',
60, 700, 0, 0, 0)">
<PARAM NAME="Line0003" VALUE="Text('光臨', 0, 0, 0)">
</OBJECT> <OBJECT ID="mytext2"
CLASSID="CLSID:369303C2-D7AC-11d0-89D5-00A0C90833E6"
STYLE="POSITION:absolute;TOP:0px;LEFT:200px;WIDTH:300;HEIGHT:300;">
<PARAM NAME="Line0001" VALUE="SetFillColor(255,0,0)">
<PARAM NAME="Line0002" VALUE="SetFont('돋움',
40, 700, 0, 0, 0)">
<PARAM NAME="Line0003" VALUE="Text('歡迎', 0, 0, 0)">
</OBJECT> <OBJECT ID="mytext3"
CLASSID="CLSID:369303C2-D7AC-11d0-89D5-00A0C90833E6"
STYLE="POSITION:absolute;TOP:0px;LEFT:0px;WIDTH:600;HEIGHT:300;">
<PARAM NAME="Line0001" VALUE="SetFillColor(255,255,255)">
<PARAM NAME="Line0002" VALUE="SetFont('돋움',
24, 700, 0, 0, 0)">
<PARAM NAME="Line0003" VALUE="Text('http://www.knowsky.com', 0, 0, 0)">
</OBJECT>
<OBJECT ID="mytext4"
CLASSID="CLSID:369303C2-D7AC-11d0-89D5-00A0C90833E6"
STYLE="POSITION:absolute;TOP:0px;LEFT:0px;WIDTH:600;HEIGHT:300;">
<PARAM NAME="Line0001" VALUE="SetFillColor(255,111,255)">
<PARAM NAME="Line0002" VALUE="SetFont('.ff7;움',
60, 700, 0, 0, 0)">
<PARAM NAME="Line0003" VALUE="Text('*', 0, 0, 0)">
</OBJECT>
<!-- 第二步:把如下代碼加入<body>區域中 -->
<body bgcolor="#ffffff" onLoad="initiate()">

XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved