×关闭<\/a><\/div>");
window.setInterval("heartBeat()",1);
}
},"json");
//右侧悬挂
$.post("webSite!getInfoFloat.action",{sfType:2},function(data){
var ifstatus=data.ifstatus;
if(ifstatus==1){
var idUrl = data.sfUrl;
var sfPath = "." + data.sfPath;
//下面这段删除后,对联将不跟随屏幕而移动。
//以下为主要内容
$("#rightDiv").html("
×关闭<\/a>
<\/div>");
window.setInterval("heartBeat()",1);
}
},"json");
//自由移动
$.post("webSite!getInfoFloat.action",{sfType:3},function(data){
var ifstatus=data.ifstatus;
if(ifstatus==1){
$("#freeInfoFloatImg").attr("src","." + data.sfPath);
$("#freeInfoFloatHref").attr("href",data.sfUrl);
$("#freeInfoFloatHref").attr("target","_blank");
$("#freeInfoFloatDiv").show();
}
},"json");
}
var intervalId = null;
function slideAd(id,nStayTime,sState,nMaxHth,nMinHth){
this.stayTime=nStayTime*1000 || 3000;
this.maxHeigth=nMaxHth || 248;
this.minHeigth=nMinHth || 2.5;
this.state=sState || "down" ;
var obj = document.getElementById(id);
var he = document.getElementById(id).getElementsByTagName("img");
if(intervalId != null){
window.clearInterval(intervalId);
}
function openBox(){
var h = obj.offsetHeight;
obj.style.height = ((this.state == "down") ? (h + 4) : (h - 50))+"px";
if(obj.offsetHeight>this.maxHeigth){
window.clearInterval(intervalId);
intervalId=window.setInterval(closeBox,this.stayTime);
}
if (obj.offsetHeight0){
percent=Math.ceil(percent);
}else{
percent=Math.floor(percent);
}
document.getElementById("leftDiv").style.top = parseInt(document.getElementById("leftDiv").style.top)+percent+"px";
document.getElementById("rightDiv").style.top = parseInt(document.getElementById("rightDiv").style.top)+percent+"px";
var right=(document.body.clientWidth-1000)/2-100;
document.getElementById("rightDiv").style.right = right+"px";
var left=(document.body.clientWidth-1000)/2-150;
document.getElementById("leftDiv").style.left = left+"px";
lastScrollY=lastScrollY+percent;
}
//关闭按钮
function close_left1(){
left1.style.visibility='hidden';
}
function close_left2(){
left2.style.visibility='hidden';
}
function close_right1(){
right1.style.visibility='hidden';
}
function close_right2(){
right2.style.visibility='hidden';
}
function getinfo(token,scriptid,sourceid,datatype,datacount,datalength){
var url="webSite!getInfoByClId.action";
$.post(url,{clId:sourceid,pagesize:datacount,beginpage:1},function(data){
data = JSON.parse(data);
var script=$("#"+scriptid).val();
var content="";
if(datatype=="subchannellist"){
if(data.subchannellist){
$.each(data.subchannellist,function(index,item){
var clId = item.clId;
var clCode = item.clCode;
var clName = item.clName;
var clThumbnailPath = item.clThumbnailPath;
var middleResult=script.replace("[clId]",clId)
.replace("[src]",".."+clThumbnailPath)
.replace("[alt]",clName)
.replace("[title]",clName)
.replace("[clName]",clName);
content+=middleResult;
});
}
$('ul[token="'+token+'"]').html(content);
}else if(datatype=="infolist"){
if(data.infolist){
$.each(data.infolist,function(index,item){
var infotitle = item.infoTitle;
var ititle = infotitle;
if(infotitle.length > datalength/2){
//infotitle = cutString(infotitle,datalength);
}
if(infotitle.length < 16 && token=="gonggaoxinxi"){
infotitle = infotitle+" ";
}
if(index < datacount) {
var middleResult=script.replace("[infoId]",item.infoId)
.replace("[infotitle]",infotitle)
.replace("[title]",ititle)
.replace("[filePath]",".."+item.infoFilePath)
.replace("[infoPublishDate]",item.infoPublishDate);
content+=middleResult;
} else if(token != "tongzhigonggao") {
content+='' + infotitle + '';
}
});
}
$('ul[token="'+token+'"]').html(content);
if(token=="tongzhigonggao"){
shuffling();
}
}else if(datatype=="newsimg"){
if(data.infolist){
$.each(data.infolist,function(index,item){
if(index < datacount){
var middleResult=script.replace("[infoId]",item.infoId)
.replace("[src]","."+item.infoThumbPicPath)
.replace("[infoTitle]",item.infoTitle)
.replace("[infoTitle]",item.infoTitle);
content+=middleResult;
var title = item.infoTitle;
if(title!=undefined&&title.length > 21){
title = title.replace(title.substring(21,title.length),"...");
}
$('.picture dl').append(""+title+"");
}
});
}
$('dl[token="'+token+'"]').next("ul").html(content);
$('.picture ul').append($('.picture ul li').eq(0).clone(true));
$('.picture dl').append($('.picture dl dd').eq(0).clone(true));
}
},'json');
}
function getSubChannelPic() {
var sourceId = "277748ca61244671ab98a83f3fe57127";
var url="webSite!getInfoByClId.action";
$.post(url,{clId:sourceId},function(data){
data = JSON.parse(data);
var content="";
if(data.subchannellist){
var script = $("#wangshangzhanting").val();
$.each(data.subchannellist,function(index,item){
var clNameCode = escape(item.clName);
var middleResult=script.replace("[clId]",item.clId)
.replace("[clName]",clNameCode)
.replace("[clCode]",item.clCode)
.replace("[picPath]","url(."+item.clIconPath+")");
content+=middleResult;
});
if(content != undefined) {
$("#wszt-pic").html(content);
}
picShuffling();
}
});
}
/**参数说明:
* 根据长度截取先使用字符串,超长部分追加…
* str 对象字符串
* len 目标字节长度
* 返回值: 处理结果字符串
*/
function cutString(str, len) {
//length属性读出来的汉字长度为1
if(str.length*2 <= len) {
return str;
}
var strlen = 0;
var s = "";
for(var i = 0;i < str.length; i++) {
s = s + str.charAt(i);
if (str.charCodeAt(i) > 128) {
strlen = strlen + 2;
if(strlen >= len){
return s.substring(0,s.length-1) + "...";
}
} else {
strlen = strlen + 1;
if(strlen >= len){
return s.substring(0,s.length-2) + "...";
}
}
}
return s;
}
CCTV5投屏免费观看新手怎么玩
- 黑龙江省高等院校档案学会第二届会员代表大会暨档案业务培训交流大会
- 中国高等CCTV5投屏免费观看新手怎么玩学会档案工作分会第六次会员代表大会
- 中国高等CCTV5投屏免费观看新手怎么玩学会档案工作分会第六次会员代表大会
- 2019国际档案日宣传活动
- 友情链接:
-
全国档案馆
-
高校档案馆
-
地区档案馆
-
CCTV5投屏免费观看新手怎么玩常用