js_code.inc

来自「这是我编的一小软件。请等级等待指教。呵呵。ASP的」· INC 代码 · 共 60 行

INC
60
字号
<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 + =
减小字号Ctrl + -
显示快捷键?