代码改变世界
2009-02-19 22:01
贪婪的小猪
阅读(494)
评论()
编辑
收藏
举报
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
Code
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<script>![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
(function()
{
<!--[if !IE]>|xGv00|8562b5198b819aae2599422d037fbd8e<![endif]-->
if(typeof g_arrAdObjects == "undefined")
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{
g_arrAdObjects = [];
}
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
g_arrAdObjects.push(
{fileName:"http://adsfile.qq.com/web/c2c_0217_172_73.png",fileName2:"http://adsfile.qq.com/web/",clickUrl:"http://adsclick.qq.com/adsclick?seq=20090213000096&loc=QQCOM_sosobutton2&url=http://www.paipai.com/mall/lady/2009/02/200spring/?PTAG=10001.3.17",width:172,heigth:73,oid:"1111612",cid:"92711",loc:"QQCOM_sosobutton2",moniterUrl:""});<!--[if !IE]>|xGv00|1991a452d1b24fabecc38178f9d08b37<![endif]-->
<!--[if !IE]>|xGv00|8562b5198b819aae2599422d037fbd8e<![endif]-->
var bIsLowerIE6 = false;
var ua = navigator.userAgent;
m=ua.match(/MSIE\s([^;]*)/);
var iVer = 0;
if(m && m[1])
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
{
iVer = parseInt(m[1]);
}
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
if(iVer != 0 && iVer <= 6)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
{
bIsLowerIE6 = true;
}
var iTimeout = 5000;
var iCurrImg = 0;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
var arrPower = [];
function changeImg()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
{
if(g_arrAdObjects.length > iCurrImg)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
{
setImg(iCurrImg);
iCurrImg = (iCurrImg + 1 >= g_arrAdObjects.length ? 0 : iCurrImg + 1);
}
}
function setImg(index)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
{
if(g_arrAdObjects.length > index)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
{
for(var i = 0; i < g_arrAdObjects.length; i++)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
{
if(i == index)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
{
if(g_arrAdObjects[i].node.style.display == "block") continue;
else g_arrAdObjects[i].node.style.display = "block";
}
else g_arrAdObjects[i].node.style.display = "none";
}
}
else
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
{
if(g_arrAdObjects[0])
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
{
if(g_arrAdObjects[0].node.style.display != "block") g_arrAdObjects[0].node.style.display = "block";
}
}
}
var oDiv = document.getElementById("ad_div");
if(typeof g_arrAdObjects != "undefined")
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
{
for(var i = 0; i < g_arrAdObjects.length; i++)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
{
var divNode = document.createElement("div");
divNode.style.cursor = "pointer";
divNode.style.display = "block";
divNode.style.width = g_arrAdObjects[i].width + "px";
divNode.style.height = g_arrAdObjects[i].heigth + "px";
divNode.index = i;
divNode.onclick = function()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
{
window.open(g_arrAdObjects[this.index].clickUrl, "_blank");
}
var bIsPng = /(.png)$/i.test(g_arrAdObjects[i].fileName);
if(bIsPng && bIsLowerIE6)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
{
divNode.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + g_arrAdObjects[i].fileName + "')";
}
else
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
{
var imgNode = document.createElement("img");
imgNode.src = g_arrAdObjects[i].fileName;
divNode.appendChild(imgNode);
}
oDiv.appendChild(divNode);
g_arrAdObjects[i].node = divNode;
}
for(var j = 0; j < g_arrAdObjects.length; j++)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
{
g_arrAdObjects[j].node.style.position = "absolute";
g_arrAdObjects[j].node.style.left = "0px";
g_arrAdObjects[j].node.style.top = "0px";
g_arrAdObjects[j].node.style.display = "none";
}
changeImg();
setInterval(changeImg, iTimeout);
}
})();
</script><!--[if !IE]>|xGv00|5342f94eb421f855a56bbf7241a99519<![endif]--></div>
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<script type="text/javascript">![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
function showPPInfoMenu(num)
{
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
for(var i=0;i<3;i++)
{
$("ppMenu"+i).className="";
$("ppMainDesc"+i).style.display="none";
}
$("ppMenu"+num).className="ppMenuHere";
$("ppMainDesc"+num).style.display="";
}
showPPInfoMenu(0);
var ppRollTime=1;
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
function callPPRoll()
{
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
if(ppRollTime<15)
{
showPPInfoMenu(ppRollTime%3);
ppRollTime++;
}else clearInterval(ppRoll);
}
var ppRoll=setInterval("callPPRoll()",6000);
</script><!--[if !IE]>|xGv00|e37b654355ef3d4e7f554a754245eaa6<![endif]-->
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<script>
try
{span2();}catch(e)
{}</script>
<script type="text/javascript" src="http://www.qq.com/js/ping_qqcom_v1.1.js"></script>
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<script type="text/javascript">
if(typeof(pgvMain) == 'function')pgvMain();</script>
<script type="text/javascript" src="http://www.qq.com/js/smart_for_qq.js"></script>
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<script type="text/javascript">![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
/**//*<![CDATA[*/
function weatherLoad()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{
MiniSite.Weather.print("Wealth");
}
loadJS("http://www.qq.com/js/j.soso.weatherV1.4.js",weatherLoad);
var stoptime = 2000;
var blogNum = 0;
function blogplay()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{
var l = getNames($("blogHotMar"),"m","div");
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
if(blogNum>1)
{blogNum = 0;}
cplay("blogHotMar",blogNum,"div","m","dis","undis");
blogNum ++;
}
var blogtime = setInterval(blogplay,stoptime);
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
$("blogHotMar").onmouseover = function()
{clearInterval(blogtime)};
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
$("blogHotMar").onmouseout = function()
{blogtime = setInterval(blogplay,stoptime);}
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
/**//*]]>*/
</script>
<script src="http://adsfile.qq.com/web/AD2v1.3.js" type="text/javascript"></script>
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<style>
.absolute{
}{position:absolute;}</style>
<script src="http://l.qq.com/lview?c=www&loc=QQCOM_Width2,QQCOM_Width3,QQ_BackPopWin,QQ_Full,QQCOM_Button1,QQCOM_Button2,QQCOM_SJ_Button1,QQCOM_SJ_Button2,QQCOM_SJ_Button3,QQCOM_TZ_Button1,QQCOM_TZ_Button2,QQCOM_TZ_Button3,QQCOM_DZ_Button1,QQCOM_DZ_Button2,QQCOM_DZ_Button3"></script>
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<script>
AD2.render('QQCOM_Width2')</script>
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<script>
AD2.render('QQCOM_SJ_Button1')</script>
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<script>
AD2.render('QQCOM_SJ_Button2')</script>
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<script>
AD2.render('QQCOM_SJ_Button3')</script>
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<script>
AD2.render('QQCOM_TZ_Button1')</script>
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<script>
AD2.render('QQCOM_TZ_Button2')</script>
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<script>
AD2.render('QQCOM_TZ_Button3')</script>
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<script>
AD2.render('QQCOM_DZ_Button1')</script>
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<script>
AD2.render('QQCOM_DZ_Button2')</script>
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<script defer="defer">![](https://www.cnblogs.com/Images/dot.gif)
function Marquee()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{this.ID=document.getElementById(arguments[0]);if(!this.ID)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{this.ID=-1;return;}
this.Direction=this.Width=this.Height=this.DelayTime=this.WaitTime=this.Correct=this.CTL=this.StartID=this.Stop=this.MouseOver=0;this.Step=1;this.Timer=47;if(typeof arguments[2]=="number")this.Step=arguments[2];if(typeof arguments[3]=="number")this.Width=arguments[3];if(typeof arguments[4]=="number")this.Height=arguments[4];if(typeof arguments[5]=="number")this.Timer=arguments[5];if(typeof arguments[6]=="number")this.DelayTime=arguments[6];if(typeof arguments[7]=="number")this.WaitTime=arguments[7];if(typeof arguments[8]=="number")this.ScrollStep=arguments[8];this.ID.style.overflow=this.ID.style.overflowX=this.ID.style.overflowY="hidden";this.ID.noWrap=true;this.IsNotOpera=(navigator.userAgent.toLowerCase().indexOf("opera")==-1);if(arguments.length>=7)this.Start();}
Marquee.prototype.Start=function()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{if(this.ID==-1)return;if(this.WaitTime<800)this.WaitTime=800;if(this.Timer<20)this.Timer=20;if(this.Width==0)this.Width=parseInt(this.ID.style.width);if(this.Height==0)this.Height=parseInt(this.ID.style.height);this.HalfWidth=Math.round(this.Width/2);this.BakStep=this.Step;this.ID.style.width=this.Width;this.ID.style.height=this.Height;if(typeof this.ScrollStep!="number")this.ScrollStep=this.Height;var msobj=this;var timer=this.Timer;var delaytime=this.DelayTime;var waittime=this.WaitTime;msobj.StartID=function()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{msobj.Scroll()};msobj.Continue=function()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{if(msobj.MouseOver==1)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{setTimeout(msobj.Continue,delaytime);}
else
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{clearInterval(msobj.TimerID);msobj.CTL=msobj.Stop=0;msobj.TimerID=setInterval(msobj.StartID,timer);}};msobj.Pause=function()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{msobj.Stop=1;clearInterval(msobj.TimerID);setTimeout(msobj.Continue,delaytime);};msobj.Begin=function()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{msobj.ClientScroll=msobj.ID.scrollHeight;if(msobj.ClientScroll<msobj.Height)return;msobj.ID.innerHTML+=msobj.ID.innerHTML;msobj.TimerID=setInterval(msobj.StartID,timer);if(msobj.ScrollStep<0)return;msobj.ID.onmousemove=function(event)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{};msobj.ID.onmouseover=function()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{if(msobj.ScrollStep==0)return;msobj.MouseOver=1;clearInterval(msobj.TimerID);};msobj.ID.onmouseout=function()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{if(msobj.ScrollStep==0)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{if(msobj.Step==0)msobj.Step=1;return;}
msobj.MouseOver=0;if(msobj.Stop==0)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{clearInterval(msobj.TimerID);msobj.TimerID=setInterval(msobj.StartID,timer);}}};setTimeout(msobj.Begin,waittime);};Marquee.prototype.Scroll=function()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{this.CTL+=this.Step;if(this.CTL>=this.ScrollStep&&this.DelayTime>0)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{this.ID.scrollTop+=this.ScrollStep+this.Step-this.CTL;this.Pause();return;}
else
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{if(this.ID.scrollTop>=this.ClientScroll)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{this.ID.scrollTop-=this.ClientScroll;}
this.ID.scrollTop+=this.Step;}};function CheckStockInput2(s)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{s=s.replace(/ /ig,"");if(s==""||s=="代码/名称/拼音")
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{return 1;}
if(/^[\*\/0-9a-zA-Z\u4e00-\u9fa5]+$/.test(s))
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{if(/[\\\/<>#\$&]/g.test(s))
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{return 2;}
else
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{return 0;}}
else
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{return 2;}}
function fm_submit()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{var value=document.getElementById("cl").value;if(CheckStockInput2(value)==1)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{alert("请输入查询条件:代码/名称/拼音");return false;}
else if(CheckStockInput2(document.getElementById("cl").value)==2)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{alert("证券代码输入错误");return false;}
else
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{var formx=document.getElementById("form_stockserach");document.getElementById("ZHENGQUANDM").value=value;formx.target="_blank";formx.action="http://stock.finance.qq.com/cgi-bin/sstock/ggcx";formx.submit();return false;}}
function load(sId,sUrl,fCallback)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{if(document.getElementById(sId))
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{remove(sId);}
var _script=document.createElement("script");_script.setAttribute("id",sId);_script.setAttribute("type","text/javascript");_script.setAttribute("src",sUrl);document.getElementsByTagName("head")[0].appendChild(_script);if(document.all)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{_script.onreadystatechange=function()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{if(this.readyState=="loaded"||this.readyState=="complete")
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{remove(_script);fCallback();}};}
else
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{_script.onload=function()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{remove(_script);fCallback();}}}
function remove()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{for(var i=0;i<arguments.length;i++)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{try
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{var obj=(typeof arguments[i]=="object")?arguments[i]:document.getElementById(arguments[i]);if(obj&&obj.parentNode)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{obj.parentNode.removeChild(obj);}}catch(e)
{}}}
function getzhishu()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{load("zhishu","http://stockjs.tenpay.com/other/js/qq_hq.js?"+Math.random(),zhishucallback)}
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
var zs_marquee=null;function fillzhishu(code,c,t,a,b)
{if($("zsa_"+code))
{$("zsa_"+code).style.color=c;$("zsa_"+code).innerHTML=parseFloat(a,10).toFixed(2)+"";}if($("zsb_"+code))
{$("zsb_"+code).style.color=c;$("zsb_"+code).innerHTML=t+parseFloat(b,10).toFixed(2)+"%";}}
function zhishucallback()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{if(typeof(v_qq_hq)!="undefined")
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{if(v_qq_hq!="")
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{var v=v_qq_hq,h='';for(var i=0;i<v.length&&i<3;i++)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{var c="#000",t='',v_zqdm="";if(parseFloat(v[i][1],10)>0)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{c="#ff0000";t='+';}
else if(parseFloat(v[i][1],10)<0)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{c="#093";}
if(i==0)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{h+="<div><a href='http://stockhtm.finance.qq.com/hqing/zhishu/000001.htm' target='_blank'>上证指数</a> ";v_zqdm="000001";}
else if(i==1)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{h+="<div><a href='http://stockhtm.finance.qq.com/hqing/zhishu/399001.htm' target='_blank'>深证成指</a> ";v_zqdm="399001";}
else if(i==2)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{h+="<div><a href='http://stockhtm.finance.qq.com/hk/ggcx/hsi.htm' target='_blank'>恒生指数</a> ";v_zqdm="HSI";}
if(v_zqdm!="")
h+="<span id='zsa_"+v_zqdm+"' style='color:"+c+";'>"+parseFloat(v[i][0],10).toFixed(2)+"</span> <span id='zsb_"+v_zqdm+"' style='color:"+c+";padding-left:5px;'>"+t+parseFloat(v[i][1],10).toFixed(2)+"%</span></div>";if($("zsa_"+v_zqdm))fillzhishu(v_zqdm,c,t,v[i][0],v[i][1]);}
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
if(!zs_marquee)
{document.getElementById("zhishu_stock").innerHTML=h;zs_marquee = new Marquee("zhishu_stock",0,1,170,22,20,4000,500,22);}}}
}getzhishu();String.prototype.trim=function()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{return this.replace(/(^[\s]*)|([\s]*$)/g,"");}
function startingLoadData(obj)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{var typeid=obj.value.trim();if(typeid!="")
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{var scriptid="http://img.finance.qq.com/sstock/cq_hint_a/"+typeid+".js?"+Math.random();load("stock"+typeid,scriptid,loadingDataFromJsback);}
else
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{controldiiv(0);}}
function controldiiv(type)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{var obj=$("stocksuggest");if(type==0)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{obj.style.display="none";}
else
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{var sobject=$("cl");obj.style.left=getPostion(sobject,"offsetLeft")+"px";obj.style.top=(getPostion(sobject,"offsetTop")+sobject.offsetHeight+1)+"px";obj.style.display="block";}}
function loadingDataFromJsback()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{if(typeof(v_hint)!="undefined")
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{if(v_hint!="")
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{var data=v_hint;startsuggest(data);v_hint="";}
else
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{controldiiv(0);}}}
function startsuggest(s)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{controldiiv(1);var mydata=s.split("|");var len=mydata.length;var datalist;var html='<table width="100%" border="0" cellpadding="0" cellspacing="0" ><tr bgcolor="#ebf2fb"><td width="50" >选择列</td><td align="center">名称</td><td width="70" align="center" >市场</td></tr>';for(var i=0;i<len;i++)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{datalist=mydata[i].split("_");html+="<tr onclick='getstockvalue(this);' id='"+datalist[1]+"_"+datalist[4]+"_"+datalist[3]+"' onmouseover='changemyclassName(this,\"onover\")' onmouseout='changemyclassName(this,\"onout\")' ><td nowarp='nowarp' >"+datalist[0]+"</td>";html+="<td nowarp='nowarp' >"+datalist[2]+"</td>";html+="<td nowarp='nowarp' >"+datalist[5]+"</td></tr>";}
html+="</table>";$("stocksuggest").innerHTML=html;}
function changemyclassName(obj,css)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{obj.className=css;}
function getstockvalue(obj)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{var strsid=obj.id.split("_");controldiiv(0);if(strsid[1]=="HK")
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{$("form_stockserach").action="http://stock.finance.qq.com/hk/ggcx/"+strsid[0]+".htm";}
else if(strsid[1]=="JJ")
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{$("form_stockserach").action="http://stock.finance.qq.com/fund/djj_jjcx/"+strsid[0]+".htm";}
else
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{if(strsid[2]!="ZS")
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{$("form_stockserach").action="http://stock.finance.qq.com/sstock/ggcx/"+strsid[0]+".shtml";}
else
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{$("form_stockserach").action="http://stock.finance.qq.com/hqing/zhishu/"+strsid[0]+".htm";}}
$("form_stockserach").submit();}
function getPostion(obj,type)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{var distance=0;while(obj.offsetParent!=null)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{distance+=obj[type];obj=obj.offsetParent;}
return distance;}
document.onclick=function(evt)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{var e=((evt)?(evt):(window.event));if(document.all)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{if(e.srcElement.id!="stocksuggest")
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{controldiiv(0);}}
else
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{if(e.target.id!="stocksuggest")
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
{controldiiv(0);}}}
</script>
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<script type="text/javascript">![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
function $E(e)
{return document.getElementById(e);}
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
function submitRequest(a)
{
var b=a;
var c=$E("chgmobile");
var d=$E("chgmobile2");
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
if(c.value=="")
{
alert("请输入手机号码。");
c.focus();
return;
}
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
if(d && d.value=="")
{
alert("请确认您输入的手机号码。");
d.focus();
return;
}
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
if(!c.value.match(/^(13[0-9]{9}|15[0-9]{9})$/))
{
alert("您输入的手机号码不正确,请重新输入!");
c.focus();
return;
}
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
if(d && c.value!=d.value)
{
alert("您两次输入的手机号码不一致,请重新输入!");
d.focus();
return;
}
var e=$E("chargeAutoPrix").value;
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
if(e=="30000"&&c.value.match(/^(13[0-3][0-9]{8}|153[0-9]{8})$/))
{
alert("联通号码暂不支持300元充值!");
$E("chargeAutoPrix").focus();
return;
}
para="tid=01001001&anonyuser=1&uin="+c.value+"&chgmobile="+c.value+"&amount="+e+"&chargeway="+b+"&bankid=0&PTAG=30053.20.8&attach=paipai";
window.open("http://pay.paipai.com/cgi-bin/pay_mobile_card?"+para);
};
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
function chargePrix()
{
var curPrix = $E("chargeAutoPrix").value;
var beginPrice = ((curPrix*0.983)/100).toFixed(2),endPrice = ((curPrix*0.988)/100).toFixed(2);
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
if(curPrix>10000)
{beginPrice = ((curPrix*0.983)/100).toFixed(1),endPrice = ((curPrix*0.988)/100).toFixed(1);}
var priceEM = $E("chargeMobileTab").getElementsByTagName("em");
priceEM[0].innerHTML = beginPrice+"-"+endPrice;
}
</script>
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<script language="javascript">![](https://www.cnblogs.com/Images/dot.gif)
function lucktoday()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
{
var v=document.getElementById("obSelect").value;
astro_name = v.substr(0,3);
if (astro_name=="") astro_name="白羊座";
window.open("http://appastro.qq.com/cgi-bin/astro_newluckday11?astro=" +astro_name+ "&type=today");
}
function lucktommorrow()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
{
var v=document.getElementById("obSelect").value;
astro_name = v.substr(0,3);
if (astro_name=="") astro_name="白羊座";
window.open("http://appastro.qq.com/cgi-bin/astro_newluckday11?astro=" +astro_name+ "&type=tommorrow");
}
function luckweek()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
{
var v=document.getElementById("obSelect").value;
astro_name = v.substr(0,3);
if (astro_name=="") astro_name="白羊座";
window.open("http://appastro.qq.com/cgi-bin/astro_luck?astro=" +astro_name+ "&type=week");
}
function luckmonth()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
{
var v=document.getElementById("obSelect").value;
astro_name = v.substr(0,3);
if (astro_name=="") astro_name="白羊座";
window.open("http://appastro.qq.com/cgi-bin/astro_luck?astro=" +astro_name+ "&type=month");
}
function luckyear()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
{
var v=document.getElementById("obSelect").value;
astro_name = v.substr(0,3);
if (astro_name=="") astro_name="白羊座";
window.open("http://appastro.qq.com/cgi-bin/astro_luck?astro=" +astro_name+ "&type=year");
}
function luckweek_1()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
{
var v=document.getElementById("obSelect_1").value;
astro_name = v.substr(0,1);
if (astro_name=="") astro_name="鼠";
window.open("http://appastro.qq.com/cgi-bin/astro_luck?astro=" +astro_name+ "&type=week");
}
function luckmonth_1()
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
{
var v=document.getElementById("obSelect_1").value;
astro_name = v.substr(0,1);
if (astro_name=="") astro_name="鼠";
window.open("http://appastro.qq.com/cgi-bin/astro_luck?astro=" +astro_name+ "&type=month");
}
</script>
<script type="text/javascript" src="http://adsfile.qq.com/web/tencentvideo.js"></script>
<script type="text/javascript" src="http://adsview2.qq.com/adsview?c=www&l=QQCOM_Extend_Video&log=off"></script>
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<script>![](https://www.cnblogs.com/Images/dot.gif)
var gnEbMinZIndex = 10000;
var gfEbInIframe = false;
var gEbAd = new Object();
gEbAd.nFlightID = 756600;
</script>
<script src="http://ds.serving-sys.com/BurstingScript/China//ebServing_756600.js"></script>
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<script type="text/javascript">
try
{endCheck();}catch(e)
{}</script>
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<script>![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
if (typeof AD2 != 'undefined')
{
AD2.ping.flush();
}
</script>
<!--[if !IE]>|xGv00|99c120ec66e42144a84b53ea7aba389d<![endif]-->
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<script type="text/javascript">![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
window.onload=function()
{
var st=document.documentElement.scrollTop||document.body.scrollTop;
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
if(st<=145)
{document.getElementById('frm_head').w.focus();}
setInterval(getzhishu,60000);
}
</script>
</body>
</html><!--[if !IE]>|xGv00|78a58d9a383fc85a0af60797589ca41e<![endif]-->