日期:2014-05-17  浏览次数:20646 次

css 的问题啊 求助
我比较喜欢新浪乐居的导航搜索条 自己也在做房产的网站 所以想copy下来这个搜索导航

http://dl.house.sina.com.cn/

但是我下载下来代码,却不能实现他这个效果

就是新盘点击到二手房。。。

而且下拉框也点不了。。。

就是这种效果http://fc.fanlitime.com/header.html

希望大家帮帮我,我不大会这个,如果能直接帮我把代码改改更好了 谢谢啊!

------解决方案--------------------
需要文件末尾的js
<script type="text/javascript" src="http://imgcdn.house.sina.com.cn/2.0/dojquery.js">
</script>
<script type="text/javascript" src="http://i2.sinaimg.cn/hs/js/index.js"></script>
<script type="text/javascript">
$(function(){
$.fn.buildUrl = function(setting){
var eles = this.find('select,input[type!="submit"]');
this.submit(function(){
var length = eles.length;
var param = [];
for (var i = 0; i < length; i++) {
if(!!eles[i].value){
if (i < length - 1) {
param.push(eles[i].value.replace('-', ''));
}
else {
param.push("-o" + eles[i].value);
}
}
}
window.open(setting.prefix + "/" + param.join('-'));
return false;
})
}
$('#con_search_2 form').buildUrl({
prefix: 'http://dl.esf.sina.com.cn/house'
});
$('#con_search_3 form').buildUrl({
prefix: 'http://dl.zufang.sina.com.cn/house'
});
});

</script>

具体效果自己再改吧