廣告廣告
  加入我的最愛 設為首頁 風格修改
首頁 首尾
 手機版   訂閱   地圖  簡體 
您是第 3206 個閱讀者
 
發表文章 發表投票 回覆文章
  可列印版   加為IE收藏   收藏主題   上一主題 | 下一主題   
loveboby0210
數位造型
個人文章 個人相簿 個人日記 個人地圖
小人物
級別: 小人物 該用戶目前不上站
推文 x0 鮮花 x6
分享: 轉寄此文章 Facebook Plurk Twitter 複製連結到剪貼簿 轉換為繁體 轉換為簡體 載入圖片
推文 x0
[JScript][討論] [轉貼]分享很多語法
!--圖示霧化_開始--
script
!--
function blu(a,b){
a.filters.blur.strength=b}
--
/script
img src=圖檔位置 style=filter:blur(strength=0) onMouseover=blu(this,10) onMouseout=blu(this,0)
!--圖示霧化_結束--

!--漸現的連結圖_開始--
script language=JavaScript
!--
function high(which2){
theobject=which2
highlighting=setInterval(highlightit(theobject),150)
}
function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=7
}
function highlightit(cur2){
if (cur2.filters.alpha.opacity100)
cur2.filters.alpha.opacity+=5
else if (window.highlighting)
clearInterval(highlighting)
}
--
/script
img src= 圖檔位置 alt=圖案漸漸地出現了 style=filter:alpha(opacity=40) onMouseover=high(this) onMouseout=low(this)
!--漸現的連結圖_結束--

!--水中倒影_開始--
img id=reflect src=圖檔路徑br
script language=JavaScript
function f1(){
setInterval(mdiv.filters.wave.phase+=10,100);
}
if (document.all){
document.write(img id=mdiv src=+document.all.reflect.src+ style=filter:wave(strength=3,freq=5,phase=3,lightstrength=3) blur() flipv())
window.onload=f1
}
/script
!--水中倒影_結束--

!--預警式防止複製_開始--
script language=JavaScript
!--
function right(e) {
if (navigator.appName ==Netscape&&
(e.which ==3|| e.which ==2))
return false;
else if (navigator.appName == Microsoft Internet Explorer &&
(event.button == 2|| event.button ==3)) {
alert(看不到~看不到~

裡面沒什麼好看的啦!);
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
--
/script
!--預警式防止複製_結束--

!--轉址式防止複製_開始--
script language=JavaScript
!--
if (navigator.appName.indexOf(Internet Explorer) != -1)
document.onmousedown = noSourceExplorer;
function noSourceExplorer()
{
if (event.button == 2 | event.button == 3)
{
alert(您已經按了右鍵,
疑似想偷看本站原始碼,
您將要受到懲罰,
就把您丟回首頁!);
location.replace(http://black.我是混蛋,,...告!/teach/);
}
}
--
/script
!--轉址式防止複製_結束--

!--十字瞄準線_開始--
style
!--
#leftright, #topdown{
position:absolute;
left:0;
top:0;
width:1px;/*十字線粗細*/
height:1px;/*十字線粗細*/
layer-background-color:#000000;
background-color:#FF0000;/*十字線色彩*/
z-index:100;
font-size:1px;
}
--
/style
div id=leftright style=width:expression(document.body.clientWidth-2)/div
div id=topdown style=height:expression(document.body.clientHeight-2)/div
script language=JavaScript
!--
if (document.all&&!window.print){
leftright.style.width=document.body.clientWidth-2
topdown.style.height=document.body.clientHeight-2
}
else if (document.layers){
document.leftright.clip.width=window.innerWidth
document.leftright.clip.height=1
document.topdown.clip.width=1
document.topdown.clip.height=window.innerHeight
}
function followmouse1(){
//move cross engine for IE 4+
leftright.style.pixelTop=document.body.scrollTop+event.clientY+1
topdown.style.pixelTop=document.body.scrollTop
if (event.clientXdocument.body.clientWidth-2)
topdown.style.pixelLeft=document.body.scrollLeft+event.clientX+1
else
topdown.style.pixelLeft=document.body.clientWidth-2
}
function followmouse2(e){
//move cross engine for NS 4+
document.leftright.top=e.y+1
document.topdown.top=pageYOffset
document.topdown.left=e.x+1
}
if (document.all)
document.onmousemove=followmouse1
else if (document.layers){
window.captureEvents(Event.MOUSEMOVE)
window.onmousemove=followmouse2
}
function regenerate(){
window.location.reload()
}
function regenerate2(){
setTimeout(window.onresize=regenerate,400)
}
if ((document.all&&!window.print)||document.layers)
//if the user is using IE 4 or NS 4, both NOT IE 5+
window.onload=regenerate2
--
/script
!--十字瞄準線_結束--

!--環繞跳舞星星_開始--
SCRIPT language=javascript
!--
var cx=0;
var cy=0;
var val=0;
function locate()
{ cx=window.event.x;
cy=window.event.y;
}
document.onmousemove=locate;
function follow(i)
{ var x;
if(i4)x=cx-50+i*10;
else x=cx-25+i*10;
var y=cy-20+Math.floor(Math.random()*40);
w=eval(word+i);
with(w.style)
{
left=x.toString()+px;
top=y.toString()+px;
}}
function show(i)
{
var w=eval(word+i);
with(w.style)
{
visibility=visible;
s=parseInt(fontSize);
if(s=200)s-=100;
else if(s90&&s=100)
{
s-=85;
clearInterval(val);
if(i7)val=setInterval(show(+(i+1)+),20);
}
fontSize=s;
}}
function start()
{ for(i=1;i=7;i++)
{
val=setInterval(show(1),20);
setInterval(follow(+i+),100);
}}
//--
/SCRIPT

SCRIPT language=javascript
!--
var word=new Array(7);
word[1]=☆;word[2]=★;word[3]=☆;word[4]=★;word[5]=☆;word[6]=★;word[7]=☆;
for(i=1;i=7;i++)
document.write(div id=word+i+ style=width:200px;height:200px;position:absolute;font-size:100;visibility:hiddenfont color=#CC0000+word+/font/div);start();
--
/SCRIPT
!--環繞跳舞星星_結束--



獻花 x0 回到頂端 [樓 主] From:台灣中華電信 | Posted:2005-10-24 23:23 |
hs0205 手機
個人文章 個人相簿 個人日記 個人地圖
小人物
級別: 小人物 該用戶目前不上站
推文 x1 鮮花 x74
分享: 轉寄此文章 Facebook Plurk Twitter 複製連結到剪貼簿 轉換為繁體 轉換為簡體 載入圖片

讚喔!謝謝大大啦!剛好可用到


獻花 x0 回到頂端 [1 樓] From:台灣 | Posted:2005-10-30 00:54 |
lucky456t
數位造型
個人文章 個人相簿 個人日記 個人地圖
小人物
級別: 小人物 該用戶目前不上站
推文 x0 鮮花 x5
分享: 轉寄此文章 Facebook Plurk Twitter 複製連結到剪貼簿 轉換為繁體 轉換為簡體 載入圖片

我是才剛學完不久,希望這對我有幫助,太感謝了! 表情


獻花 x0 回到頂端 [2 樓] From:台灣中華電信 | Posted:2005-12-02 23:26 |

首頁  發表文章 發表投票 回覆文章
Powered by PHPWind v1.3.6
Copyright © 2003-04 PHPWind
Processed in 0.017627 second(s),query:16 Gzip disabled
本站由 瀛睿律師事務所 擔任常年法律顧問 | 免責聲明 | 本網站已依台灣網站內容分級規定處理 | 連絡我們 | 訪客留言