先在第一個影格定義暫停(pause)功能:
function pause(){然後在你想暫停幾秒的影格處輸入底下的程式碼:
play();
clearInterval(timer);
}
stop();這樣就OK了~
timer = setInterval(pause, 3000);
// 輸入3000就是停3秒, 輸入60000就是停60秒(一分鐘)
function pause(){然後在你想暫停幾秒的影格處輸入底下的程式碼:
play();
clearInterval(timer);
}
stop();這樣就OK了~
timer = setInterval(pause, 3000);
// 輸入3000就是停3秒, 輸入60000就是停60秒(一分鐘)
import flash.external.ExternalInterface;Flash會呼叫一支名為「addMoreFashion」的javascript程式(當然,你也可以改成其它的名字,只要能相互對應就好。)。接下來就是在html中加上Javascript程式,讓Flash呼叫用的:
import flash.external.*;
shareFashion.tt_btn.addEventListener(MouseEvent.CLICK, clickTwitter);
function clickTwitter(e:MouseEvent):void
{
ExternalInterface.call("addMoreFashion");
//呼叫Javascript中的「addMoreFashion」程式
}
<script language="JavaScript">其中,「新標題名稱」就是開建立標題後會顯示什麼字在上面;「fashion.htm」則是這支javascript所在的網頁名稱。
<!--
function addMoreFashion()
{
window.location=void(window.open('http://twitter.com/home/?status='.concat(encodeURIComponent(location.href)) .concat('').concat(encodeURIComponent('新標題名稱'))));
window.location = 'fashion.htm'
}
// -->
</script>
background:#111111 url(../images/bg.gif) no-repeat 50% 50%;不過,當你以各種不同的瀏覽器檢查時,可能會發現…其實有些瀏覽器只有水平置中而已,垂直的位置並未置中(不是落在50%的地方),所以畫面會有問題…有一個很簡單的方法可以輕鬆解決這個問題:增加background-attachment為fixed的屬性,即「background-attachment:fixed;」,便可讓背景圖案真正的水平、垂直皆置中:
background:#111111 url(../images/bg.gif) no-repeat fixed 50% 50%;
業主:「那我就直說好了…你的時薪是我們正職員工的兩倍以上!而且,如果我需要你幫忙,你也不會在上班時間隨時待命,是吧?」
Freelancer:「請問你會支付我的勞健保費、員工福利、病假、年假、退休金、…等其它福利津貼嗎?」
業主:「不會,當然不會!」
Freelancer:「那就對了,這就是為什麼你付錢找一個Freelancer而不是請正職員工的原因了!」



「當人們向上帝祈求耐心時,你想上帝是直接給他耐心?還是給他機會培養成為有耐心的人?」上面的文字是今天在奇摩新聞的連結所看到的一段話,我看了之後覺得很有哲理!
If someone prays for patience, you think God gives them patience, or does he give them the opportunity to be patient?
「當他祈求勇氣時,上帝是直接讓他有勇氣?還是給他機會磨練成為有勇氣的人?」
If he prayed for courage, does God give him courage, or does he give him opportunities to be courageous?
「當有人祈求希望家人之間可以更加親密和諧時,你想上帝會快速給她溫暖模糊的情感?還是給她機會去深刻體認家人之間的愛及重要性?」
If someone prayed for the family to be closer, do you think God zaps them with warm fuzzy feelings, or does he give them opportunities to love each other?



