2009/07/24

解決ie6,ie7的select option disabled沒有作用的問題 Select, Option, Disabled And The JavaScript Solution In IE7, IE6, IE5.5

解決方案:
http://www.lattimore.id.au/2005/07/01/select-option-disabled-and-the-javascript-solution/

下載js檔, 並include到頁面即可, 作法是把頁面的select element找出來, 判斷有disabled的option就變顏色且不可選擇
http://www.lattimore.id.au/files/examples/select-option-disabled-emulation.js

因為只有在ie7以下的版本有問題, 其他瀏覽器沒問題, 所以我改寫了一下
if (navigator.appVersion.indexOf("MSIE 5.5") >= 0 || navigator.appVersion.indexOf("MSIE 6.0") >= 0 || navigator.appVersion.indexOf("MSIE 7.0") >= 0) {
window.onload = ReloadSelectElement;
}
function ReloadSelectElement() {
if (document.getElementsByTagName) {
var s = document.getElementsByTagName("select");
if (s.length > 0) {
window.select_current = new Array();
for (var i = 0, select; select = s[i]; i++) {
select.onfocus = function() { window.select_current[this.id] = this.selectedIndex; }
select.onchange = function() { restore(this); }
emulate(select);
}
}
}
}
function restore(e) {
if (e.options[e.selectedIndex].disabled) {
e.selectedIndex = window.select_current[e.id];
}
}
function emulate(e) {
for (var i = 0, option; option = e.options[i]; i++) {
if (option.disabled) {
option.style.color = "graytext";
}
else {
option.style.color = "menutext";
}
}
}

2009/07/06

BBFileScout 1.1

@Berryreview: [post] BBFileScout 1.1 Lets You Resize Images!!!: The awesome donationware/free utility BBFileScout has be.. http://tinyurl.com/lhuuyr



Twitter Link: http://twitter.com/Berryreview/statuses/2497511707



BBFileScout 1.1 加入調整圖片大小的功能。



Sent via SocialScope Lite (www.socialscope.net)

發送自我的BlackBerry®智慧型手機。

Onto Calendar

把e-mail的內容新增到calendar裡。



http://soundslikeobiwan.com/~roger/OntoCalendar/

發送自我的BlackBerry®智慧型手機。

Call Reminder

Call Reminder

類似Talk Later, 不同的是會把電話號碼新增到Calendar裡。



http://www.blackberrycool.com/2009/06/free-blackberry-call-reminder-app-works-with-calendar-and-messages/





發送自我的BlackBerry®智慧型手機。

GPSLogger Homepage - 100% free Software for BlackBerry® Devices with OS 4.2.1 or higher



可記錄GPS log, 轉換成kml檔後在google map上顯示。

GPSLogger Homepage - 100% free Software for BlackBerry® Devices with OS 4.2.1 or higher: "GPSLogger Homepage [100% free 100% offline]"

軟體工程的重要的指標