⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 function.js

📁 本系统是一套开源WEB的网站管理系统
💻 JS
字号:
function mouseOver(obj)
{
	obj.style.backgroundColor="#F5F8FE";
	obj.style.cursor="hand";
}
function mouseOut(obj)
{
	obj.style.backgroundColor="";
	obj.style.cursor="default";
}
function SelectColor(what){
	var dEL = document.all(what);
	var sEL = document.all("s_"+what);
	//var url = "selcolor.htm?color="+encodeURIComponent(dEL.value);
	//var arr = showModalDialog(url,window,"dialogWidth:280px;dialogHeight:250px;help:no;scroll:no;status:no");
	var arr = showModalDialog("images/selcolor.html", "", "dialogWidth:100.5em; dialogHeight:50.5em; status:0; help:0");
	if (arr) {
		dEL.value=arr;
		sEL.style.backgroundColor=arr;
	}
}
function openupload(obj,type){
var val=showModalDialog("upfileclass.asp?upfilepath=../upfile/softdown/&uptype=down", "", "dialogWidth:25em; dialogHeight:5em; status:0;help:0;"); 
if(val!=null){
	obj.value=val;
	obj.focus;}
}
function openupfile(type){
window.open('myup.asp?upfilepath=../upfile/softdown/&uptype=down&urlname=url1&sizename=downsize','','top=300,left=400,width=355,height=50px,status=yes')}
// 修改编辑栏高度
function edit_size(num,objname)
{
	var obj=document.getElementById(objname);
	if (parseInt(obj.rows)+num>=3) {
		obj.rows = parseInt(obj.rows) + num;
	}
	if (num>0)
	{
		obj.width="90%";
	}
}
function allSize(num,objname){
	var obj=document.getElementById(objname);
	var height_,objheight;
	height_=obj.style.height;
	objheight=height_.substring(0,height_.indexOf("px"));
	if(parseInt(objheight)+num>=3){
		obj.style.height=parseInt(objheight)+num;
		
	}
}
var flag=true; 
function DrawImage(ImgD){ 
    var image=new Image(); 
    image.src=ImgD.src; 
    if(image.width>0 && image.height>0){ 
        flag=true; 
        if(image.width>=750){ 
            ImgD.width=750; 
            ImgD.height=(image.height*750)/image.width; 
        }else{ 
            ImgD.width=image.width; 
            ImgD.height=image.height; 
        }  
    } 
}
function gbDrawImage(ImgD){ 
    var image=new Image(); 
    image.src=ImgD.src; 
    if(image.width>0 && image.height>0){ 
        flag=true; 
        if(image.width>=135){ 
            ImgD.width=135; 
            ImgD.height=(image.height*135)/image.width; 
        }else{ 
            ImgD.width=image.width; 
            ImgD.height=image.height; 
        }  
    } 
} 
function cgimg(o){
var zoom=parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;if (zoom>0) o.style.zoom=zoom+'%';
return false;
}
var img = new Image();
img.src="Images/l-.gif";
function show(obj){
	var sellteObj = obj.nextSibling;
	var imgObj = obj.firstChild;
	if(sellteObj.style.display=="none"){
		sellteObj.style.display="block";
		imgObj.src="Images/-.gif";
		}
	else{
		sellteObj.style.display="none";
		imgObj.src="Images/+.gif";
		}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -