2008/01/31

擺脫線的束縛 傳送最純淨的音質

這是幫藍芽電通作的平面廣告,算是測驗吧!還滿想去這工作的,不過機會渺茫,外包給我也不錯!外商公司耶多吸引人阿!
不過,我拿到素材不多,且主題不明,時間不夠,還有該死的photoshop當掉!所以藍芽耳機我帶的很假! 
GG-bluetooth_1

GG-bluetooth_2

GG-bluetooth_3

GG-bluetooth_4

GG-bluetooth_5

2008/01/09

盛夏的回憶×就從京都開始

這是隨手幫同學弄的,一個活動網站,感覺還是有點單調,風格不夠強烈,有待加強。

1 2

3

4

2008/01/03

[share]Sharebee快速檔案分享

擷取
優點:免註冊,一次上傳多空間分流。
缺點:30天有效。
她步算一個正式的網路空間,Sharebee的優點是會將你上傳的檔案,再分別幫你傳到
RapidSharezShareMegauploadBadongo 四個網路空間,然後於網頁中顯示個空間的下載網址。

使用期限:Sharebee說在檔案上傳後,在30天內有使用者參觀Sharebee或進入下載,Sharebee會讓檔案在四個空間永遠有效,但在30天後沒有使用者點選過,則30天後連結自動失效。
Sharebee

2008/01/01

[教學]HTML文件的階層架構 parentElement,children,contain

parentElement() 顯示比myP大一層的標籤
children()    顯示再往下一層找
contains():           檢查是否有子標籤(傳回true or flase)


source:


<html>
<head>
<title>存取父元素和子元素</title>
<script language="JavaScript">
function showParentTag(){
   alert(myP.parentElement.tagName);
}
function showChildsTag(){
   var strTags = "";
   for (var i=0; i<myP.children.length; i++){
      strTags += myP.children.item(i).tagName + " ";
   }
   alert(strTags);
}
function checkChild(){
   var objEle = document.all("myP").children.item(1);
   if (document.all("myP").contains(objEle))
      alert("myP有子元素" + objEle.tagName);
   else
      alert("myP沒有子元素" + objEle.tagName);
}
</script>
</head>
<body id="myBody">
<h2 id="myH2">存取父元素和子元素</h2>
<hr>
<p id="myP">存取<b><i>HTML</i></b>文件的<b>父元素</b>和<i>子元素</i></p>
<form>
<input type="button" onclick="showParentTag()" value="取得父元素">
<input type="button" onclick="showChildsTag()" value="顯示子元素">
<input type="button" onclick="checkChild()" value="檢查是否有子元素">
</form>
</body>
</html>


[教學]利用id取得HTML標籤

選擇ID寫法
   document.all ["ID"]
   document.all ("ID")

選擇索引值
   document.all["num"]
   document.all("num")


example:

<script type="text/javascript"><!--
function show(){
    document.write(document.all["mybody"].tagName);
}
--></script>

也可改寫成    document.write(mybody.tagName);  直接指定id

[教學]取得HTML文件裡的標籤和索引值


document.all(Num).tagName - 取得標籤名稱
document.all(Num).sourceIndex  - 取得索引值

for(i=0; i<document.all.length; i++){
        document.write(document.all(i).sourceIndex+" "+document.all(i).tagName)
}

[教學]取得檔案更新時間

document.write(document.lastModified);

[教學]取得網頁文件資訊

document.title 網頁標題
document.URL 本頁URL
document.referrer 上一頁URL

document.write(document.title);
document.write(document.URL);
document.write(document.referrer);

[教學]輸出在網頁上

1. document.write("String")
這三種寫法結果都一樣,都輸出粗體字

寫法一
<script type="text/javascript">
<!--
    document.write("<b>寫法一</b>");
//-->
</script>


寫法二
<b>
<script type="text/javascript">
<!--
    document.write("寫法二");
//-->
</script>
</b>


寫法三
<script type="text/javascript">
<!--
    document.write("寫法三".bold());
//-->
</script>

Tips

要以 document.write() 輸出大量文字時,為避免部分Browser version error
最好用 document.write("字串A"+"字串B"),將文章分割。

[教學]物件、函數、變數命名規則

1. 名稱須為以大小寫 的英文字母或從底線"_"開始的字串。
2. 不能使用中文。
3. 不能使用空白、逗號、問號、引號。
4. 字串可含有數值,但不能放在最前面。
5. 大小寫有區別。
6. 不能使用保留字。

系統預先保留起來的單字稱為保留字,這些保留字都不能拿來做任何物件命名
保留字


abatract
catch
default
extends
for
import
long
private
static
throw
typeof
boolean
char
delete
false
function
in
native
protected
super
throws
var
break
class
do
final
goto
instanceof
new
public
switch
transient
void
byte
const
double
finally
if
int
null
return
synchronized
true
while
case
contuinue
else
float
implements
interface
package
short
this
try
with