超级链接应用javascript问题 window.location.href="http://www.163.com" 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script type='text/javascript'>function Myinfor(){ //Myinfor函数 var currentMonth ; currentMonth=new Date().getMonth();//将月份赋值给变量 if (currentMonth>8 && currentMonth <11) { //判断月份是否是9月或10月 window.location.href="http://www.163.com"; } else{ alert("请在规定的时间内注册!"); window.location.href="http://www.baidu.com"; } } window.onload=Myinfor;</script> 怎么还不行??报错? 不能链接过去?if (currentMonth==8 || currentMonth ==9) { //判断月份是否是9月或10月 这句改改 各位大神们帮忙改段代码,万分感谢~~~ dreamweaver 安装jquery智能提示插件,安装成功,就是不提示,怎么回事了 获取特定ID的DIV下的所有input 开口一个新窗口? 如何自定义插件的参数 生成动态选项卡怎么实现?类似163邮箱那种可以关闭,打开的。 在js里,有没有延迟时间之类的函数? 如何关闭窗口不显示“是否关闭该窗口”的确认框 请问哪位大虾有JAVASCRIPT做的时间控件的源码和实例,100分相送。急!!! 请问如何实现下拉菜单? 请问这2段js文件是什么意思啊,怎么出现yahoo字样 js读取两个xml文件应该怎么读,用两个xmlhttp对象吗?
var currentMonth ;
currentMonth=new Date().getMonth();//将月份赋值给变量
if (currentMonth>8 && currentMonth <11) { //判断月份是否是9月或10月
window.location.href="http://www.163.com"; }
else{
alert("请在规定的时间内注册!");
window.location.href="http://www.baidu.com";
}
} window.onload=Myinfor;
</script>