关于JS合并问题4个合成一个 本帖最后由 zxjcm 于 2011-06-10 15:23:49 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 第二个JS/*document.writeln("<script language=javascript>");document.writeln("var LiveAutoInvite0=\'您好,来自%IP%的朋友\';");document.writeln("var LiveAutoInvite1=\'来自首页的对话\';");document.writeln("var LiveAutoInvite2=\'<P>三级甲等医院<BR>诚信部队医院<BR>无假日医院<BR>百姓放心示范医院<BR>国家医疗保险定点医院<BR><BR>您有健康问题请点击咨询,我们的专家会帮助您;<BR>您的健康是我们的责任,会对您的信息严格的保密。</P>\';");document.writeln("</script>");document.writeln("<script language=\"javascript\" src=\"http://net.zoosnet.net/JS/LsJS.aspx?siteid=NET35223441&float=1\"></script>");*/document.writeln("<script type=\"text/javascript\" charset=\"gb2312\">");document.writeln("var Invite_ToRight=1;");document.writeln("var Invite_left=5;");document.writeln("var Invite_ToBottom=1;");document.writeln("var Invite_top=5;");document.writeln("var LrinviteTimeout=5;");document.writeln("var LiveAutoInvite0=\'您好,来自%IP%的朋友\'; ");document.writeln("var LiveAutoInvite1=\'来自首页自动邀请的对话\';");document.writeln("var LiveAutoInvite2=\'网站商务通主要功能:<br>1、主动邀请<br>2、即时沟通<br>3、查看即时访问动态<br>4、访问轨迹跟踪<br>5、内部对话<br>6、不安装任何插件也实现双向文件传输<br><br><b>如果您有任何问题请接受此邀请以开始即时沟通</b>\';");document.writeln("//-->");document.writeln("</script>");document.writeln("<script type=\"text/javascript\" charset=\"gb2312\" src=\"http://net.zoosnet.net/JS/LsJS.aspx?siteid=NET35223441&float=1&lng=cn\"></script>"); 第三个jsfunction GetObj(objName){if(document.getElementById){return eval('document.getElementById("' + objName + '")');}else if(document.layers){return eval("document.layers['" + objName +"']");}else{return eval('document.all.' + objName);}}function MenuA(index,flag){for(var i=0;i<10;i++){/* max-4 */if(GetObj("ContA"+i)&&GetObj("TitA"+i)){GetObj("ContA"+i).style.display = 'none';GetObj("TitA"+i).className = "out";}}if(GetObj("ContA"+index)&&GetObj("TitA"+index)){GetObj("ContA"+index).style.display = 'block';GetObj("TitA"+index).className = "on";}}function MenuB(index,flag){for(var i=0;i<10;i++){/* max-4 */if(GetObj("ContB"+i)&&GetObj("TitB"+i)){GetObj("ContB"+i).style.display = 'none';GetObj("TitB"+i).className = "out";}}if(GetObj("ContB"+index)&&GetObj("TitB"+index)){GetObj("ContB"+index).style.display = 'block';GetObj("TitB"+index).className = "on";}}function MenuC(index,flag){for(var i=0;i<10;i++){/* max-4 */if(GetObj("ContC"+i)&&GetObj("TitC"+i)){GetObj("ContC"+i).style.display = 'none';GetObj("TitC"+i).className = "out";}}if(GetObj("ContC"+index)&&GetObj("TitC"+index)){GetObj("ContC"+index).style.display = 'block';GetObj("TitC"+index).className = "on";}}function MenuD(index,flag){for(var i=0;i<10;i++){/* max-4 */if(GetObj("ContD"+i)&&GetObj("TitD"+i)){GetObj("ContD"+i).style.display = 'none';GetObj("TitD"+i).className = "out";}}if(GetObj("ContD"+index)&&GetObj("TitD"+index)){GetObj("ContD"+index).style.display = 'block';GetObj("TitD"+index).className = "on";}}function MenuE(index,flag){for(var i=0;i<10;i++){/* max-4 */if(GetObj("ContE"+i)&&GetObj("TitE"+i)){GetObj("ContE"+i).style.display = 'none';GetObj("TitE"+i).className = "out";}}if(GetObj("ContE"+index)&&GetObj("TitE"+index)){GetObj("ContE"+index).style.display = 'block';GetObj("TitE"+index).className = "on";}}function MenuF(index,flag){for(var i=0;i<10;i++){/* max-4 */if(GetObj("ContF"+i)&&GetObj("TitF"+i)){GetObj("ContF"+i).style.display = 'none';GetObj("TitF"+i).className = "out";}}if(GetObj("ContF"+index)&&GetObj("TitF"+index)){GetObj("ContF"+index).style.display = 'block';GetObj("TitF"+index).className = "on";}}function MenuG(index,flag){for(var i=0;i<10;i++){/* max-4 */if(GetObj("ContG"+i)&&GetObj("TitG"+i)){GetObj("ContG"+i).style.display = 'none';GetObj("TitG"+i).className = "out";}}if(GetObj("ContG"+index)&&GetObj("TitG"+index)){GetObj("ContG"+index).style.display = 'block';GetObj("TitG"+index).className = "on";}}function MenuH(index,flag){for(var i=0;i<10;i++){/* max-4 */if(GetObj("ContH"+i)&&GetObj("TitH"+i)){GetObj("ContH"+i).style.display = 'none';GetObj("TitH"+i).className = "out";}}if(GetObj("ContH"+index)&&GetObj("TitH"+index)){GetObj("ContH"+index).style.display = 'block';GetObj("TitH"+index).className = "on";}}function MenuZ(index,flag){for(var i=0;i<10;i++){/* max-4 */if(GetObj("ContZ"+i)&&GetObj("TitZ"+i)){GetObj("ContZ"+i).style.display = 'none';GetObj("TitZ"+i).className = "out";}}if(GetObj("ContZ"+index)&&GetObj("TitZ"+index)){GetObj("ContZ"+index).style.display = 'block';GetObj("TitZ"+index).className = "on";} 第四个是把这个是调用。<script type="text/javascript" src="http://www.ekang.us/ekangsqw3c.js"></script> 用js实现,当点击菜单中的某一项时,有背景色出现。 【JS 不适应IE8】 js如何设置min-height JavaScript 树形结构问题 项目开发中遇到的一个问题:怎样打开一个窗口自动的停靠在父窗口的边上。 著急 怎么实现点击其中一个修改按钮时候,其他表单内的select自动禁用? 关于img图片改变的javascript? 高手们,有一个问题???? 怎样在网页中实现类似于屏幕保护程序定时的功能 为什么鼠标悬浮到“客户中心”时出现错误?虚心请教! google map api v3 在地图上添加大量的图标。如何添加?
/*document.writeln("<script language=javascript>");
document.writeln("var LiveAutoInvite0=\'您好,来自%IP%的朋友\';");
document.writeln("var LiveAutoInvite1=\'来自首页的对话\';");
document.writeln("var LiveAutoInvite2=\'<P>三级甲等医院<BR>诚信部队医院<BR>无假日医院<BR>百姓放心示范医院<BR>国家医疗保险定点医院<BR><BR>您有健康问题请点击咨询,我们的专家会帮助您;<BR>您的健康是我们的责任,会对您的信息严格的保密。</P>\';");
document.writeln("</script>");
document.writeln("<script language=\"javascript\" src=\"http://net.zoosnet.net/JS/LsJS.aspx?siteid=NET35223441&float=1\"></script>");*/
document.writeln("<script type=\"text/javascript\" charset=\"gb2312\">");
document.writeln("var Invite_ToRight=1;");
document.writeln("var Invite_left=5;");
document.writeln("var Invite_ToBottom=1;");
document.writeln("var Invite_top=5;");
document.writeln("var LrinviteTimeout=5;");
document.writeln("var LiveAutoInvite0=\'您好,来自%IP%的朋友\'; ");
document.writeln("var LiveAutoInvite1=\'来自首页自动邀请的对话\';");
document.writeln("var LiveAutoInvite2=\'网站商务通主要功能:<br>1、主动邀请<br>2、即时沟通<br>3、查看即时访问动态<br>4、访问轨迹跟踪<br>5、内部对话<br>6、不安装任何插件也实现双向文件传输<br><br><b>如果您有任何问题请接受此邀请以开始即时沟通</b>\';");
document.writeln("//-->");
document.writeln("</script>");
document.writeln("<script type=\"text/javascript\" charset=\"gb2312\" src=\"http://net.zoosnet.net/JS/LsJS.aspx?siteid=NET35223441&float=1&lng=cn\"></script>");
function GetObj(objName){
if(document.getElementById){
return eval('document.getElementById("' + objName + '")');
}else if(document.layers){
return eval("document.layers['" + objName +"']");
}else{
return eval('document.all.' + objName);
}
}
function MenuA(index,flag){
for(var i=0;i<10;i++){/* max-4 */
if(GetObj("ContA"+i)&&GetObj("TitA"+i)){
GetObj("ContA"+i).style.display = 'none';
GetObj("TitA"+i).className = "out";
}
}
if(GetObj("ContA"+index)&&GetObj("TitA"+index)){
GetObj("ContA"+index).style.display = 'block';
GetObj("TitA"+index).className = "on";
}
}function MenuB(index,flag){
for(var i=0;i<10;i++){/* max-4 */
if(GetObj("ContB"+i)&&GetObj("TitB"+i)){
GetObj("ContB"+i).style.display = 'none';
GetObj("TitB"+i).className = "out";
}
}
if(GetObj("ContB"+index)&&GetObj("TitB"+index)){
GetObj("ContB"+index).style.display = 'block';
GetObj("TitB"+index).className = "on";
}
}function MenuC(index,flag){
for(var i=0;i<10;i++){/* max-4 */
if(GetObj("ContC"+i)&&GetObj("TitC"+i)){
GetObj("ContC"+i).style.display = 'none';
GetObj("TitC"+i).className = "out";
}
}
if(GetObj("ContC"+index)&&GetObj("TitC"+index)){
GetObj("ContC"+index).style.display = 'block';
GetObj("TitC"+index).className = "on";
}
}function MenuD(index,flag){
for(var i=0;i<10;i++){/* max-4 */
if(GetObj("ContD"+i)&&GetObj("TitD"+i)){
GetObj("ContD"+i).style.display = 'none';
GetObj("TitD"+i).className = "out";
}
}
if(GetObj("ContD"+index)&&GetObj("TitD"+index)){
GetObj("ContD"+index).style.display = 'block';
GetObj("TitD"+index).className = "on";
}
}function MenuE(index,flag){
for(var i=0;i<10;i++){/* max-4 */
if(GetObj("ContE"+i)&&GetObj("TitE"+i)){
GetObj("ContE"+i).style.display = 'none';
GetObj("TitE"+i).className = "out";
}
}
if(GetObj("ContE"+index)&&GetObj("TitE"+index)){
GetObj("ContE"+index).style.display = 'block';
GetObj("TitE"+index).className = "on";
}
}function MenuF(index,flag){
for(var i=0;i<10;i++){/* max-4 */
if(GetObj("ContF"+i)&&GetObj("TitF"+i)){
GetObj("ContF"+i).style.display = 'none';
GetObj("TitF"+i).className = "out";
}
}
if(GetObj("ContF"+index)&&GetObj("TitF"+index)){
GetObj("ContF"+index).style.display = 'block';
GetObj("TitF"+index).className = "on";
}
}function MenuG(index,flag){
for(var i=0;i<10;i++){/* max-4 */
if(GetObj("ContG"+i)&&GetObj("TitG"+i)){
GetObj("ContG"+i).style.display = 'none';
GetObj("TitG"+i).className = "out";
}
}
if(GetObj("ContG"+index)&&GetObj("TitG"+index)){
GetObj("ContG"+index).style.display = 'block';
GetObj("TitG"+index).className = "on";
}
}function MenuH(index,flag){
for(var i=0;i<10;i++){/* max-4 */
if(GetObj("ContH"+i)&&GetObj("TitH"+i)){
GetObj("ContH"+i).style.display = 'none';
GetObj("TitH"+i).className = "out";
}
}
if(GetObj("ContH"+index)&&GetObj("TitH"+index)){
GetObj("ContH"+index).style.display = 'block';
GetObj("TitH"+index).className = "on";
}
}
function MenuZ(index,flag){
for(var i=0;i<10;i++){/* max-4 */
if(GetObj("ContZ"+i)&&GetObj("TitZ"+i)){
GetObj("ContZ"+i).style.display = 'none';
GetObj("TitZ"+i).className = "out";
}
}
if(GetObj("ContZ"+index)&&GetObj("TitZ"+index)){
GetObj("ContZ"+index).style.display = 'block';
GetObj("TitZ"+index).className = "on";
}
<script type="text/javascript" src="http://www.ekang.us/ekangsqw3c.js">
</script>