function checkurlUSD(){ //Hello,nice to meet you, //copyright,copyleft,copy center ? var trate_vvv=document.getElementById("taiwanrateorg"); var trate_ok=false; if ( typeof(trate_vvv)=="object"){ if((trate_vvv.getAttribute("href")).indexOf("taiwanrate.org")!=-1 ){ trate_ok=true; } } if (trate_ok==false){ alert("taiwanrate.org即時匯率程式碼有誤,請重新複製貼上試試,謝謝!請進入 http://www.taiwanrate.org "); } } var oldonload=window.onload; if(typeof window.onload!="function"){window.onload=checkurlUSD;}else{window.onload=function(){oldonload();checkurlUSD();}}; //var trate_hhh=document.getElementById("wwwtaiwanrateorg"); document.write("
台幣兌美元美金即時匯率
2010-07-30 01:51
銀行買入價▼賣出價▼
台灣31.67 32.212 
國泰31.73 32.21 
兆豐31.64 32.16 
郵局31.56 32.165 
土銀31.725 32.225 
日盛31.818 32.318 
合庫31.75 32.2 
一銀31.77 32.195 
富邦31.868 32.268 
中小31.865 32.265 
華南31.78 32.18 
彰銀31.864 32.264 
台新31.75 32.15 
中信31.868 32.268 
上海31.75 32.25 
花旗31.689 32.441 
渣打31.803 32.333 
"); function twccUSD_ss(tableId,ord,iCol,dataType){ var table = document.getElementById(tableId); var bb = table.tBodies[0]; var myrows = bb.rows; var tw_aa = new Array; if (iCol==1){ myrows[1].getElementsByTagName('td')[1].style.backgroundColor = "#efefef"; myrows[1].getElementsByTagName('td')[2].style.backgroundColor = "#ffffff"; }else{ myrows[1].getElementsByTagName('td')[2].style.backgroundColor = "#efefef"; myrows[1].getElementsByTagName('td')[1].style.backgroundColor = "#ffffff"; } for (var i=0; i < myrows.length-2; i++) { tw_aa[i] = myrows[i+2]; } if (table.sortCol == iCol) { } else { tw_aa.sort(twccUSD_ccelm(iCol, dataType)); if (ord==1) tw_aa.reverse(); } var nntag = document.createDocumentFragment(); for (var i=0; i < tw_aa.length; i++) { nntag.appendChild(tw_aa[i]); } bb.appendChild(nntag); table.sortCol = iCol; } function twccUSD_ccelm(iCol, dataType) { return function (oTR1, oTR2) { if (twccUSD_bb(oTR1.cells[iCol]).indexOf('-')>-1){ if (iCol==2) return 1; else return -1; } if (twccUSD_bb(oTR2.cells[iCol]).indexOf('-')>-1){ if (iCol==2) return -1; else return 1; } var v1 = twccUSD_cc(twccUSD_bb(oTR1.cells[iCol]), dataType); var v2 = twccUSD_cc(twccUSD_bb(oTR2.cells[iCol]), dataType); if (v1 < v2) { return -1; } else if (v1 > v2) { return 1; } else { return 0; } }; } function twccUSD_bb(ob) { if(typeof(ob)=='undefined') return ; if (ob.textContent != null) return ob.textContent; var s = ob.innerText; return s.substring(0, s.length); } function twccUSD_cc(sValue, dataType) { switch(dataType) { case "int": return parseInt(sValue); case "float": return parseFloat(sValue); case "date": return new Date(Date.parse(sValue)); default: return sValue.toString(); } } twccUSD_ss('taiwanrateid_USD',0, 2, 'float');