公告版位

本站於2009年10月28日成立,本人將盡力提供好的資訊,希望對大家會有幫助。也希望大家可以幫忙點一下廣告,謝謝大家。

歡迎參觀我的賣場

版權所有,引用請註明引用來源,謝謝光臨。 部份文章來源為網路上,如有侵權,請留言,我會馬上刪除,謝謝。

php執行javaScript的語法  

echo "<script language=\"JavaScript\">"; 
echo "window.alert(\"你未登入\");";  //警告對話方塊
echo "location.href(\"./\");";  //到首頁
echo "</script>";

css6 發表在 痞客邦 留言(0) 人氣()

歡樂水果盤
類似吃角子老虎遊戲,投入硬幣後再按右下的PLAY就可以開始了,看看你今天的運氣如何呢?

我要玩

css6 發表在 痞客邦 留言(0) 人氣()

16.png  

動作:

import flash.events.Event;
import fl.events.SliderEvent

var sound:Sound=new Sound(new URLRequest("1.mp3"));  //載入1.mp3
var soundCtl:SoundChannel=new SoundChannel();  //宣告SoundChannel
var transformSound:SoundTransform=new SoundTransform();  //宣告SoundTransform
transformSound.volume=1; //預設音量:1最大聲,0~1
soundCtl.soundTransform=transformSound;  //設定SoundChannel的音量
var setre:Number=0;  //播放的位置
var soundVolume:Number=10;  //音量改成0~10

sound.addEventListener(Event.COMPLETE,$complete);  //音樂載入完成
function $complete($e:Event):void{  //音樂載入完成的執行函數
 soundCtl=sound.play();  //播放(位置=0,重覆次數:無限次)
 soundCtl.addEventListener(Event.SOUND_COMPLETE,$soundComplete);  //播放完畢的監聽事件
 stop_btn.addEventListener(MouseEvent.CLICK,$stop);  //停止鍵的監聽
 play_btn.addEventListener(MouseEvent.CLICK,$play);  //播放鍵的監聽
 pause_btn.addEventListener(MouseEvent.CLICK,$pause);//暫停鍵的監聽
 pre_btn.addEventListener(MouseEvent.CLICK,$pre);    //上一首鍵的監聽
 next_btn.addEventListener(MouseEvent.CLICK,$next);  //下一首鍵的監聽
 vol_btn.up_btn.addEventListener(MouseEvent.CLICK,$up);    //音量大聲鍵的監聽
 vol_btn.down_btn.addEventListener(MouseEvent.CLICK,$down);//音量小聲鍵的監聽
}
function $soundComplete($e:Event){  //播放完畢的執行函數
 if(cont<5){  //共有5首mp3
  cont+=1; //跳下一首
 }else{
  cont=1;  //跳第1首
 }
 soundCtl.stop();  //先停止上一首mp3
 sound=new Sound(new URLRequest(cont + ".mp3"));  //載入下一首mp3
 soundCtl=sound.play();        //播放
 soundCtl.addEventListener(Event.SOUND_COMPLETE,$soundComplete);  //播放完畢的監聽事件
}
function $stop($e:MouseEvent):void{  //停止的執行函數
 soundCtl.stop();  //音樂停止
 setre=0;          //音樂位置:0,所以按「播放」時,會從頭播放
}

function $play($e:MouseEvent):void{  //播放的執行函數
 soundCtl=sound.play(setre,0);
}

function $pause($e:MouseEvent):void{  //暫停的執行函數
 setre=soundCtl.position;  //紀錄音樂的位置
 soundCtl.stop();          //音樂停止
}

function $next($e:MouseEvent):void{  //下一首的執行函數
 if(cont<5){  //共有5首mp3
  cont+=1; //跳下一首
 }else{
  cont=1;  //跳第1首
 }
 soundCtl.stop();  //先停止上一首mp3
 sound=new Sound(new URLRequest(cont + ".mp3"));  //載入下一首mp3
 soundCtl=sound.play();        //播放
 soundCtl.addEventListener(Event.SOUND_COMPLETE,$soundComplete);  //播放完畢的監聽事件
}

function $pre($e:MouseEvent):void{  //上一首的執行函數
 if(cont==1){  //如果在第1首,那上一首是第5首
  cont=5;
 }else{
  cont-=1;  //跳上一首
 }
 soundCtl.stop();  //先停止上一首mp3
 sound=new Sound(new URLRequest(cont + ".mp3"));  //載入上一首mp3
 soundCtl.addEventListener(Event.SOUND_COMPLETE,$soundComplete);  //播放完畢的監聽事件
 soundCtl=sound.play();       //播放
}

function $up($e:MouseEvent):void{  //音量調整大聲的執行函數
 if(soundVolume<10){  //音量小於10
         soundVolume+=2; //音量+2
   vol_btn.gotoAndStop(soundVolume/2+1);  //音量到適合的關鍵影格
    }
 transformSound.volume=soundVolume/10;    //音量0~10轉成0~1
    soundCtl.soundTransform=transformSound;  //設定音樂音量
}

function $down($e:MouseEvent):void{  //音量調整小聲的執行函數
    if(soundVolume>0){      //音量大於0
           soundVolume-=2;  //音量-2
     vol_btn.gotoAndStop(soundVolume/2+1);//音量到適合的關鍵影格
    }
 transformSound.volume=soundVolume/10;   //音量0~10轉成0~1
    soundCtl.soundTransform=transformSound; //設定音樂音量
}

如需範例檔,請MAIL:css6666@yahoo.com.tw

如果您認為內容不錯,也請幫我點個廣告,謝謝。

css6 發表在 痞客邦 留言(0) 人氣()

import flash.events.Event;
import fl.events.SliderEvent

var sound:Sound=new Sound(new URLRequest("1.mp3"));  //載入1.mp3
var soundCtl:SoundChannel=new SoundChannel();  //宣告SoundChannel

sound.addEventListener(Event.COMPLETE,$complete);  //音樂載入完成
function $complete($e:Event):void{  //音樂載入完成的執行函數
 soundCtl=sound.play();  //播放(位置=0,重覆次數:無限次)
 soundCtl.addEventListener(Event.SOUND_COMPLETE,$soundComplete);  //播放完畢的監聽事件
 stop_btn.addEventListener(MouseEvent.CLICK,$stop);  //停止鍵的監聽
 play_btn.addEventListener(MouseEvent.CLICK,$play);  //播放鍵的監聽
 pause_btn.addEventListener(MouseEvent.CLICK,$pause);//暫停鍵的監聽
}
function $soundComplete($e:Event){  //播放完畢的執行函數
 if(cont<5){  //共有5首mp3
  cont+=1; //跳下一首
 }else{
  cont=1;  //跳第1首
 }
 soundCtl.stop();  //先停止上一首mp3
 sound=new Sound(new URLRequest(cont + ".mp3"));  //載入下一首mp3
 soundCtl=sound.play();        //播放
 soundCtl.addEventListener(Event.SOUND_COMPLETE,$soundComplete);  //播放完畢的監聽事件
}
function $stop($e:MouseEvent):void{  //停止的執行函數
 soundCtl.stop();  //音樂停止
 setre=0;          //音樂位置:0,所以按「播放」時,會從頭播放
}

function $play($e:MouseEvent):void{  //播放的執行函數
 soundCtl=sound.play(setre,0);
}

function $pause($e:MouseEvent):void{  //暫停的執行函數
 setre=soundCtl.position;  //紀錄音樂的位置
 soundCtl.stop();          //音樂停止
}

如需範例檔,請MAIL:css6666@yahoo.com.tw

如果您認為內容不錯,也請幫我點個廣告,謝謝。

css6 發表在 痞客邦 留言(0) 人氣()

動作:

import flash.events.Event;
import fl.events.SliderEvent

var sound:Sound=new Sound(new URLRequest("1.mp3"));  //載入1.mp3
var soundCtl:SoundChannel=new SoundChannel();  //宣告SoundChannel

sound.addEventListener(Event.COMPLETE,$complete);  //音樂載入完成
function $complete($e:Event):void{  //音樂載入完成的執行函數
 soundCtl=sound.play();  //播放(位置=0,重覆次數:無限次)
}

 

如需範例檔,請MAIL:css6666@yahoo.com.tw

如果您認為內容不錯,也請幫我點個廣告,謝謝。

css6 發表在 痞客邦 留言(0) 人氣()

11.png

插入>>新增元件>>影片片段,如下圖:

15.png

屬性:

12.png13.png14.png  

動作:

import flash.events.Event;

this.stage.addEventListener(Event.ENTER_FRAME,$change);

function $change($e:Event):void{
 var time1:Date=new Date();
 h_mc.rotation=360/12*time1.getHours()+360/12/60*time1.getMinutes();
 m_mc.rotation=360/60*time1.getMinutes();
 s_mc.rotation=360/60*time1.getSeconds();
}

如需範例檔,請MAIL:css6666@yahoo.com.tw

如果您認為內容不錯,也請幫我點個廣告,謝謝。

文章標籤

css6 發表在 痞客邦 留言(0) 人氣()

5.png

拉5個文字框

4.png  

屬性:

6.png7.png8.png9.png10.png  

動作:

import fl.motion.Color;

this.stage.addEventListener(Event.ENTER_FRAME,$chang);
function $chang($e:Event):void{
 var time1:Date=new Date();
 //time_txt.text=time1.toString();
 year_txt.text=time1.getFullYear().toString() + "年";
 switch (time1.getDay()){ //0~11,0代表1月,11代表12月
  case 0:
   month_txt.text="一月";
   break;
  case 1:
   month_txt.text="二月";
   break;
  case 2:
   month_txt.text="三月";
   break;
  case 3:
   month_txt.text="四月";
   break;
  case 4:
   month_txt.text="五月";
   break;
  case 5:
   month_txt.text="六月";
   break;
  case 6:
   month_txt.text="七月";
   break;
  case 7:
   month_txt.text="八月";
   break;
  case 8:
   month_txt.text="九月";
   break;
  case 9:
   month_txt.text="十月";
   break;
  case 10:
   month_txt.text="十一月";
   break;
  case 11:
   month_txt.text="十二月";
   break;
 } 
 date_txt.text=time1.getDate().toString();

 switch (time1.getDay()){ //0~6,0代表星期日,6代表星期六
  case 1:
   week_txt.text="星期一";
   break;
  case 2:
   week_txt.text="星期二";
   break;
  case 3:
   week_txt.text="星期三";
   break;
  case 4:
   week_txt.text="星期四";
   break;
  case 5:
   week_txt.text="星期五";
   break;
  case 6:
   week_txt.text="星期六";
   break;
  case 0:
   week_txt.text="星期日";
   break;
 }
 time_txt.text=time1.getHours().toString() + "時";
 time_txt.text+=time1.getMinutes().toString() + "分";
 time_txt.text+=time1.getSeconds().toString() + "秒";
 if(time1.getDay()==6){
  year_txt.textColor=0x336600;
  date_txt.textColor=0x336600;
  month_txt.textColor=0x336600;
  week_txt.textColor=0x336600;
  time_txt.textColor=0x336600;
 }
 if(time1.getDay()==0){
  year_txt.textColor=0xFF0000;
  date_txt.textColor=0xFF0000;
  month_txt.textColor=0xFF0000;
  week_txt.textColor=0xFF0000;
  time_txt.textColor=0xFF0000;
 }
}

 如需範例檔,請MAIL:css6666@yahoo.com.tw

如果您認為內容不錯,也請幫我點個廣告,謝謝。

css6 發表在 痞客邦 留言(0) 人氣()

先用文字工具拉二個動態文字

1.png  

p>

屬性:

2.png3.png  

 

動作:

import flash.events.Event;

this.stage.addEventListener(Event.ENTER_FRAME,$chang);
function $chang($e:Event):void{
 var time1:Date=new Date();
 //time_txt.text=time1.toString();
 date_txt.text=time1.getFullYear().toString() + "年";
 date_txt.text+=(time1.getMonth()+1).toString() + "月";
 date_txt.text+=time1.getDate().toString() + "日";
 //date_txt.text+="星期" + time1.getDay().toString();
 switch (time1.getDay()){ //0~6,0代表星期日,6代表星期六
  case 1:
   date_txt.text+="星期一";
   break;
  case 2:
   date_txt.text+="星期二";
   break;
  case 3:
   date_txt.text+="星期三";
   break;
  case 4:
   date_txt.text+="星期四";
   break;
  case 5:
   date_txt.text+="星期五";
   break;
  case 6:
   date_txt.text+="星期六";
   break;
  case 0:
   date_txt.text+="星期日";
   break;
 }
 time_txt.text=time1.getHours().toString() + "時";
 time_txt.text+=time1.getMinutes().toString() + "分";
 time_txt.text+=time1.getSeconds().toString() + "秒";
}

 如需範例檔,請MAIL:css6666@yahoo.com.tw

如果您認為內容不錯,也請幫我點個廣告,謝謝。

css6 發表在 痞客邦 留言(0) 人氣()

21201175711581_107.jpg21201175711581_665.jpg  未命名-1.jpg  

 

商品新上架,限量特價中。

胸背尺寸:12.7公釐*34~51公分

拉繩尺寸:12.7公釐*120公分長

特價:200元

台灣製造,品質有保障。

請注意:

為了狗狗的健康,狗狗用品使用後怕會有毛,拆開後除了瑕疵外,不得退換貨。
 
����

css6 發表在 痞客邦 留言(0) 人氣()

21201175714034_98.jpg未命名-1.jpg21201175714034_275.jpg  

商品新上架,限量特價中。

胸背尺寸:19公釐*47~68公分

拉繩尺寸:19公釐*120公分長

特價:270元

台灣製造,品質有保障。

請注意:

為了狗狗的健康,狗狗用品使用後怕會有毛,拆開後除了瑕疵外,不得退換貨。

css6 發表在 痞客邦 留言(0) 人氣()

Close

您尚未登入,將以訪客身份留言。亦可以上方服務帳號登入留言

請輸入暱稱 ( 最多顯示 6 個中文字元 )

請輸入標題 ( 最多顯示 9 個中文字元 )

請輸入內容 ( 最多 140 個中文字元 )

reload

請輸入左方認證碼:

看不懂,換張圖

請輸入驗證碼