jQuery(document).ready(function(){
	//天气预报
	var x = -150;
	var y = 20;
	jQuery("a.weather").mouseover(function(e){
		this.myTitle = this.title;
		this.title = "";	
		var imgTitle = this.myTitle? "<br/>" + this.myTitle : "";
		var tooltip = "<div id='weather'><iframe src='http://www.thinkpage.cn/weather/weather.aspx?uid=&c=CHXX0008&l=zh-CHS&p=CMA&a=1&u=C&s=1&m=0&x=0&d=3&fc=&bgc=&bc=&ti=1&in=1&li=2&ct=iframe' frameborder='0' scrolling='no' width='200' height='110' allowTransparency='true'></iframe><\/div>"; //创建 div 元素
		jQuery("body").append(tooltip);	//把它追加到文档中						 
		jQuery("#weather")
			.css({
				"top": (e.pageY+y) + "px",
				"left":  (e.pageX+x)  + "px"
			}).show("fast");	  //设置x坐标和y坐标，并且显示
    }).mouseout(function(){
		this.title = this.myTitle;	
		jQuery("#weather").remove();	 //移除 
    }).mousemove(function(e){
		jQuery("#weather")
			.css({
				"top": (e.pageY+y) + "px",
				"left":  (e.pageX+x)  + "px"
			});
	});

})
