- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 js 动态改变文本的颜色
Controlling Styles with JavaScriptfunction changehead(){i=document.form1.heading.selectedIndex;headcolor=document.form1.heading.options[i].value;document.getElementById("head1").style.color=headc
2016-03-22 16:03:59 5923
原创 js focus输入焦点和判断邮件地址是否有@
Email Form Examplefunction validate(){ var temp=document.form1.email.value.indexOf('@'); if(document.form1.yourname.value.length<1){ alert("Please enter your full name."); document.form1.yo
2016-03-21 22:35:10 824
原创 js 实现实时时钟
Display Times and Datesnow = new Date();Id=window.setTimeout("clock();",1000);function Clock(){ localtime=now.toString(); utctime=now.toGMTString(); document.write("localtime:"+localtime+
2016-03-20 11:55:38 923
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人