Ⅰ 我现在需要一个二级联动城市的下拉菜单asp源代码,同志们帮帮忙啊!
<SCRIPT LANGUAGE="javaScript">
function Dsy()
{
this.Items = {};
}
Dsy.prototype.add = function(id,iArray)
{
this.Items[id] = iArray;
}
Dsy.prototype.Exists = function(id)
{
if(typeof(this.Items[id]) == "undefined") return false;
return true;
}
function change(v){
var str="0";
for(i=0;i<v;i++){ str+=("_"+(document.getElementById(s[i]).selectedIndex-1));};
var ss=document.getElementById(s[v]);
with(ss){
length = 0;
options[0]=new Option(opt0[v],opt0[v]);
if(v && document.getElementById(s[v-1]).selectedIndex>0 || !v)
{
if(dsy.Exists(str)){
ar = dsy.Items[str];
for(i=0;i<ar.length;i++)options[length]=new Option(ar[i],ar[i]);
if(v)options[1].selected = true;
}
}
if(++v<s.length){change(v);}
}
}
var dsy = new Dsy();
dsy.add("0",["北京市","天津市","河北省","山西省","内蒙古","辽宁省","吉林省","黑龙江省","上海市","江苏省","浙江省","安徽省","福建省","江西省","山东省","河南省","湖北省","湖南省","广东省","广西自治区","海南省","重庆市","四川省","贵州省","云南省","西藏自治区","陕西省","甘肃省","青海省","宁夏回族自治区","新疆维吾尔自治区","香港特别行政区","澳门特别行政区","台湾省","其它"]);
dsy.add("0_0",["北京","东城区","西城区","崇文区","宣武区","朝阳区","丰台区","石景山区"," 海淀区(中关村)","门头沟区","房山区","通州区","顺义区","昌平区","大兴区","怀柔区","平谷区","密云县","延庆县","其他"]);
dsy.add("0_1",["和平区","河东区","河西区","南开区","红桥区","塘沽区","汉沽区","大港区","西青区","津南区","武清区","蓟县","宁河县","静海县","其他"]);
dsy.add("0_2",["石家庄市","张家口市","承德市","秦皇岛市","唐山市","廊坊市","衡水市","沧州市","邢台市","邯郸市","保定市","其他"]);
dsy.add("0_3",["太原市","朔州市","大同市","长治市","晋城市","忻州市","晋中市","临汾市","吕梁市","运城市","其他"]);
dsy.add("0_4",["呼和浩特市","包头市","赤峰市","呼伦贝尔市","鄂尔多斯市","乌兰察布市","巴彦淖尔市","兴安盟","阿拉善盟","锡林郭勒盟","其他"]);
dsy.add("0_5",["沈阳市","朝阳市","阜新市","铁岭市","抚顺市","丹东市","本溪市","辽阳市","鞍山市","大连市","营口市","盘锦市","锦州市","葫芦岛市","其他"]);
dsy.add("0_6",["长春市","白城市","吉林市","四平市","辽源市","通化市","白山市","延边朝鲜族自治州","其他"]);
dsy.add("0_7",["哈尔滨市","七台河市","黑河市","大庆市","齐齐哈尔市","伊春市","佳木斯市","双鸭山市","鸡西市","大兴安岭地区(加格达奇)","牡丹江","鹤岗市","绥化市 ","其他"]);
dsy.add("0_8",["黄浦区","卢湾区","徐汇区","长宁区","静安区","普陀区","闸北区","虹口区","杨浦区","闵行区","宝山区","嘉定区","浦东新区","金山区","松江区","青浦区","南汇区","奉贤区","崇明县","其他"]);
dsy.add("0_9",["南京市","徐州市","连云港市","宿迁市","淮安市","盐城市","扬州市","泰州市","南通市","镇江市","常州市","无锡市","苏州市","其他"]);
dsy.add("0_10",["杭州市","湖州市","嘉兴市","舟山市","宁波市","绍兴市","衢州市","金华市","台州市","温州市","丽水市","其他"]);
dsy.add("0_11",["合肥市","宿州市","淮北市","亳州市","阜阳市","蚌端口市","淮南市","滁州市","马鞍山市","芜湖市","铜陵市","安庆市","黄山市","六安市","巢湖市","池州市","宣城市","其他"]);
dsy.add("0_12",["福州市","南平市","莆田市","三明市","泉州市","厦门市","漳州市","龙岩市","宁德市","其他"]);
dsy.add("0_13",["南昌市","九江市","景德镇市","鹰潭市","新余市","萍乡市","赣州市","上饶市","抚州市","宜春市","吉安市","其他"]);
dsy.add("0_14",["济南市","聊城市","德州市","东营市","淄博市","潍坊市","烟台市","威海市","青岛市","日照市","临沂市","枣庄市","济宁市","泰安市","莱芜市","滨州市","菏泽市","其他"]);
dsy.add("0_15",["郑州市","三门峡市","洛阳市","焦作市","新乡市","鹤壁市","安阳市","濮阳市","开封市","商丘市","许昌市","漯河市","平顶山市","南阳市","信阳市","周口市","驻马店市","其他"]);
dsy.add("0_16",["武汉市","十堰市","襄樊市","荆门市","孝感市","黄冈市","鄂州市","黄石市","咸宁市","荆州市","宜昌市","随州市","恩施土家族苗族自治州","仙桃市","天门市","潜江市","神农架林区","其他"]);
dsy.add("0_17",["长沙市","张家界市","常德市","益阳市","岳阳市","株洲市","湘潭市","衡阳市","郴州市","永州市","邵阳市","怀化市","娄底市","湘西土家族苗族自治州","其他"]);
dsy.add("0_18",["广州市","清远市市","韶关市","河源市","梅州市","潮州市","汕头市","揭阳市","汕尾市","惠州市","东莞市","深圳市","珠海市","中山市","江门市","佛山市","肇庆市","云浮市","阳江市","茂名市","湛江市","其他"]);
dsy.add("0_19",["南宁市","桂林市","柳州市","梧州市","贵港市","玉林市","钦州市","北海市","防城港市","崇左市","百色市","河池市","来宾市","贺州市","其他"]);
dsy.add("0_20",["海口市","三亚市","其他"]);
dsy.add("0_21",["渝中区","大渡口区","江北区","沙坪坝区","九龙坡区","南岸区","北碚区","万盛区","双桥区","渝北区","巴南区","万州区","涪陵区","黔江区","长寿区","合川市","永川市","江津市","南川市","綦江县","潼南县","铜梁县","大足县","璧山县","垫江县","武隆县","丰都县","城口县","开县","巫溪县","巫山县","奉节县","云阳县","忠县","石柱土家族自治县","彭水苗族土家族自治县","酉阳土家族苗族自治县","秀山土家族苗族自治县","其他"]);
dsy.add("0_22",["成都市","广元市","绵阳市","德阳市","南充市","广安市","遂宁市","内江市","乐山市","自贡市","泸州市","宜宾市","攀枝花市","巴中市","资阳市","眉山市","雅安","阿坝藏族羌族自治州","甘孜藏族自治州","凉山彝族自治州县","其他"]);
dsy.add("0_23",["贵阳市","六盘水市","遵义市","安顺市","毕节地区","铜仁地区","黔东南苗族侗族自治州","黔南布依族苗族自治州","黔西南布依族苗族自治州","其他"]);
dsy.add("0_24",["昆明市","曲靖市","玉溪市","保山市","昭通市","丽江市","普洱市","临沧市","宁德市","德宏傣族景颇族自治州","怒江僳僳族自治州","楚雄彝族自治州","红河哈尼族彝族自治州","文山壮族苗族自治州","大理白族自治州","迪庆藏族自治州","西双版纳傣族自治州","其他"]);
dsy.add("0_25",["拉萨市","那曲地区","昌都地区","林芝地区","山南地区","日喀则地区","阿里地区","其他"]);
dsy.add("0_26",["西安市","延安市","铜川市","渭南市","咸阳市","宝鸡市","汉中市","安康市","商洛市","其他"]);
dsy.add("0_27",["兰州市 ","嘉峪关市","金昌市","白银市","天水市","武威市","酒泉市","张掖市","庆阳市","平凉市","定西市","陇南市","临夏回族自治州","甘南藏族自治州","其他"]);
dsy.add("0_28",["西宁市","海东地区","海北藏族自治州","黄南藏族自治州","玉树藏族自治州","海南藏族自治州","果洛藏族自治州","海西蒙古族藏族自治州","其他"]);
dsy.add("0_29",["银川市","石嘴山市","吴忠市","固原市","中卫市","其他"]);
dsy.add("0_30",["乌鲁木齐市","克拉玛依市","喀什地区","阿克苏地区","和田地区","吐鲁番地区","哈密地区","塔城地区","阿勒泰地区","克孜勒苏柯尔克孜自治州","博尔塔拉蒙古自治州","昌吉回族自治州 伊犁哈萨克自治州","巴音郭楞蒙古自治州","河子市","阿拉尔市","五家渠市","图木舒克市","其他"]);
dsy.add("0_31",["香港","其他"]);
dsy.add("0_31",["澳门","其他"])
dsy.add("0_32",["台湾","其他"])
//-->
</SCRIPT>
<SCRIPT LANGUAGE = JavaScript>
var s=["s1","s2"];
var opt0 = ["请选择","请选择"];
function setup()
{
for(i=0;i<s.length-1;i++)
document.getElementById(s[i]).onchange=new Function("change("+(i+1)+")");
change(0);
}
</SCRIPT>
调用:<select name="lz_sf" id="s1">
<option></option></select>
<select name="lz_sx" id="s2">
<option></option></select>
<SCRIPT language="javascript">
setup()
</SCRIPT>
Ⅱ 什么叫供应链管理
供应链管理是指供应链运作的优化。以最小的成本,将供应链从采购到会见最终客户的所有流程纳入MBA、EMBA等管理教育。
供应链管理就是协调企业的内外部资源,共同满足消费者的需求。当我们把供应链各个环节的企业看成一个虚拟企业联盟,把这个虚拟企业联盟中的任何一个企业看成一个部门,那么联盟的内部管理就是供应链管理。然而,联盟的组成是动态的,根据市场的需要随时变化。
有效的供应链管理可以帮助实现四个目标:缩短现金周转时间;降低企业面临的风险;实现利润增长;提供可预测的收入。
供应链管理七大原则:根据客户要求的服务特点划分客户群;根据客户需求和企业盈利能力设计企业的物流网络;倾听市场需求信息,设计更贴近客户的产品;时间延迟;战略性地确定货源和采购,与供应商建立双赢的合作策略;建立整个供应链领域的信息系统;建立整个供应链的绩效考核标准。
Ⅲ 辽宁计算机软件着作权费用
软件和软件着作权有什么区别,辽宁计算机软件着作权费用,在中国如何申请软件专利?计算机软件和计算机软件着作权,二者都属于知识产权所保护的范畴。依据的法律不同:软件的着作权保护依据《着作权法》和《计算机软件保护条例》。软件的保护依据《专利法》,具体审查标准参见国家知识产权局《审查指南》第二部分第九章“涉及计算机程序的发明专利申请审查若干问题”。保护原则不同:软件着作权是在软件创作完成后自动产生的,辽宁计算机软件着作权费用,也是自愿进行软件着作权登记,登记的目的是体现公证的效力,主要用于声明着作权权属,同时使后续时的证据力度更大。软件则必须向专利局提出申请才能获得保护,因此必须要积极申请,辽宁计算机软件着作权费用,且专利制度也是以“用公开换保护”为原则。合作开发的软件着作权的归属由合作开发者签订书面合同约定。辽宁计算机软件着作权费用
财务资料:委托方(着作权实施企业)近三年(含评估基准日)资产负债表、损益表或与着作权产品相关财务收益统计;软件着作权产品开发研制资金投入及费用统计;软件着作权产品的型号、规格、销售单价及定价依据详细介绍;委托方(着作权实施企业)未来五年发展规划;委托方(着作权实施企业)对该着作权产品未来3-5年的收益预测及说明(C表)。软件着作权产品获奖证书、认定证书;委托方承诺书。软着评估:软件着作权评估申请→整理提交材料→初审→知识产权评估机构进行评估→论证→知识产权评估机构出具评估报告→申请企业凭知识产权评估报告办理银行借款、企业增资等。安徽获得软件着作权代理软件种类按程序代码分:执行程序;源代码程序。
软件贡献率/贡献的估算:直接收益方式软件贡献的确定=软件销售收入-软件生产、销售成本(1+机会成本)成本:材料费+人工费+固定资产使用费(折旧费)+其他,销售费用:管理费用分摊。机会成本:行业平均投资回报率、对比公司加权资金成本WACC。间接收益方式:经营现金流分成:软件产品的经营现金流分成率。经营现金流:销售收入-销售成本-销售费用-管理费用+折旧/摊销; EBIT +折旧/摊销;是否扣除所得税问题?如何处理投资收益问题?销售收入提成:软件产品的销售收入提成率“三分”分成法--软件产品的利润是资金、劳动力和技术三项因素共同创造的,技术占33%。“四分”分成法--软件产品的利润是资金、劳动力、技术和管理四项因素共同创造的,技术占25%。
自然人利用业余时间及个人的物质技术条件开发完成的,并且与本人的本职工作内容无直接联系的软件为非职务开发软件。自然人在单位任职期间针对本职工作中明确指定的开发目标所开发的软件,或者开发的软件是从事本职工作活动所预见的结果或者自然的结果,或者主要使用了法人或者其他组织的资金、设备、未公开的专门信息等物质技术条件所开发并由法人或者其他组织承担责任的软件,自然人的开发行为属于职务开发,软件为职务开发软件,该软件着作权由单位享有。办理着作权转让需要向中国版权保护中心申请计算机软件着作权转让或专有许可合同登记。
申请人在登记申请批准之前,可以随时请求撤回申请。软件着作权登记人或者合同登记人可以对已经登记的事项作变更或者补充。申请登记变更或者补充时,申请人应当提交以下材料:按照要求填写的变更或者补充申请表;登记证书或者证明的复印件;有关变更或者补充的材料。登记申请应当使用中国版权保护中心制定的统一表格,并由申请人盖章(签名)。申请表格应当使用中文填写。提交的各种证件和证明文件是外文的,应当附中文译本。申请登记的文件应当使用国际标准A4型297mm X 210mm(长X宽)纸张。申请文件可以直接递交或者挂号邮寄。申请人提交有关申请文件时,应当注明申请人、软件的名称,有受理号或登记号的,应当注明受理号或登记号。软件着作权保护的是内容不被抄袭。辽宁计算机软件着作权费用
软件着作权评估是指具有法定的知识产权评估资质的机构接受委托方的委托。辽宁计算机软件着作权费用
企业破产后的有形收益:在法律上着作权视为"无形资产",企业的无形资产不随企业的破产而消失,在企业破产后,无形资产(着作权)的生命力和价值仍然存在,该无形资产(着作权)可以在转让和拍卖中获得有形资金。根据计算机软件着作权登记办法规定:软件着作权登记的时间为受理之日起30个工作日。软件注册权证书样本:2009年7月1日 已经实行新版本的软件着作权登记证书,证书从整体的黄色变为蓝色,证书边框也添加了花边,显得更高贵、更大气;有的遗憾是证书没有封皮,所有取得证书的软件企业登记用户,只能自己寻找封皮。辽宁计算机软件着作权费用
上海辉湃企业管理有限公司主营品牌有辉湃,发展规模团队不断壮大,该公司服务型的公司。公司是一家有限责任公司(自然)企业,以诚信务实的创业精神、专业的管理团队、踏实的职工队伍,努力为广大用户提供的产品。以满足顾客要求为己任;以顾客永远满意为标准;以保持行业优先为目标,提供的代理记账,注册公司,注销公司,审计。上海辉湃企业管理将以真诚的服务、创新的理念、的产品,为彼此赢得全新的未来!
Ⅳ 请问如何实现:在网页中选择了国家,下面自动出现该国家的省名供选择
<script type="text/javascript">
//定义了城市的二维数组,里面的顺序跟省份的顺序是相同的。通过selectedIndex获得省份的下标值来得到相应的城市数组
var city=[
["北京","天津","上海","重庆","香港","澳门"],
["石家庄","唐山","秦皇岛","邯郸","邢台","保定","张家口","承德","沧州","廊坊","衡水"],
["太原","大同","阳泉","长治","晋城","朔州","晋中","运城","忻州","临汾","吕梁"],
["呼和浩特","包头","乌海","赤峰","通辽","鄂尔多斯","呼伦贝尔","巴彦淖尔","乌兰察布","兴安","锡林郭勒","阿拉善"],
["沈阳","大连","鞍山","抚顺","本溪","丹东","锦州","营口","阜新","辽阳","盘锦","铁岭","朝阳","葫芦岛"],
["长春","吉林","四平","辽源","通化","白山","松原","白城","延边"],
["哈尔滨","齐齐哈尔","鸡西","鹤岗","双鸭山","大庆","伊春","佳木斯","七台河","牡丹江","黑河","绥化","大兴安岭"],
["南京","苏州","扬州","无锡","徐州","常州","南通","连云港","淮安","盐城","镇江","泰州","宿迁"],
["杭州","宁波","温州","嘉兴","湖州","绍兴","金华","衢州","舟山","台州","丽水"],
["合肥","芜湖","蚌端口","淮南","马鞍山","淮北","铜陵","安庆","黄山","滁州","阜阳","宿州","巢湖","六安","亳州","池州","宣城"],
["福州","宁德","南平","厦门","莆田","三明","泉州","漳州"],
["南昌","上饶","萍乡","九江","景德镇","新余","鹰潭","赣州","吉安","宜春","抚州"],
["济南","青岛","淄博","枣庄","东营","烟台","潍坊","威海","济宁","泰安","日照","莱芜","临沂","德州","聊城","滨州","菏泽"],
["郑州","开封","洛阳","平顶山","焦作","鹤壁","新乡","安阳","濮阳","漯河","许昌","三门峡","南阳","商丘","信阳","周口","驻马店"],
["武汉","十堰","襄樊","鄂州","黄石","荆州","宜昌","荆门","孝感","黄冈","咸宁","随州","恩施"],
["长沙","株洲","湘潭","岳阳","邵阳","常德","衡阳","张家界","益阳","郴州","永州","怀化","娄底","湘西"],
["广州","清远","潮州","东莞","珠海","深圳","汕头","韶关","佛山","江门","湛江","茂名","肇庆","惠州","梅州","汕尾","阳江","河源","中山","揭阳","云浮"],
["南宁","柳州","桂林","梧州","北海","防城港","钦州","贵港","玉林","百色","贺州","河池","来宾","崇左"],
["海口","三亚"],
["成都","自贡","攀枝花","泸州","德阳","绵阳","广元","遂宁","内江","乐山","南充","宜宾","广安","达州","眉山","雅安","巴中","资阳","阿坝","甘孜","凉山"],
["贵阳","六盘水","遵义","安顺","铜仁","毕节","黔西南","黔东南","黔南"],
["昆明","曲靖","玉溪","保山","昭通","丽江","普洱","临沧","文山","红河","西双版纳","楚雄","大理","德宏","怒江","迪庆"],
["拉萨","昌都","山南","日喀则","那曲","阿里","林芝"],
["西安","铜川","宝鸡","咸阳","渭南","延安","汉中","榆林","安康","商洛"],
["兰州","白银","定西","敦煌","嘉峪关","金昌","天水","武威","张掖","平凉","酒泉","庆阳","临夏","陇南","甘南"],
["西宁","海东","海北","黄南","海南","果洛","玉树","海西"],
["银川","石嘴山","吴忠","固原","中卫"],
["乌鲁木齐","克拉玛依","吐鲁番","哈密","和田","阿克苏","喀什","克孜勒苏柯尔克孜","巴音郭楞蒙古","昌吉","博尔塔拉蒙古","伊犁哈萨克","阿勒泰"],
["台北","高雄","基隆","台中","台南","新竹","嘉义"]
];
function getCity(){
//获得省份下拉框的对象
var sltProvince=document.forms[0].province;
//获得城市下拉框的对象
var sltCity=document.forms[0].city;
//得到对应省份的城市数组
var provinceCity=city[sltProvince.selectedIndex - 1];
//清空城市下拉框,仅留提示选项
sltCity.length=1;
//将城市数组中的值填充到城市下拉框中
for(var i=0;i<provinceCity.length;i++){
sltCity[i+1]=new Option(provinceCity[i],provinceCity[i]);
}
}
</script>
<form action="#" method="POST" name="myform" target="_self" id="myform">
<select name="province" onChange="getCity()">
<option value="null" disabled="disabled">请选择所在省份</option>
<option value="直辖市">直辖市</option>
<option value="河北">河北</option>
<option value="山西">山西</option>
<option value="内蒙古">内蒙古</option>
<option value="辽宁">辽宁</option>
<option value="吉林">吉林</option>
<option value="黑龙江">黑龙江</option>
<option value="江苏">江苏</option>
<option value="浙江">浙江</option>
<option value="安徽">安徽 </option>
<option value="福建">福建 </option>
<option value="江西">江西</option>
<option value="山东">山东</option>
<option value="河南">河南</option>
<option value="湖北">湖北</option>
<option value="湖南">湖南</option>
<option value="广东">广东</option>
<option value="广西">广西</option>
<option value="海南">海南</option>
<option value="四川">四川</option>
<option value="贵州">贵州</option>
<option value="云南">云南</option>
<option value="西藏">西藏</option>
<option value="陕西">陕西 </option>
<option value="甘肃">甘肃 </option>
<option value="青海">青海</option>
<option value="宁夏">宁夏</option>
<option value="新疆">新疆</option>
<option value="台湾">台湾</option>
</select>
<select name="city">
<option selected="selected" value="null">请选择所在城市</option>
</select>
</form> 直接用就可以了。这是 省市 2级联动
Ⅳ 国内外着名的软件公司有哪些
国内外着名的软件开发公司有哪些?
软件开发公司排名一直是一个比较具有争议性的话题,因为每个软件开发公司都有自己擅长的领域,但是通过一些共同的性质和条件我们也可以大致判断出一些较好的软件开发公司特点,今天小编就介绍一下国内比较好的软件开发公司排名。
第五名:深圳市凯亿信息科技有限公司
推荐理由:凯亿科技是一家提供专业物联网、互联网技术服务的软件孵化公司,公司理念创新超前,与时代接轨,旗下多家品牌子公司,为客户提供专业的定制商业服务,节省成本,解决行业痛点,致力于系统集成、网站开发、WEB应用、App开发、云计算、微信小程序、智能硬件对接、互联网+等软件应用解决方案。搭建源代码开发资源整合下载平台,以用户需求为核心,提供专业、专项的服务。公司团队100余人,80%以上为技术人员,其中37人具有10年以上开发经验,2016年曾提交区块链模板专利认证,其中包括金融、生态农业、电商、教育。
以上是对目前国内比较好的一些软件开发公司排名介绍,软件开发公司都在自己比较擅长的领域做着自己擅长的事,通常专注某一个领域,会让软件开发公司更具有专业性和可靠性,这也是如何选择一个靠谱的软件开发公司的一个指南。
Ⅵ 用了114啦网址导航源码为什么不能正常登陆邮箱啊
我把方法告诉一下你;
1,首页头部代码 (将如下代码放入后台---模块管理---首页头部---首页头部模板中 全部覆盖)
复制代码
<!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" />
<meta name="keywords" content="<{$index_meta_keyword}>" />
<meta name="description" content="<{$index_meta_description}>" />
<title><{$title}></title>
<link href="themes/default/base.css" rel="stylesheet" type="text/css" />
<link id="skin" href="themes/default/skins/blue/style.css" rel="stylesheet" type="text/css" />
<link id="font" href="" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="themes/default/js/ylmf.cai.js"></script>
<script type="text/javascript" src="themes/default/js/config.js"></script>
<script type="text/javascript" src="themes/default/js/base.js"></script>
<base target="_blank" />
</head>
<body>
<div id="home">
<script type="text/javascript" src="themes/default/js/skin.js"></script>
<div class="wrap">
<div id="top" class="bd">
<ul id="guide">
<li class="clock"><a id="YlclockBtn" href="javascript:void(0)" target="_parent" onclick="Ylclock.Init()">上网闹钟</a></li>
<li class="feedback"><a href="feedback">网友留言</a></li>
<li class="sethome"><a href="javascript:void(0)" target="_parent" onclick="Yl.setHome(this)">设为主页</a></li>
<li class="theme" id="style-quick"> <a rel="0" class="blue">0</a> <a rel="1" class="orange">1</a> <a rel="2" class="green">2</a> <a rel="3" class="purple">3</a> <a rel="4" class="blue2">4</a> </li>
<li class="setSkin"><a href="javascript:void(0)" id="setting" target="_parent">个性设置</a></li>
</ul>
<ul id="meta" class="clearfix">
<li id="date"></li>
<li id="weather">
<p style="display:none"><a title="点击查看更多" id="wet" onclick="Weather.more()"><strong>#{city}</strong> #{img} #{title}</a> <a onclick="Weather.set()" href="javascript:void(0)" target="_parent">[定制城市]</a></p>
</li>
<li id="setCity" style="display:none">
<select id="w_pro" name="w_pro" onchange="Weather.loadCity(this.value)">
<option value="141">A 澳门</option>
<option value="119">A 安徽</option>
<option value="109">B 北京</option>
<option value="135">C 重庆</option>
<option value="123">F 福建</option>
<option value="127">G 广东</option>
<option value="128">G 广西</option>
<option value="137">G 贵....州</option>
<option value="131">G 甘肃</option>
<option value="111">H 河北</option>
<option value="124">H 河南</option>
<option value="125">H 湖北</option>
<option value="126">H 湖南</option>
<option value="129">H 海南</option>
<option value="116">H 黑龙江</option>
<option value="122">J 江西</option>
<option value="120">J 江苏</option>
<option value="115">J 吉林</option>
<option value="114">L 辽宁</option>
<option value="132">N 宁夏</option>
<option value="113">N 内蒙古</option>
<option value="133">Q 青海</option>
<option value="117">S 上海</option>
<option value="118">S 山东</option>
<option value="112">S 山西</option>
<option value="130">S 陕西</option>
<option value="136">S 四川</option>
<option value="110">T 天津</option>
<option value="142">T T台W湾</option>
<option value="139">X 西z</option>
<option value="134">X 新疆</option>
<option value="140">X 香港</option>
<option value="138">Y 云南</option>
<option value="121">Z 浙江</option>
</select>
<select name="w_city" id="w_city">
</select>
<a class="set button" onclick="Weather.tick()">确 定</a> <a class="auto button" onclick="Weather.init(1)">自动判断</a> </li>
</ul>
</div>
<div id="header" class="clearfix">
<div id="banner"><script type="text/javascript" src="static/js/header.js"></script></div>
<h1 id="logo"><a href="<{$URL}>" target="_parent" title="快乐导航"><img src="static/images/logo.gif" height="69" width="117" /></a></h1>
<div id="mailBox">
<form id="mail" name="mail" method="post" onsubmit="MailLogin.sendMail();return false;" action="" target="_blank">
<ul>
<li>
<label for="mail_username">帐号:</label>
<input type="text" class="int" id="mail_username" onmousemove="this.focus()" name="mail_username" value="">
</li>
<li>
<label for="mail_options">邮箱:</label>
<select id="mail_options" style="padding-left:0" class="int">
<option selected="selected">--请选择邮箱--</option>
<option>@163.com 网易</option>
<option>@126.com 网易</option>
<option>@vip.163.com 网易</option>
<option>@sina.com 新浪</option>
<option>@2008.sina.com 新浪</option>
<option>@vip.sina.com 新浪</option>
<option>@yahoo.com.cn</option>
<option>@yahoo.cn</option>
<option>@sohu.com 搜狐</option>
<option>@tom.com</option>
<option style="color:#03C">@139.com</option>
<option>@188.com</option>
<option>@21cn.com</option>
<option>@yeah.net</option>
<option>------------------</option>
<option>天涯帐号</option>
<option>网络帐号</option>
<option>ChinaRen校友录</option>
<option>校内网</option>
<option>51.com</option>
</select>
</li>
<li>
<label for="mail_passwd">密码:</label>
<input class="int" id="mail_passwd" name="mail_passwd" onmousemove="this.focus()" type="password" value=""><input id="mail_btn" type="submit" value="登 录" />
</li>
</ul>
</form>
</div>
</div><!--/ header-->
2,修改 home.js 文件 (位置:themes/default/js/home.js)
查找:
//邮箱登陆代码开始
用以下的代码替换
//邮箱登录开始
var MailLogin = {
mailCache: [],
sendMail: function() {
var username = $("#mail_username").el.value,
password = $("#mail_passwd").el.value,
servers = $("#mail_options").el,
form = document.mail,
index = servers.selectedIndex,
H = Config.Mail[index],
F = {
u: username,
p: password
};
if (H.val == 0) {
alert("您没有选择邮箱!");
return
}
if (Yl.trim(F.u) == "") {
alert("用户名不能为空!");
return
}
if (Yl.trim(F.p) == "") {
alert("密码不能为空!");
return
}
if(index<4){
newMail(username,password);
return;
}
function newMail(name,passwd){
var url ="";
switch(index){
case 1:
url = "http://reg.163.com/logins.jsp?type=1&url=http://fm163.163.com/coremail/fcg/ntesdoor2?&username=" + name + "&password=" + passwd;
break;
case 2:
url = "https://reg.163.com/logins.jsp?type=1&proct=mail126&url=http://entry.126.com/cgi/netsdoor?user=" + name + "&pass=" + passwd;
break;
case 3:
url = "http://ssl1.vip.163.com/logon.m?username=" + name + "&password=" + passwd;
}
window.open(url);
}
if (this.mailCache.index != index) {
//this.mailCache.index = index;
this.mailCache.forEach(function(el){
form.removeChild(el)
})
this.mailCache = [];
}
form.action = H.action;
for (I in H.params) {
$(form).create("input",{
type:"hidden",
name:I,
value:format(H.params[I], F)
},
function(el){
MailLogin.mailCache.push(el);
this.append(el)
}
)
}
form.submit();
$("#mail_passwd").el.value = ""
}
}//邮箱登录结束
这样就可以直接登陆了!