以下針對jquery.blockUI v2.16的版本做修改。
因為jquery.blockUI在MSIE的處理上, 為了避免下拉選單的破洞問題, 使用了iframe做層級的處理
但因為ie6針對iframe的src若沒有設定值的話, 會有安全性的警告跑出來, 很惱人
以下為修改方式:
1. 做一個空白的頁面, 命名為blank.html, 放在根目錄
2. 修改jquery.blockUI.js 第187行, 把iframe的src屬性, 由src='about:blank' 改成 src='/blank.html'
如此一來, 在ie6就不會再有安全性警告跑出來了
參考:
http://malsup.com/jquery/block/#
http://support.microsoft.com/kb/261188/zh-tw
2010/03/08
2009/11/21
2009/11/15
Configuring System-Provided Bindings & Custom Bindings
Configuring System-Provided Bindings
http://msdn.microsoft.com/en-us/library/ms731092.aspx
Custom Bindings
http://msdn.microsoft.com/en-us/library/aa347793.aspx
Types Supported by the Data Contract Serializer
http://msdn.microsoft.com/en-us/library/ms731923.aspx
Binding Timeout
http://msdn.microsoft.com/en-us/library/system.servicemodel.channels.binding.receivetimeout.aspx
http://msdn.microsoft.com/en-us/library/ms731092.aspx
Custom Bindings
http://msdn.microsoft.com/en-us/library/aa347793.aspx
Types Supported by the Data Contract Serializer
http://msdn.microsoft.com/en-us/library/ms731923.aspx
Binding Timeout
http://msdn.microsoft.com/en-us/library/system.servicemodel.channels.binding.receivetimeout.aspx
2009/10/22
2009/09/10
2009/07/25
ProTranslate Lite - Free translate application for BlackBerry, use google api.
ProTranslate Lite是另一款使用google api的網路字典,比BBTran好的是沒有使用次數的限制。
http://software.crackberry.com/productMobile.asp?id=33522
發送自我的BlackBerry®智慧型手機。
http://software.crackberry.com/productMobile.asp?id=33522
發送自我的BlackBerry®智慧型手機。
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以下的版本有問題, 其他瀏覽器沒問題, 所以我改寫了一下
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";
}
}
}
訂閱:
文章 (Atom)
-
一個糖果有一個糖果紙 一個糖果1元 現在商店在作促銷 3個糖果紙可以換1個糖果 請問 15元最多可以吃幾個糖果?
-
簡單整理一下今天看到的這篇文章, 未來可以用指標來改善團隊狀況。 ----- 軟體工程的重要的指標 DORA 指標 (DevOps Research Assessment) 1. 部署頻率: 產品多快發佈出去 2. 投入到交貨的時間 (Lead-Time For Ch...
-
內容取自 Producthunt =============================== "What's a tool that changed your life?" - us to freelancers on Twitt...