var aEM=document.getElementById('daohang').getElementsByTagName('em'); for (var i = aEM.length - 1; i >= 0; i--) { aEM[i].onmouseover=function() {this.className+=' act';}; aEM[i].onmouseout=function () {this.className=this.className.replace(' act','');}; };

宁国房产网

$('#upzt li').imgChange({botPrev:null,botNext:null,effect:'scroll2',visible:1,steps:1,vertical:0,changeTime:4000})//滚动图片
var gotop=document.getElementById('gotop'),timer=null; window.onscroll=function(){gotop.style.display=getX()>100?'block':'none'; }; gotop.onclick=function(){ timer=setInterval(goTo,10); function goTo(){ var x=getX()/1.1; document.documentElement.scrollTop?document.documentElement.scrollTop=x:document.body.scrollTop=x; x<1&&clearInterval(timer); } return false; } function getX() {return document.documentElement.scrollTop || document.body.scrollTop }
window.jQuery || document.write('<\/script>'); var fcaids = ''; var params = ''; jQuery("div[id^='_08_adv_']").each(function(){ // 组装所有广告ID fcaid = $(this).attr('id').replace('_08_adv_', '') if ( fcaids ) { fcaids += ','; } fcaids += fcaid; // 组装所有广告参数 if ( params ) { params += ','; } param = $(this).attr('params'); if ( param == '' || param == undefined ) { param = '[]'; } params += '"' + fcaid + '"' + ':' + param; }) params = '{' + params + '}'; jQuery.post("http://www.ngfang.com/tools/ajax.php", {action: 'get_adv', fcaids: fcaids, params: params, domain: document.domain}, function(data){ fcaids = fcaids.split(','); data = data.split(''); var id = '_08_adv_'; var j = 0; for(var i = 0; i < fcaids.length; ++i) { jQuery('#' + id + fcaids[i]).after(data[j]); jQuery('#' + id + fcaids[i]).remove(); ++j; } });