// JavaScript Document
$(function(){
$(".pic_con").slide({titCell:".num li", mainCell:".pic",effect:"fold", autoPlay:true,startFun:function(i){$(".txt li").eq(i).animate({"bottom":0}).siblings().animate({"bottom":'-52px'});}});
// $(".txtScroll-top").slide({mainCell:"ul",autoPage:true,effect:"topLoop",autoPlay:true,vis:1});
$(".slideTxtBox").slide({});
$(".wsps-qh").slide({mainCell:".bd ul",effect:"leftLoop",pnLoop:true,vis:5,autoPlay:false,prevCell:'.prevs',nextCell:'.nexts'});
$(".wsps-qh-one").slide({mainCell:".bd ul",effect:"leftLoop",pnLoop:true,vis:4,autoPlay:false,prevCell:'.prevs',nextCell:'.nexts'});
$(".slideTxtBox1").slide({titCell:".slideTxtBox1-hd span", mainCell:".slideTxtBox1-bd",effect:"fold",delayTime:100});
$(".slideTxtBoxs").slide({titCell:".hds li",mainCell:".bds",defaultIndex:0});
$(".slide-jdlz").slide({titCell:".hd span"});
$(".ztzl-two").css('min-height',parseInt($('.ztzl-two-left').innerHeight()));
//细览新增二维码
// $(".xqym").append('
方针政策权威发布,经济民生面面俱到,新鲜资讯随手掌握

- 欢迎关注鄂州政府网官方微信“鄂州市政府门户网站”。
- ① 打开微信——发现——扫一扫,扫描左侧的微信二维码关注。
- ② 打开微信——通讯录——右上角“添加”,搜索“鄂州市政府门户网站”或“ezzfw0711”关注。
');
$(function () {
$('.sel-four').change(function () { // 选择后替换内容并恢复箭头方向
$('.span').html($('.sel-four').find('option:selected').html());
})
$('.sel-one').change(function () { // 选择后替换内容并恢复箭头方向
$('.span-one').html($('.sel-one').find('option:selected').html());
})
$('.sel-two').change(function () { // 选择后替换内容并恢复箭头方向
$('.span-two').html($('.sel-two').find('option:selected').html());
})
$('.sel-three').change(function () { // 选择后替换内容并恢复箭头方向
$('.span-three').html($('.sel-three').find('option:selected').html());
})
})
/*3D标签云*/
// tagcloud({
// selector: ".tagcloud", //元素选择器
// fontsize: 14, //基本字体大小, 单位px
// radius: 50, //滚动半径, 单位px
// mspeed: "slow", //滚动最大速度, 取值: slow, normal(默认), fast
// ispeed: "slow", //滚动初速度, 取值: slow, normal(默认), fast
// direction: 120, //初始滚动方向, 取值角度(顺时针360): 0对应top, 90对应left, 135对应right-bottom(默认)...
// keep: false //鼠标移出组件后是否继续随鼠标滚动, 取值: false, true(默认) 对应 减速至初速度滚动, 随鼠标滚动
// });
$(document).ready(function(){
$("#leftsead a").hover(function(){
if($(this).prop("className")=="youhui"){
$(this).children("i.hides").show();
}else{
$(this).children("i.hides").show();
$(this).children("i.shows").hide();
$(this).children("i.hides").animate({marginRight:'0px'},'slow');
}
},function(){
if($(this).prop("className")=="youhui"){
$(this).children("i.hides").hide('slow');
}else{
$(this).children("i.hides").animate({marginRight:'-143px'},'slow',function(){$(this).hide();$(this).next("i.shows").show();});
}
});
});
})
//设为首页
function SetHome(obj, url) {
try {
obj.style.behavior = 'url(#default#homepage)';
obj.setHomePage(url);
} catch (e) {
if (window.netscape) {
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
} catch (e) {
alert("抱歉,此操作被浏览器拒绝!\n\n请在浏览器地址栏输入“about:config”并回车然后将[signed.applets.codebase_principal_support]设置为'true'");
}
} else {
alert("抱歉,您所使用的浏览器无法完成此操作。\n\n您需要手动将【" + url + "】设置为首页。");
}
}
}
//收藏本站
function AddFavorite(title, url) {
try {
window.external.addFavorite(url, title);
}
catch (e) {
try {
window.sidebar.addPanel(title, url, "");
}
catch (e) {
alert("抱歉,您所使用的浏览器无法完成此操作。\n\n加入收藏失败,请使用Ctrl+D进行添加");
}
}
}
//保存到桌面
function toDesktop(sUrl, sName) {
try {
var WshShell = new ActiveXObject("WScript.Shell");
var oUrlLink = WshShell.CreateShortcut(WshShell.SpecialFolders("Desktop") + "\\" + sName + ".url");
oUrlLink.TargetPath = sUrl;
oUrlLink.Save();
}
catch (e) {
alert("当前IE安全级别不允许操作!");
}
}