var search = Name + "= "
var returnvalue =
if(document . cookie . length & gt;0) {
offset = document . cookie . index of(search)
如果(offset!= -1) {
偏移量+=搜索長度
end = document . cookie . index of(";",偏移);
if (end == -1)
end = document . cookie . length;
return value = unescape(document . cookie . substring(offset,end))
}
}
返回returnvalue
}
函數書簽(){
if (get_cookie('popped')==''){
//open popup();
Window.external.AddFavorite(','錦衣服飾官網');
document.cookie="popped=yes "
}
}