<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var answers = new Array(
"Yes.",
"No.",
"My sources are pointing toward yes.",
"It's possible.",
"Very unlikely.",
"Can you repeat the question?",
"Absolutely not.",
"Sure.",
"Ask again later."
);
function fortune() {
num = Math.round((answers.length - 1) * Math.random());
return answers[num];
}
// End -->
</script>
然後當我打電話fortune('text')
它從數組獲取一個值我將如何轉換這八個球腳本紅寶石
谷歌「僱用一個自由職業者」,或者,*你嘗試過什麼?* – alex 2012-04-17 12:16:31