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

📄 js.js

📁 小E单班同学录系统
💻 JS
字号:
function InitDivHeight()
{
document.getElementById("body_left").style.height=document.getElementById("body_middle").scrollHeight+"px";
document.getElementById("body_right").style.height=document.getElementById("body_middle").scrollHeight+"px";
document.getElementById("sidebar_birthday_m").style.height=document.getElementById("birthday").scrollHeight+"px";
}
function InitDivnavHeight()
{
document.getElementById("sidebar_nav_m").style.height=document.getElementById("sidebar_nav_l").scrollHeight + 16 +"px";
}
function InitDivHeight2()
{
if(document.getElementById("body_middle").scrollHeight<document.getElementById("body_left").scrollHeight)
{
document.getElementById("body_middle").style.height=document.getElementById("body_left").scrollHeight+"px";
document.getElementById("body_right").style.height=document.getElementById("body_left").scrollHeight+"px";
}
else
{
document.getElementById("body_left").style.height=document.getElementById("body_middle").scrollHeight+"px";
document.getElementById("body_right").style.height=document.getElementById("body_middle").scrollHeight+"px";
}
}

/**********************************************************************/
/* Function    : showHellow
/* Input       : None
/* Output      : None
/* Description : 问候语提示
/***********************************************************************/
function ShowHello() {
var welcomestring;
var d = new Date();	
h = d.getHours();
if(h<6)
welcomestring="不要睡太晚了哦!";
else if (h<9)
welcomestring="您来得真早啊!";
else if (h<12)
welcomestring="今天精神不错吧!";
else if (h<14)
welcomestring="吃午饭了吗?";
else if (h<17)
welcomestring="午睡睡得好吗?";
else if (h<19)
welcomestring="吃晚饭了吗?";
else if (h<22)
welcomestring="人多了,网慢了。";
else
welcomestring="注意休息哦!";
document.write(welcomestring);
}

function OpenFriendWindow (target) { 
window.open(target, "Friend", "resizable=yes,resizable=yes,width=320,height=160"); 
}
function OpenFriendWindowHistory (target) { 
window.open(target, "Friend", "resizable=yes,resizable=yes,width=320,height=250"); 
}

<!-- 
//图片按比例缩放 
var flag=false; 
function DrawImage(ImgD,iwidth,iheight)
{ 
var image=new Image(); 
image.src=ImgD.src; 
if(image.width>0 && image.height>0)
{ 
flag=true; 
if(image.width>iwidth)
{ 
ImgD.width=iwidth; 
}
} 
ImgD.alt+="\n大小:"+image.width+"×"+image.height+"像素"; 
} 
//--> 

⌨️ 快捷键说明

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