⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 凤凰网页面.txt

📁 很好的啊!中小型企业用的
💻 TXT
📖 第 1 页 / 共 5 页
字号:
	blurObj: function (obj, evt) {
		Suggest.clean(obj);
		if (obj.value.trim() == '') {
			obj.value = Suggest.defaultval;
			obj.style.color = "#999999";
		}
		Suggest.scan = false;
		return false;
	},
	keyDown: function (obj, evt) {
		if (this.obj.value.trim() != "") {
			switch (evt.keyCode) {
				case 38: //up
					this.scan = false;
					if (this.line == null || this.line.rowIndex == 1) {
						this.setLine(this.obj.suggestBody.rows[this.obj.suggestBody.rows.length - 1]);
					}
					else {
						this.setLine(this.obj.suggestBody.rows[this.line.rowIndex - 1]);
					}
					return false;
					break;
				case 40: //down
					this.scan = false;
					if (this.line == null || this.line.rowIndex == this.obj.suggestBody.rows.length - 1) {
						this.setLine(this.obj.suggestBody.rows[1]);
					}
					else {
						this.setLine(this.obj.suggestBody.rows[this.line.rowIndex + 1]);
					}
					return false;
					break;
				case 13: //Enter
					this.scan = false;
					var l_value = this.obj.value.trim();//.replace(new RegExp("^("+Suggest.codetypepre+")","i"), "");
					if(null != Suggest.zqkind){
						if(l_value.match(/^\d{5}/)){//up down 以后,ab股,港股等
							Suggest.go2zqweb(l_value,Suggest.zqkind);
							Suggest.zqkind = null;
						}else{
							Suggest.gotosearch(l_value,null);
							Suggest.zqkind = null;
						}
					}else if("" != l_value){
						Suggest.gotosearch(l_value,null);
					}
					Suggest.blurObj(obj, evt);
					break;
				default:
					this.setLine(null);
					this.scan = true;
					this.check();
					break;
			}
		}
		return true;
	},
	setLine: function (line) {
		if (line != null) {
			if (this.line != null) {
				this.discolorLine(this.line);
			}
			this.line = line;
			this.colorLine(line);
			Suggest.zqkind = line.cells[3].innerHTML.trim();
			this.obj.value = line.cells[1].innerHTML.trim();
		}
		else {
			this.line = null;
		}
	},
	colorLine: function (line) {
		line.className = "focuson";
	},
	discolorLine: function (line) {
		line.className = "";
	},
	gotosearch: function (a_code,a_kind){
		var value = a_code;
        if (value != Suggest.defaultval && value) {
			if(null==a_kind&&Suggest.selectid&&document.getElementById(Suggest.selectid)){
				var zqtype = document.getElementById(Suggest.selectid).value;
			}else if('stock'==a_kind||'fund'==a_kind){
				var zqtype = a_kind;
			}else{
				var zqtype = "all";
			}
			var l_url = 'http://app.finance.ifeng.com/hq/search.php?type='+zqtype+'&keyword=' + value;
        	if(document.getElementById('testsubmit'))window.open1('testsubmit',"get","_blank",l_url,value,"1");
			else window.open(l_url);
        }
    },
	clean: function () {
		document.getElementById(Suggest.obj.id + "_suggest").innerHTML = "";
	},
	showCnt:function (datastr) {
		if(""!=datastr){
			var l_data_arr = datastr.split("~");
			var length = l_data_arr.length -1;
		}else{
			Suggest.obj.symbol = null;
			Suggest.clean();
			return;	
		}
		Suggest.clean();
		if (length != 0) {
			var result = new String();
			result += '<table class="SuggesTable" border="0" cellpadding="0" cellspacing="0">';
			result += '<tr><td>选项</td><td>代码</td><td>名称</td><td style="display:none;"></td></tr>';
			for (var i in l_data_arr) {
				if(""!=l_data_arr[i]){
					var tempArray1 = l_data_arr[i].split("`");
					var l_key=Suggest.obj.value.replace(/[\.\"\+\'\?\\]/g,"").trim();
					var l_xuan=l_key;
					for(var j=0;j<tempArray1.length;j++){
						var l_tmp = tempArray1[j].match(new RegExp("^("+Suggest.codetypepre+")?"+l_key,"i"));
						if(l_tmp!=null){
							l_xuan = tempArray1[j].replace(new RegExp("^("+Suggest.codetypepre+")?"+l_key,"i"),'$1<span style="color:#F00;">'+l_key+'</span>').replace(new RegExp("^("+Suggest.codetypepre+")","i"), "");
							break;
						}
					}
					
					result += '<tr style="cursor:pointer;" onmouseover="Suggest.colorLine(this);" onmouseout="Suggest.discolorLine(this);" onmousedown="Suggest.trMouseDown(this);"><td>' + l_xuan + '</td><td>' + tempArray1[0].replace(new RegExp("^("+Suggest.codetypepre+")","i"), "") + '</td><td>' + tempArray1[1] + '</td><td style="display:none;">' + tempArray1[0].match(new RegExp("^("+Suggest.codetypepre+")","g")) + '-' + tempArray1[3] + '</td></tr>';
				}
			}
			result += '</table>';
			document.getElementById(Suggest.obj.id + "_suggest").innerHTML = result;
			Suggest.obj.suggestBody = document.getElementById(Suggest.obj.id + "_suggest").childNodes[0];
			if (length == 1) {
				Suggest.obj.symbol = Suggest.obj.suggestBody.rows[1].cells[1].innerHTML;
			}
			else {
				Suggest.obj.symbol = null;
				Suggest.setLine(null);
			}
		}
		else {
			Suggest.obj.symbol = null;
		}
	}
};
//--><!]]>
</script>
<style type="text/css">
<!--
.Suggest { position:absolute; right: -35px; top: 102px; z-index:100000;}
.Suggest .SuggesTable {color: #999999;width:196px; text-align: center;line-height: 18px;background-color: #FFFFFF;border: 1px dashed #CCCCCC; font-weight:normal}
.Suggest .SuggesTable td span{margin:0;}
.Suggest .SuggesTable .focuson{background-color: #EDF2FB;color: #000000;}
-->
</style>
		<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMjAxMDc4NzMyNGRklG4gBLdarxiw9bPalSKLhyTBi4I=" style="width:0;height:0;"/> 
		<div id="keyword_suggest" class="Suggest"></div>
		<div id="stockSearch">
		<form action="http://www.ifeng.com/" target="_blank" method="post" name="testsubmit" id="testsubmit" style="display:none">
          <input type="hidden" name="c" value="" /><input type="hidden" name="q" value="" />
        </form>
			<span><a href="http://finance.ifeng.com/app/hq/index.shtml" target="_blank">行情</a> | <a href="http://app.finance.ifeng.com/hq/trade/zijin_list.php" target="_blank"><font color=#993333>资金</font></a> | <a href="http://app.finance.ifeng.com/hq/stock_scan.php" target="_blank">雷达</a> | <a href="http://app.finance.ifeng.com/hq/trade/duokong_list.php" target="_blank"><font color=#993333>多空</font></a></span>
			<span>
			<input id="keyword" name="keyword" type="text" class="text" value="代码/名称/拼音" autocomplete="off" onkeydown="return Suggest.keyDown(this, event);" onfocus="Suggest.focusObj(this);" onblur="return Suggest.blurObj(this, event);"/>
			<input type="button" class="bt" value="查询" onclick="Suggest.gotosearch(document.getElementById('keyword').value,null);" />
			</span>
		
		</div>
	</div>
</div>
	 </div>
	 <div class="clear">&nbsp;</div>
	 <div class="adList3">
	  <ul><li>·[<a href="http://ifeng.pconline.com.cn/" target="_blank">数码</a>] <a href="http://ifeng.pconline.com.cn/mobile/pingce/0901/1532921.html" target="_blank">中文版来了!富士通F905i详细试用</a></li>
<li>·[<a href="http://tech.ifeng.com/" target="_blank">科技</a>] <a href="http://ifeng.itcpn.net/a/8768427.shtml" target="_blank">IBM收购Sun将给戴尔带来巨大机会</a></li>
<li>·[<a href="http://house.ifeng.com/" target="_blank">房产</a>] <a href="http://ifeng.soufun.com/2009-03-25/2474653.htm" target="_blank">北京政策房首付款将可用公积金</a></li>
<li>·[<a href="http://auto.ifeng.com/" target="_blank">汽车</a>] <a href="http://auto.ifeng.com/buycar/review/20090325/16976.shtml" target="_blank">谁是节油能手?不同级别车型实测油耗</a></li></ul>
	</div>
	 <div class="adList" style="margin-top:8px; padding-top:8px;">
	 <ul><li>·[商讯]<a href="http://sc.ifeng.com/event.ng/Type=click&FlightID=19157&AdID=19006&TargetID=727&Segments=1,67,160,790&Targets=830,848,196,727&Values=34,46,51,80,101,110,204,222,238,261,553,561,600&RawValues=&Redirect=http://www.ifeng.com/enterprise/index_01.html?url=http%3A//www.gupiao388.com/" target="_blank">强烈推荐:暴涨5倍龙头股名单大曝光-附股</a>


</li>
<li>·<a href="http://sc.ifeng.com/event.ng/Type=click1&FlightID=17903&AdID=17809&TargetID=726&Segments=1,67,160,791&Targets=830,848,196,726&Values=34,46,51,80,101,110,204,222,238,261,553,562,600&RawValues=&Redirect=http://www.shenyw.com/yhxs-13.htm" target="_blank">人类衰老之谜有了新发现</a> <a href="http://sc.ifeng.com/event.ng/Type=click2&FlightID=17903&AdID=17809&TargetID=726&Segments=1,67,160,791&Targets=830,848,196,726&Values=34,46,51,80,101,110,204,222,238,261,553,562,600&RawValues=&Redirect=http://www.shenyw.com/index1128.htm" target="_blank">京沪中上层争相喝神源</a>
</li>
<li>·<a href="http://sc.ifeng.com/event.ng/Type=click&FlightID=19067&AdID=18920&TargetID=728&Segments=1,67,160,792&Targets=830,848,196,728&Values=34,46,51,80,101,110,204,222,238,261,553,563,600&RawValues=&Redirect=http://www.ifeng.com/enterprise/index_01.html?url=http%3A//gupiao369.com/" target="_blank">独家公布:专家免费推荐3只牛股,天天有涨!</a>


</li>
<li>·<a href="http://sc.ifeng.com/event.ng/Type=click1&FlightID=17908&AdID=17814&TargetID=725&Segments=1,67,160,793&Targets=830,848,196,725&Values=34,46,51,80,101,110,204,222,238,261,553,564,600&RawValues=&Redirect=http://www.shenyw.com/shimian.htm" target="_blank">改善中老年失眠有新方法</a> <a href="http://sc.ifeng.com/event.ng/Type=click2&FlightID=17908&AdID=17814&TargetID=725&Segments=1,67,160,793&Targets=830,848,196,725&Values=34,46,51,80,101,110,204,222,238,261,553,564,600&RawValues=&Redirect=http://www.shenyw.com/xhxb.htm" target="_blank">血红细胞形态与亚健康</a>
</li></ul>
	</div>
	 <div class="blank">&nbsp;</div>
	 <div class="block2">
	 	<div class="title">
	<h2><a href="http://bbs.ifeng.com/" target="_blank">论 坛</a> <span class="eng">- 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -