求助大神

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>js二级级联菜单</title>
<script language="javascript">
var onecount;
subcat = new Array();
       
subcat[0] = new Array("公司新闻","1","公司新闻");
       
subcat[1] = new Array("最新公告","1","最新公告");
       
subcat[2] = new Array("行业动态","2","行业动态");
       
subcat[3] = new Array("工程进展","2","工程进展");
       
subcat[4] = new Array("优秀员工","2","优秀员工");


onecount=5;


function changelocation(locationid)
    {
    document.form1.SmallClassName.length = 1; 
    var locationid=locationid;
    var i;
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
            { 
                document.form1.SmallClassName.options


[document.form1.SmallClassName.length] = new Option(subcat[i][0], subcat[i]


[2]);
            }        
        }
    }  
function doChange(objText, objDrop){
if (!objDrop) return;
var str = objText.value;
var arr = str.split("|");
var nIndex = objDrop.selectedIndex;
objDrop.length=1;
for (var i=0; i<arr.length; i++){
objDrop.options[objDrop.length] = new Option(arr[i], 


arr[i]);
}
objDrop.selectedIndex = nIndex;
}




function form1_onsubmit()
{


  if (document.form1.Title.value=="")
  {
    alert("文章标题不能为空!");
return false;
  }
  if (document.form1.SmallClassName.value=="")
  {
    alert("请指定子栏目!");
return false;
  }


if (Editor1.getHTML()==""){
alert("文章内容不能为空!");
return false;
}
  
  if (document.form1.Content.value.length>6553600)
  {
    alert("文章内容太长,超出了数据库的限制(64K)!建议将文章分成几部分录入


。");
return false;
  }
  return true;  
}


</script>
</head>


<body>
<form name="form1">
 <select name="BigClassName" onChange="changelocation


(document.form1.BigClassName.options


[document.form1.BigClassName.selectedIndex].value)">
 
<option value="1">新闻中心</option>
<option value="2">企业文化</option>
<option value="3">装逼风格</option>

             </select>
        </label>
    </span>
    <label>
    <select name="SmallClassName"> 
<option value="">不指定小类</option>
 
 <option value="公司新闻">公司新闻</option>


 
 <option value="最新公告">最新公告</option>


 
 <option value="行业动态">行业动态</option>


 
 <option value="工程进展">工程进展</option>


 
 <option value="优秀员工">优秀员工</option>


          
    </select>
</form>
</body>
</html>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
好的,我可以教你使用 vi 对文本进行段落对齐。请按照以下步骤进行操作: 1. 打开终端并输入 vi 命令以打开 vi 编辑器:`vi filename.txt`(filename.txt 可以替换为你想要的文件名)。 2. 按 `i` 键进入插入模式,输入以下两段文本: ``` Linux is an operating system that was initially created as a hobby by a young student named Linus Torvalds at the University of Helsinki in Finland. He had an interest in Minix, a small UNIX system, and decided to develop a system that exceeded the Minix standards. He began his work in 1991 when he released version 0.02 and worked steadily until 1994 when version 1.0 of the Linux Kernel was released. Linux is widely considered to be the most secure operating system available. It is open-source software, meaning that anyone can access its source code and make changes to it. This has resulted in a large community of developers working to improve the software and fix any bugs or security vulnerabilities that are discovered. ``` 3. 按 `Esc` 键退出插入模式,然后将光标移动到第一行的开头。 4. 按 `Ctrl + V` 键进入可视块模式。 5. 使用方向键将可视块选中,直到选中两段文本的最长行。 6. 按 `Shift + I` 键进入插入模式,输入一个空格,然后按 `Esc` 键退出插入模式。这样,选中的文本就会向右移动一个空格,从而对齐起来了。 7. 按 `Esc` 键退出可视块模式。 8. 输入 `:wq` 命令保存并退出文件。 完成以上步骤后,你的两段文本就会被对齐。希望这对你有所帮助!

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值