Jump to content
Sign in to follow this  
aubaby

Has the question or wrong about"_INetGetSource"

Recommended Posts

aubaby

post-34694-1246161175_thumb.jpg

post-34694-1246161447_thumb.jpg

MNT.ini

[tqinfo]

url=http://www.soso.com/tb.q

====

_INetGetSource Cannot the normal work

Share this post


Link to post
Share on other sites
exodius

This seems to work for me?

#include <Inet.au3>
MsgBox (0, "", _INetGetSource ("http://www.soso.com/tb.q"))

It gave me back:

CODE
<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<title>ËÑËÑÌìÆø</title>

<xml id="WeatherData" style="display:none">

<description>

<city><![CDATA[±±¾©]]></city>

<date><![CDATA[2009-06-28]]></date>

<data>

<today>

<temperature><![CDATA[23¡æ¡«35¡æ]]></temperature>

<weather><![CDATA[Çç]]></weather>

<wind><![CDATA[΢·ç]]></wind>

</today>

<tomorrow>

<temperature><![CDATA[23¡æ¡«36¡æ]]></temperature>

<weather><![CDATA[¶àÔÆ]]></weather>

<wind><![CDATA[΢·ç]]></wind>

</tomorrow>

<thirdDate>

<temperature><![CDATA[23¡æ¡«34¡æ]]></temperature>

<weather><![CDATA[Çç]]></weather>

<wind><![CDATA[΢·ç]]></wind>

</thirdDate>

</data>

</description>

</xml>

<style type="text/css">

<!--

<!--

body{margin:0px;background:#fff;color:#666;overflow-y:hidden;}

form,ul,li{margin:0;padding:0;}

img{border:0}

div,input,li{font-family:Arial,ËÎÌå;}

div{font-size:12px;line-height:150%;}

.fs_14{font-size:14px;}

.pd_l{padding-left:1px;margin-top:3px;}

.button{background:url(http://cache.soso.com/zdq/wea/ico2.gif) no-repeat;width:52px;height:23px;border:0px;}

.bg_pic{padding:8px 0 8px 10px;width:250px!important;width:260px;height:179px!important;height:195px;background:url(http://cache.soso.com/zdq/tb/day/tb_wether_01.jpg) 0 0 no-repeat;}

.titr{float:right;font:normal 12px "Arial","simsun",sans-serif;color:#746a7d;}

.title a{font-family:"ºÚÌå";font-size:18px;text-decoration:none;color:#45464c;}

.now{height:82px;width:238px;padding:2px 0 8px 0;display:block;}

.now li{float:left;list-style-type:none;text-align:left;line-height:160%;color:#000;}

.other{height:91px;width:248px;display:block;margin-top:6px;color:#464646;}

.other .today{margin:0 0 6px 3px;}

.other .weather{line-height:180%;padding-left:4px;}

.other ul{text-align:center;}

.other li{float:left;width:82px;height:60px;list-style-type:none;margin-right:1px;text-align:left;}

.city{position:absolute;top:30px;left:8px;background-color:#FFF;border:1px solid #22537c;width:152px;height:66px!important;height:58px;z-index:5;}

.city a{width:150px;display:block;text-decoration:none;color:#4f7aa4;}

.city a:hover{background:#36C;color:#fff;}

.city ul{text-align:center;}

.city li{list-style-type:none;text-align:left;line-height:22px;text-indent:5px;}

.city .morebg{background-color:#cedce7;}

.shadow{position:absolute;top:35px;left:12px;background-color:#26537d;width:150px;height:88px;z-index:4;filter:alpha(opacity=50);-moz-opacity:0.5;}

.more{position:absolute;top:5px;left:5px;background-color:#FFF;border:1px solid #22537c;width:245px;height:180px;z-index:5;}

.more .titlebg{display:block;background-color:#cedce7;width:243px;padding:4px 6px;color:#4f7aa4;font-weight:bold;}

.more .close{font-size:18px!important;font-size:12px;margin-left:140px;width:10px;}

.more .hand{cursor:pointer;}

.more .select{line-height:220%;padding-left:20px;display:block;}

.sheng{position:absolute;overflow-x:hidden;background-color:#FFF;overflow:scroll;width:170px;height:110px;border:1px solid #7f9db9;z-index:3;margin:20px 0px 0px -170px;}

.sheng a{width:155px;display:block;text-decoration:none;color:#000;}

.sheng a:hover{background:#36C;color:#fff;}

.sheng ul{text-align:center;}

.sheng li{list-style-type:none;text-align:left;line-height:22px;text-indent:5px;}

.shi{position:absolute;overflow-x:hidden;background-color:#FFF;overflow:scroll;width:170px;height:88px;border:1px solid #7f9db9;z-index:4;margin:20px 0px 0px -170px;}

.shi a{width:155px;display:block;text-decoration:none;color:#000;}

.shi a:hover{background:#36C;color:#fff;}

.shi ul{text-align:center;}

.shi li{list-style-type:none;text-align:left;line-height:22px;text-indent:5px;}

//-->

</style>

<script language="javascript" type="text/javascript">

<!--

$ = function(s) {return (typeof s == 'object') ? s: document.getElementById(s);}

function setPng(img, w, h) {

ua = window.navigator.userAgent.toLowerCase();

if(!/msie/.test(ua))

return;

imgStyle = "display:inline-block;" + img.style.cssText;

strNewHTML = "<span style=\"width:" + w + "px; height:" + h + "px;" + imgStyle + ";" + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + img.src + "', sizingMethod='scale');\"></span>";

img.outerHTML = strNewHTML;

}

//-->

</script>

</head>

<body><div class="bg_pic"><div class="now"><div class="title"><div class="titr">ʵʱÌìÆø&nbsp;20:11</div><a href="java script:void(0)" title="¸ü¸Ä³ÇÊÐ" onclick="showHistory()">±±¾©<img src="http://cache.soso.com/zdq/tb/tb_tqicon1.gif" align="absmiddle" style="margin-left:3px;"/></a></div><ul><li><img src="http://cache.soso.com/zdq/tb/night/b_a1.png" align="absmiddle" onload="setPng(this,60,50);"></li><li style="padding-top:8px;"><strong class="fs_14">¾Ö²¿¶àÔÆ£¬34¡æ</strong><br />¸ÐðָÊý£ºÉÙ·¢</li></ul></div><div class="other" onclick="java script:window.open('http://www.soso.com/q?cid=tb.tq.m&w=%B1%B1%BE%A9%CC%EC%C6%F8')" title="²é¿´ÏêÇé" style="cursor:pointer;"><ul><li><div class="today">½ñÌì(28ÈÕ)</div><div class="weather"><img src="http://cache.soso.com/zdq/tb/s_a0.png" onload="setPng(this,20,16);">&nbsp;Çç<div class="pd_l">23¡æ¡«35¡æ<br/>΢·ç</div></div></li><li><div class="today">Ã÷Ìì(29ÈÕ)</div><div class="weather"><img src="http://cache.soso.com/zdq/tb/s_a1.png" onload="setPng(this,20,16);">&nbsp;¶àÔÆ<div class="pd_l">23¡æ¡«36¡æ<br/>΢·ç</div></div></li><li style="margin-right:0;"><div class="today">ºóÌì(30ÈÕ)</div><div class="weather"><img src="http://cache.soso.com/zdq/tb/s_a0.png" onload="setPng(this,20,16);">&nbsp;Çç<div class="pd_l">23¡æ¡«34¡æ<br/>΢·ç</div></div></li></ul></div></div><div style="visibility:hidden;"><div class="city" id="history"><ul><li><a href="http://www.soso.com/tb.q?cid=tb.tq&cin=&city=%C9%CF%BA%A3" onclick="goHistory('ÉϺ£');" target="_self">ÉϺ£</a></li><li><a href="http://www.soso.com/tb.q?cid=tb.tq&cin=&city=%C9%EE%DB%DA" onclick="goHistory('ÉîÛÚ');" target="_self">ÉîÛÚ</a></li><li class="morebg"><a href="java script:void(0)" style="width:100%;" onclick="showMore();">Ñ¡ÔñÆäËû³ÇÊÐ&nbsp;►</a></li></ul></div></div><div style="visibility:hidden;" class="more" id="more" onmouseup="stopBubble();hideProv();hideCity();"><span class="titlebg">Ñ¡ÔñÆäËû³ÇÊÐ<span class="close" onclick="hideMore();"><span class="hand">¡Á</span></span></span><span class="select"><p><div style="float:left;width:36px;">Ê¡·Ý£º</div><div id="selProv" style="border:1px solid #7f9db9;border-right:0px;float:left;width:152px;background-color:#fff;padding:0px 2px 0px 4px;cursor:pointer;" onmouseup="stopBubble();switchProv();">ºÚÁú½­</div><div style="float:left;width:18px;cursor:pointer;" onmouseup="stopBubble();switchProv();"><img src="http://cache.soso.com/zdq/tb/select.gif" width="18" height="21" /></div><div class="sheng" id="provList" style="visibility:hidden;" onmouseup="stopBubble();"><ul><li><a href="java script:void(0);" onclick="setProv('°²»Õ');">°²»Õ</a></li><li><a href="java script:void(0);" onclick="setProv('°ÄÃÅ');">°ÄÃÅ</a></li><li><a href="java script:void(0);" onclick="setProv('±±¾©');">±±¾©</a></li><li><a href="java script:void(0);" onclick="setProv('ÖØÇì');">ÖØÇì</a></li><li><a href="java script:void(0);" onclick="setProv('¸£½¨');">¸£½¨</a></li><li><a href="java script:void(0);" onclick="setProv('¸ÊËà');">¸ÊËà</a></li><li><a href="java script:void(0);" onclick="setProv('¹ã¶«');">¹ã¶«</a></li><li><a href="java script:void(0);" onclick="setProv('¹ãÎ÷');">¹ãÎ÷</a></li><li><a href="java script:void(0);" onclick="setProv('¹óÖÝ');">¹óÖÝ</a></li><li><a href="java script:void(0);" onclick="setProv('º£ÄÏ');">º£ÄÏ</a></li><li><a href="java script:void(0);" onclick="setProv('ºÓ±±');">ºÓ±±</a></li><li><a href="java script:void(0);" onclick="setProv('ºÓÄÏ');">ºÓÄÏ</a></li><li><a href="java script:void(0);" onclick="setProv('ºÚÁú½­');">ºÚÁú½­</a></li><li><a href="java script:void(0);" onclick="setProv('ºþ±±');">ºþ±±</a></li><li><a href="java script:void(0);" onclick="setProv('ºþÄÏ');">ºþÄÏ</a></li><li><a href="java script:void(0);" onclick="setProv('¼ªÁÖ');">¼ªÁÖ</a></li><li><a href="java script:void(0);" onclick="setProv('½­ËÕ');">½­ËÕ</a></li><li><a href="java script:void(0);" onclick="setProv('½­Î÷');">½­Î÷</a></li><li><a href="java script:void(0);" onclick="setProv('ÁÉÄþ');">ÁÉÄþ</a></li><li><a href="java script:void(0);" onclick="setProv('ÄÚÃɹÅ');">ÄÚÃɹÅ</a></li><li><a href="java script:void(0);" onclick="setProv('ÄþÏÄ');">ÄþÏÄ</a></li><li><a href="java script:void(0);" onclick="setProv('Çຣ');">Çຣ</a></li><li><a href="java script:void(0);" onclick="setProv('ɽ¶«');">ɽ¶«</a></li><li><a href="java script:void(0);" onclick="setProv('ɽÎ÷');">ɽÎ÷</a></li><li><a href="java script:void(0);" onclick="setProv('ÉÂÎ÷');">ÉÂÎ÷</a></li><li><a href="java script:void(0);" onclick="setProv('ÉϺ£');">ÉϺ£</a></li><li><a href="java script:void(0);" onclick="setProv('ËÄ´¨');">ËÄ´¨</a></li><li><a href="java script:void(0);" onclick="setProv('̨Íå');">̨Íå</a></li><li><a href="java script:void(0);" onclick="setProv('Ìì½ò');">Ìì½ò</a></li><li><a href="java script:void(0);" onclick="setProv('Î÷²Ø');">Î÷²Ø</a></li><li><a href="java script:void(0);" onclick="setProv('Ïã¸Û');">Ïã¸Û</a></li><li><a href="java script:void(0);" onclick="setProv('н®');">н®</a></li><li><a href="java script:void(0);" onclick="setProv('ÔÆÄÏ');">ÔÆÄÏ</a></li><li><a href="java script:void(0);" onclick="setProv('Õã½­');">Õã½­</a></li></ul></div></p><div style="display:block;height:10px;"></div><p><div style="float:left;width:36px;">³ÇÊУº</div><div id="selCity" style="border:1px solid #7f9db9;border-right:0px;float:left;width:152px;background-color:#fff;padding:0px 2px 0px 4px;cursor:pointer;" onmouseup="stopBubble();switchCity();">¹þ¶û±õ</div><div style="float:left;width:18px;cursor:pointer;" onmouseup="stopBubble();switchCity();"><img src="http://cache.soso.com/zdq/tb/select.gif" width="18" height="21" /></div><div class="shi" id="cityList" onmouseup="stopBubble();"><!--ul><li><a href="java script:void(0)">¹þ¶û±õ</a></li></ul--></div></p><div style="display:block;height:10px;"></div><p>¡¡¡¡¡¡<input type="submit" value="È· ¶¨" class="button" onclick="setOK();">&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="È¡ Ïû" class="button" onclick="hideMore();"></p></span></div>

<script>

<!--

p2c = {

'°²»Õ':['»´ÄÏ','Âí°°É½','»´±±','Í­Áê','³üÖÝ','³²ºþ','³ØÖÝ','Ðû³Ç','ÙñÖÝ','ËÞÖÝ','¸·Ñô','Áù°²','°ö²º','ºÏ·Ê','Îߺþ','°²Çì','»Æɽ',''],

'°ÄÃÅ':['°ÄÃÅ',''],

'±±¾©':['±±¾©',''],

'ÖØÇì':['·î½Ú','ÖØÇì','¸¢Áê',''],

'¸£½¨':['ÆÎÌï','ÆÖ³Ç','ÄÏƽ','ÄþµÂ','¸£ÖÝ','ÁúÑÒ','ÈýÃ÷','ȪÖÝ','ÕÄÖÝ','ÏÃÃÅ',''],

'¸ÊËà':['ÕÅÒ´','½ð²ý','ÎäÍþ','À¼ÖÝ','°×Òø','¶¨Î÷','ƽÁ¹','ÇìÑô','¸ÊÄÏ','ÁÙÏÄ','ÌìË®','¼ÎÓø¹Ø','¾ÆȪ','¤ÄÏ',''],

'¹ã¶«':['ÄÏÐÛ','ÉعØ','ÇåÔ¶','÷ÖÝ','ÕØÇì','¹ãÖÝ','ºÓÔ´','ÉÇÍ·','ÉîÛÚ','ÉÇβ','Õ¿½­','Ñô½­','ïÃû','·ð¸Ô','÷ÏØ','µç°×','¸ßÒª','Ö麣','·ðɽ','½­ÃÅ','»ÝÖÝ','¶«Ý¸','ÖÐɽ','³±ÖÝ','½ÒÑô','ÔƸ¡',''],

'¹ãÎ÷':['¹ðÁÖ','ºÓ³Ø','ÁøÖÝ','°ÙÉ«','¹ó¸Û','ÎàÖÝ','ÄÏÄþ','ÇÕÖÝ','±±º£','·À³Ç¸Û','ÓñÁÖ','ºØÖÝ','À´±ö','³ç×ó',''],

'¹óÖÝ':['±Ï½Ú','×ñÒå','Í­ÈÊ','°²Ë³','¹óÑô','Ç­Î÷Äϲ¼ÒÀ×åÃç×å×ÔÖÎÖÝ','ÁùÅÌË®',''],

'º£ÄÏ':['º£¿Ú','ÈýÑÇ','ÍͲý','Çíº£','ÙÙÖÝ','ÎIJý','ÍòÄþ','¶«·½','³ÎÂõ','¶¨°²','ÁÙ¸ß','°×ɳÀè×å×ÔÖÎÏزý','ÀÖ¶«Àè×å×ÔÖÎÏØ','ÁêË®Àè×å×ÔÖÎÏØ','±£Í¤Àè×åÃç×å×ÔÖÎÏØ','ÇíÖÐÀè×åÃç×å×ÔÖÎÏØ',''],

'ºÓ±±':['ºªµ¦','ºâË®','ʯ¼Òׯ','ÐĮ̈','ÕżҿÚ','³ÐµÂ','Çػʵº','ÀÈ·»','ÌÆɽ','±£¶¨','²×ÖÝ',''],

'ºÓÄÏ':['°²Ñô','ÈýÃÅÏ¿','Ö£ÖÝ','ÄÏÑô','ÖÜ¿Ú','פÂíµê','ÐÅÑô','¿ª·â','ÂåÑô','ƽ¶¥É½','½¹×÷','º×±Ú','ÐÂÏç','å§Ñô','Ðí²ý','äðºÓ','ÉÌÇð','¼ÃÔ´',''],

'ºÚÁú½­':['´óÐË°²Áë','ºÚºÓ','ÆëÆë¹þ¶û','Ë绯','º×¸Ú','¼Ñľ˹','ÒÁ´º','˫Ѽɽ','¹þ¶û±õ','¼¦Î÷','Ä®ºÓ','´óÇì','Æß̨ºÓ','ĵµ¤½­','Ëç·ÒºÓ',''],

'ºþ±±':['Ïå·®','¾£ÃÅ','»Æ¸Ô','¶÷Ê©ÍÁ¼Ò×åÃç×å×ÔÖÎÖÝ','Î人','Âé³Ç','»Æʯ','¶õÖÝ','Т¸Ð','ÏÌÄþ','ËæÖÝ','ÏÉÌÒ','ÌìÃÅ','DZ½­','ÉñÅ©¼Ü','ÔæÑô',''],

'ºþÄÏ':['Õżҽç','ÔÀÑô','»³»¯','³¤É³','ÉÛÑô','ÒæÑô','³»ÖÝ','É£Ö²','ãäÁê','ÄÏÔÀ','ÖêÖÞ','Ïæ̶','ºâÑô','¦µ×','³£µÂ',''],

'¼ªÁÖ':['ÁÉÔ´','ͨ»¯','°×³Ç','ËÉÔ­','³¤´º','¼ªÁÖÊÐ','èëµé','Ñӱ߳¯ÏÊ×å×ÔÖÎÖÝ','¼¯°²','°×ɽ','ËÄƽ',''],

'½­ËÕ':['ÎÞÎý','ËÕÖÝ','íìíô','¸ÓÓÜ','¶«Ì¨','¸ßÓÊ','Õò½­','Ì©ÖÝ','ËÞǨ','ÐìÖÝ','Á¬ÔƸÛ','»´°²','ÄϾ©','ÑïÖÝ','ÑγÇ','ÄÏͨ','³£ÖÝ',''],

'½­Î÷':['®ɽ','Óñɽ','¹óϪ','¹ã²ý','ƼÏç','ÐÂÓà','ÒË´º','¸ÓÖÝ','¾Å½­','¾°µÂÕò','Äϲý','ӥ̶','ÉÏÈÄ','¸§ÖÝ',''],

'ÁÉÄþ':['ºù«µº','Å̽õ','ÁÉÑô','ÌúÁë','¸·ÐÂ','³¯Ñô','½õÖÝ','°°É½','ÉòÑô','±¾Ïª','¸§Ë³','Óª¿Ú','µ¤¶«','Íß·¿µê','´óÁ¬',''],

'ÄÚÃɹÅ':['ºôÂ×±´¶û','ÐË°²ÃË','ÎýÁÖ¹ùÀÕÃË','°ÍÑåÄ׶ûÃË','°üÍ·','ºôºÍºÆÌØ','ÎýÁÖºÆÌØ','ͨÁÉ','³à·å','ÎÚº£','¶õ¶û¶à˹','ÎÚÀ¼²ì²¼ÃË',''],

'ÄþÏÄ':['ʯ×ìɽ','Òø´¨','ÎâÖÒ','¹ÌÔ­',''],

'Çຣ':['º£±±²Ø×å×ÔÖÎÖÝ','º£ÄϲØ×å×ÔÖÎÖÝ','Î÷Äþ','ÓñÊ÷²Ø×å×ÔÖÎÖÝ','»ÆÄϲØ×å×ÔÖÎÖÝ','¹ûÂå²Ø×å×ÔÖÎÖÝ','º£Î÷ÃɹÅ×å²Ø×å×ÔÖÎÖÝ','º£¶«',''],

'ɽ¶«':['µÂÖÝ','±õÖÝ','ÑĮ̀','ÁijÇ','¼ÃÄÏ','Ì©°²','×Ͳ©','Ϋ·»','Çൺ','¼ÃÄþ','ÈÕÕÕ','̩ɽ','Ôæׯ','¶«Óª','Íþº£','À³Îß','ÁÙÒÊ','ºÊÔó',''],

'ɽÎ÷':['³¤ÖÎ','½úÖÐ','Ë·ÖÝ','´óͬ','ÂÀÁº','ÐÃÖÝ','Ì«Ô­','ÑôȪ','ÁÙ·Ú','Ô˳Ç','½ú³Ç','Îą̊ɽ',''],

'ÉÂÎ÷':['ÓÜÁÖ','ÑÓ°²','Î÷°²','μÄÏ','ººÖÐ','ÉÌÂå','°²¿µ','Í­´¨','±¦¼¦','ÏÌÑô',''],

'ÉϺ£':['ÉϺ£',''],

'ËÄ´¨':['¸Ê×βØ×å×ÔÖÎÖÝ','°¢°Ó²Ø×åǼ×å×ÔÖÎÖÝ','³É¶¼','ÃàÑô','ÑÅ°²','¶ëüɽ','ÀÖɽ','Ò˱ö','°ÍÖÐ','´ïÖÝ','ËìÄþ','Äϳä','ãòÖÝ','×Ô¹±','ÅÊÖ¦»¨','µÂÑô','¹ãÔª','ÄÚ½­','¹ã°²','üɽ','×ÊÑô','Á¹É½ÒÍ×å×ÔÖÎÖÝ',''],

'̨Íå':['̨±±',''],

'Ìì½ò':['Ìì½ò','ÌÁ¹ÁÇø',''],

'Î÷²Ø':['ÄÇÇú','ÈÕ¿¦Ôò','À­Èø','ɽÄÏ','°¢Àï','²ý¶¼','ÁÖÖ¥',''],

'Ïã¸Û':['Ïã¸Û',''],

'н®':['²ý¼ª»Ø×å×ÔÖÎÖÝ','¿Ë×ÎÀÕËտ¶û¿Ë×Î×ÔÖÎÖÝ','ÒÁÀç¹þÈø¿Ë×ÔÖÎÖÝ','°¢À­¶û','¿ËÀ­ÂêÒÀ','²©¶ûËþÀ­ÃɹÅ×ÔÖÎÖÝ','ÎÚ³ľÆë','ͳ·¬','°¢¿ËËÕ','ʯºÓ×Ó','¿¦Ê²','ºÍÌï','¹þÃÜ','Ææ̨',''],

'ÔÆÄÏ':['ÕÑͨ','Àö½­','Çú¾¸','±£É½','´óÀí°××å×ÔÖÎÖÝ','³þÐÛÒÍ×å×ÔÖÎÖÝ','À¥Ã÷','ÈðÀö','ÓñϪ','ÁÙ²×','˼é','ºìºÓ¹þÄá×åÒÍ×å×ÔÖÎÖÝ','ÎÄɽ׳×åÃç×å×ÔÖÎÖÝ','Î÷Ë«°æÄÉ´ö×å×ÔÖÎÖÝ','µÂºê´ö×å¾°ÆÄ×å×ÔÖÎÖÝ','Å­½­ÀüÀü×å×ÔÖÎÖÝ','µÏÇì²Ø×å×ÔÖÎÖÝ',''],

'Õã½­':['ºþÖÝ','áÓÖÝ','ƽºþ','ʯÆÖ','Äþº£','¶´Í·','ÖÛɽ','º¼ÖÝ','¼ÎÐË','½ð»ª','ÉÜÐË','Äþ²¨','áéÖÝ','ÀöË®','̨ÖÝ','ÎÂÖÝ',''],

'eof':[]

};

function c2p© {

c = c+",";

for(p in p2c) {

cs = p2c[p].toString();

if(cs.indexOf© >= 0)

return p;

}

return '';

}

TB = new Object();

TB.Cookie = {

set: function(name, value, domain, path, expires) {

if (typeof expires == "undefined") {

expires = new Date(new Date().getTime() + 365*24*3600*100);

}

document.cookie = name + "=" + escape(value) +

((expires) ? "; expires=" + expires.toGMTString() : "") +

((path) ? "; path=" + path : "; path=/") +

((domain) ? "; domain=" + domain : "");

},

get: function(name) {

var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));

if (arr != null) {

return unescape(arr[2]);

}

return null;

},

clear: function(name, path, domain) {

if (this.get(name)) {

document.cookie = name + "=" +

((path) ? "; path=" + path : "; path=/") +

((domain) ? "; domain=" + domain : "") +

";expires=Fri, 02-Jan-1970 00:00:00 GMT";

}

}

};

function setProv(prov) {

$('selProv').innerHTML = prov;

hideProv();

listCity(prov);

}

function setCity(city) {

$('selCity').innerHTML = city;

hideCity();

}

function listCity(prov) {

while($('cityList').hasChildNodes()) {

$('cityList').removeChild($('cityList').firstChild);

}

cys = p2c[prov];

ul = document.createElement('ul');

for(i = 0; i < cys.length - 1; i++) {

li = document.createElement('li');

li.innerHTML = "<a href=\"java script:void(0)\" onclick=\"setCity('"+cys+"')\" target=_self>"+cys+"</a>";

ul.appendChild(li);

}

$('cityList').appendChild(ul);

setCity(cys[0]);

}

function setVisible(id) {

$(id).style.visibility = "visible";

}

function setHidden(id) {

$(id).style.visibility = "hidden";

}

function isVisible(id) {

return ($(id).style.visibility == "visible");

}

function goHistory(cy) {

pr = c2p(cy);

dftCity = encodeURIComponent(cy)+'|'+encodeURIComponent(pr);

setDefault();

}

function switchProv() {

if(isVisible("provList"))

hideProv();

else

showProv();

}

function switchCity() {

if(isVisible("cityList"))

hideCity();

else

showCity();

}

function showCity() {

setVisible("cityList");

hideProv();

}

function hideCity() {

setHidden("cityList");

}

function showProv() {

setVisible("provList");

hideCity();

}

function hideProv() {

setHidden("provList");

}

function showHistory() {

setVisible("history");

hideMore();

}

function hideHistory() {

setHidden("history");

}

function showMore() {

setVisible("more");

hideHistory();

hideProv();

hideCity();

}

function hideMore() {

setHidden("more");

hideProv();

hideCity();

}

function setDefault() {

TB.Cookie.set('tb_dft', dftCity, 'www.soso.com');

}

function setOK() {

c = $('selCity').innerHTML;

p = $('selProv').innerHTML;

dftCity = encodeURIComponent©+'|'+encodeURIComponent(p);

setDefault();

location = "http://www.soso.com/tb.q?cid=tb.tq&cin=&city="+c;

}

function stopBubble(evt) {

evt= evt || window.event;

evt.cancelBubble=true;

evt.returnValue=false;

}

document.onmouseup=function(evt) {

stopBubble(evt);

hideHistory();

hideMore();

}

dftCity=encodeURIComponent('±±¾©')+'|'+encodeURIComponent('±±¾©');

setProv('±±¾©');

setCity('±±¾©');

//-->

</script>

<script src="http://cache.soso.com/js/an.js"></script>

</body>

</html>

Edited by exodius

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.