代码拉取完成,页面将自动刷新
if (navigator.appName == "Netscape") {
document.write("<style type='text/css'>body {overflow-y:scroll;}<\/style>");
}
var userAgent = navigator.userAgent.toLowerCase();
var is_ie = (userAgent.indexOf('msie') != -1) && userAgent.substr(userAgent.indexOf('msie') + 5, 3);
/*
function $() {
var elements = new Array();
for (var i = 0; i < arguments.length; i++) {
var element = arguments[i];
if (typeof element == 'string')
element = document.getElementById(element);
if (arguments.length == 1)
return element;
elements.push(element);
}
return elements;
}
*/
function Scale(image, max_width, max_height) {
var tempimage = new Image();
tempimage.src = image.src;
var tempwidth = tempimage.width;
var tempheight = tempimage.height;
if (tempwidth > max_width) {
image.height = tempheight = Math.round(((max_width) / tempwidth) * tempheight);
image.width = tempwidth = max_width;
}
if (max_height != 0 && tempheight > max_height)
{
image.width = Math.round(((max_height) / tempheight) * tempwidth);
image.height = max_height;
}
}
function check_avatar(image, langfolder) {
var tempimage = new Image();
tempimage.src = image.src;
var displayheight = image.height;
var tempwidth = tempimage.width;
var tempheight = tempimage.height;
if (tempwidth > 250 || tempheight > 250 || displayheight > 250) {
image.src = 'pic/forum_pic/' + langfolder + '/avatartoobig.png';
}
}
function Preview(image) {//修复冲突错误
if (!is_ie || is_ie >= 7) {
$('#lightbox').html("<a onclick=\"Return();\"><img src=\"" + image.src + "\" /></a>");
$('#curtain').css({"display": "block"});
$('#lightbox').css({"display": "block"});
}
else {
window.open(image.src);
}
}
function Previewurl(url) {//修复冲突错误
if (!is_ie || is_ie >= 7) {
$('#lightbox').html("<a onclick=\"Return();\"><img src=\"" + url + "\" /></a>");
$('#curtain').css({"display": "block"});
$('#lightbox').css({"display": "block"});
}
else {
window.open(url);
}
}
function findPosition(oElement) {
if (typeof (oElement.offsetParent) != 'undefined') {
for (var posX = 0, posY = 0; oElement; oElement = oElement.offsetParent) {
posX += oElement.offsetLeft;
posY += oElement.offsetTop;
}
return [posX, posY];
} else {
return [oElement.x, oElement.y];
}
}
function Return() {//修复冲突错误
$('#lightbox').html("");
$('#curtain').css({"display": "none"});
$('#lightbox').css({"display": "none"});
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。