egtra #9196(2009/06/18 12:41 GMT) [ JavaScript ] Rating0/0=0.00
1 2 3 4 5 6 7 8 9 10 11 12 13 14
function GetTinyUrlString(url) { var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); xmlhttp.open("GET", "http://tinyurl.com/api-create.php?url=" + url); xmlhttp.send(); var result = xmlhttp.responseText; if (result.toLowerCase() == "error") { throw "Tinyurl returns error"; } return result; } WScript.Echo(GetTinyUrlString("http://ll.jus.or.jp/2008/info/xgihyo"))
Rating0/0=0.00-0+
[ reply ]
egtra
#9196()
[
JavaScript
]
Rating0/0=0.00
Rating0/0=0.00-0+