注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

面包会有的

php asp 高端网站开发 微信网站开发 视频会议软硬件

 
 
 

日志

 
 

czt.js  

2014-11-20 22:12:29|  分类: jquery |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
$(document).ready(function(){
pObj=new Object();
pObj.level=2;
pObj.pid1=0;
pObj.pid2=0;
pObj.pid3=0;
pObj.pid4=0;
pObj.pid5=0;
  pObj.cache="&cache="+new Date().getTime();

$("#PlaceClickNav1").css('display','show');

$('.place2').click(function(){
pObj.level=3;
pObj.pid1=0;
pObj.pid2=$(this).attr('testvalue');//返回被选元素的属性值
pObj.pid3=0;
pObj.pid4=0;
pObj.pid5=0;
pObj.cache="&cache="+new Date().getTime();

$(".place2").css("background-color","");
$(this).css("background-color","#ff0000");
$.get("/e/extend/cct/ZhanKai/index.php?"+$.param(pObj),function(data,status){
if (status == "success")
{
//$("#c3").html("");//clear arrow
//$("#c4").html("<div id='PlaceClickNav1' class='PlaceClickNav'><span><img src='/skin/default/images/shangjt.gif' border=0></span><span class='PlaceClickNavWord' >现在选择区县</span><span><img src='/skin/default/images/shangjt.gif' border=0></span></div>");
//$("#c5").html("");
$("#c3").html(data);
}
else
{
alert ("失败");
}
});

});
$('.place3').click(function(){
pObj.level=4;
pObj.pid3=$(this).attr('testvalue');
pObj.pid4=0;
pObj.pid5=0;
pObj.cache="&cache="+new Date().getTime();

$(".place3").css("background-color","");
  $(this).css("background-color","#ff0000");

  $("#c4").html("");
$("#c5").html("<div id='PlaceClickNav1' class='PlaceClickNav'><span><img src='/skin/default/images/shangjt.gif' border=0></span><span class='PlaceClickNavWord' >最后选择乡镇</span><span><img src='/skin/default/images/shangjt.gif' border=0></span></div>");
$.get("/e/extend/cct/ZhanKai/index.php?"+$.param(pObj),function(data,status){$("#c4").html(data);});
});

$('.place4').click(function(){
pObj.level=5;
pObj.pid4=$(this).attr('testvalue');
pObj.pid5=0;
pObj.cache="&cache="+new Date().getTime();

$(".place4").css("background-color","");
$(this).css("background-color","#ff0000");

$.get("/e/extend/cct/ZhanKai/index.php?"+$.param(pObj),function(data,status){$("#c5").html(data);});
});



//点省,查市
$(".place1").live("click",function(){
pObj.level=2;
pObj.pid1=$(this).attr('testvalue');//返回被选元素的属性值
pObj.pid2=0;
pObj.pid3=0;
pObj.pid4=0;
pObj.pid5=0;
pObj.cache="&cache="+new Date().getTime();

$(".place1").css("background-color","");
$(this).css("background-color","#ff0000");
$("#c2").html("");
$("#c3").html("<div id='PlaceClickNav1' class='PlaceClickNav'><span><img src='/skin/default/images/shangjt.gif' border=0></span><span class='PlaceClickNavWord' >现在选择地市</span><span><img src='/skin/default/images/shangjt.gif' border=0></span></div>");
$("#c4").html("");
$("#c5").html("");
//$("#PlaceClickNav1").css('display','none');
$.get("/e/extend/cct/ZhanKai/index.php?"+$.param(pObj),function(data,status){$("#c2").html(data);});
});
 
//点市,查县
$(".place2").live("click",function(){
pObj.level=3;
pObj.pid2=$(this).attr('testvalue');//返回被选元素的属性值
pObj.pid3=0;
pObj.pid4=0;
pObj.pid5=0;
pObj.cache="&cache="+new Date().getTime();

$(".place2").css("background-color","");
$(this).css("background-color","#ff0000");
$("#c3").html("");//clear arrow
$("#c4").html("<div id='PlaceClickNav1' class='PlaceClickNav'><span><img src='/skin/default/images/shangjt.gif' border=0></span><span class='PlaceClickNavWord' >现在选择区县</span><span><img src='/skin/default/images/shangjt.gif' border=0></span></div>");
$("#c5").html("");
$.get("/e/extend/cct/ZhanKai/index.php?"+$.param(pObj),function(data,status){$("#c3").html(data);});
});
 
//点县,查乡
$(".place3").live("click",function(){
pObj.level=4;
pObj.pid3=$(this).attr('testvalue');
pObj.pid4=0;
pObj.pid5=0;
pObj.cache="&cache="+new Date().getTime();
 
  $(".place3").css("background-color","");
  $(this).css("background-color","#ff0000");
  $("#c4").html("");
$("#c5").html("<div id='PlaceClickNav1' class='PlaceClickNav'><span><img src='/skin/default/images/shangjt.gif' border=0></span><span class='PlaceClickNavWord' >最后选择乡镇</span><span><img src='/skin/default/images/shangjt.gif' border=0></span></div>");
$.get("/e/extend/cct/ZhanKai/index.php?"+$.param(pObj),function(data,status){$("#c4").html(data);});
});
 
//点乡镇,查村
$(".place4").live("click",function(){
pObj.level=5;
pObj.pid4=$(this).attr('testvalue');
pObj.pid5=0;
pObj.cache="&cache="+new Date().getTime();

$(".place4").css("background-color","");
$(this).css("background-color","#ff0000");

$.get("/e/extend/cct/ZhanKai/index.php?"+$.param(pObj),function(data,status){$("#c5").html(data);});
});
 
$(".place5").click(function(){
pObj.level=5;
pObj.pid5=$(this).attr('testvalue');
pObj.cache="&cache="+new Date().getTime();

$.get("/e/extend/cct/ZhanKai/index.php?"+$.param(pObj),function(data,status){$("#res").html(data);});
 
});
 
$("#radio1").click(function(){
 searchform.tbname.value="cnews";
});
$("#radio2").click(function(){
 searchform.tbname.value="c5";
});

$("#BtnZhiDa").click(function(){
pObj=new Object();
pObj.id=$("#id").val();
pObj.TypeId=$("#TypeId").val();//村?镇?
  pObj.cache="&cache="+new Date().getTime();
var urlStr;
urlStr = "/e/extend/cct/zhida/?id="+pObj.id+"&TypeId="+pObj.TypeId;
//window.open(urlStr,'_blank');
$.layer({
type : 2,
title : ['网站对话框',true],
iframe : {src : "/e/extend/cct/zhida/?id="+pObj.id+"&TypeId="+pObj.TypeId},
area : ['900px' , '500px'],
offset : ['10px','']
});

//alert("zhida");
});
$("#BtnRnd").click(function(){
pObj=new Object();
pObj.TypeId=$("#TypeId").val();//村?镇?
  pObj.cache="&cache="+new Date().getTime();
//var urlStr;
//urlStr = "/e/extend/cct/rnd/?TypeId="+pObj.TypeId;
//window.open(urlStr,'_blank');
$.layer({
type : 2,
title : ['随便逛逛',true],
iframe : {src : '/e/extend/cct/rnd/?'+$.param(pObj)},
area : ['900px' , '500px'],
offset : ['10px','']
});
//alert("BtnRnd");
});

$("#Type5").click(function(){
$("#TypeId").val("5");//村
//alert("5");
  });
$("#Type4").click(function(){
$("#TypeId").val("4");//镇
//alert("4");
  });
$("#Type3").click(function(){
$("#TypeId").val("3");//县区
//alert("3");
  });
$("#top1_in_right_ExtendBtn").click(function(){/*收起导航层*/
$("#expandAllPlace").slideToggle("slow");
});
});

  评论这张
 
阅读(386)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017