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

📄 js_code.inc

📁 这是我编的一小软件。请等级等待指教。呵呵。ASP的
💻 INC
字号:
<script type="text/javascript" language="javascript">
<!--

//选择专题的函数
function openTopic()
{
	window.open("<%= basePath%>UserMSC/ItemSelect.aspx?act=topic","itemselect","width=450px, height=380px,left=0,top=0, status=1, help=0, scroll=1, resizable=1");
}

//选择关键字的函数
function openKey()
{
	window.open("<%= basePath%>UserMSC/ItemSelect.aspx?act=key","itemselect","width=450px,height=380px,left=0,top=0,status=1,help=0,scroll=1,resizable=1");
}
// 设置关键字
function setKey(name)
{
	var oKey=document.all.<%=Key.ClientID%>;
	oKey.value=name;
}

function SetTitleImg(str)
{
	var obj=document.forms[0].<%=TitleImg.ClientID%>
	obj.value=str;
}

function OpenUpload()
{
	window.open("<%= basePath%>UserMSC/UploadMultiple.aspx","upload","width=450,height=320,left=0,top=0,scrollbars=1,status=1,resizable=1");
}

// 反选checkbox

function checkAll(layer, bcheck)
{
	for(var i=0; i<layer.children.length; i++)
	{
		if (layer.children[i].children.length>0)
		{
			checkAll(layer.children[i],bcheck);
		}else{
			if (layer.children[i].type=="checkbox")
			{
					layer.children[i].checked = bcheck;
			}
		}
	}
}

function news_submit()
{
	alert("aa");
}
-->
</script>

<script type="text/javascript" for="document" event="onkeydown">
	if(event.ctrlKey && window.event.keyCode==13){news_submit();}
</script>

⌨️ 快捷键说明

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