![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
成长的小码农
出来混迟早是要还的!!!
展开
-
js写超简单的计算器
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml"> function operation(op) { var num1=parseInt(document.getElementById原创 2013-04-01 20:33:38 · 479 阅读 · 0 评论 -
Cookie写记住我和自动登录并加密cookie
前台http://www.w3.org/1999/xhtml"> 用户名: 密码: 记住我: 自动登录: 后台using System;using System.Coll原创 2013-04-11 22:08:29 · 630 阅读 · 0 评论 -
删除Cookie
前台http://www.w3.org/1999/xhtml"> onclick="Button1_Click" /> onclick="Button2_Click" />原创 2013-04-11 22:12:53 · 372 阅读 · 0 评论 -
js中新开一个网页设置大小,并对本网页的修改位置大小
http://www.w3.org/1999/xhtml"> function moveby() { window.moveBy(10,10); } function moveto() { window.moveTo(10, 10); }原创 2013-04-11 22:00:51 · 741 阅读 · 0 评论 -
js的DOM添加删除替换节点
function CreateNode() { var pnode = document.createElement('p'); var tnode = document.createTextNode('烟花三月下扬州'); pnode.appendChild(tnode); document.原创 2013-04-15 22:05:06 · 1102 阅读 · 0 评论 -
js中页面设置字体
http://www.w3.org/1999/xhtml"> //全选页面内容 function selectAll() { document.execCommand("SelectAll",false); } //另存为 function saveAs(原创 2013-04-15 21:59:06 · 12472 阅读 · 0 评论 -
js中点击按钮切换图片
http://www.w3.org/1999/xhtml"> // 换图片简单方法// function updatepic(radio) {// document.getElementById('pic1').setAttribute('src', 'image/' +原创 2013-04-15 22:00:50 · 10254 阅读 · 0 评论 -
js中DOM动态创建相册并替换删除
http://www.w3.org/1999/xhtml"> Image { width:100px; height:100px; } function createimgs() { var array = ['1.jpg',原创 2013-04-15 21:57:38 · 623 阅读 · 0 评论 -
js写网页闪屏震动
http://www.w3.org/1999/xhtml"> * { font-size:12px; font-family:@楷体,Arial; font-weight:normal; color:#333; }/*规定了所有的字体样式*/原创 2013-04-16 19:10:30 · 1952 阅读 · 0 评论 -
js隔段时间执行函数
http://www.w3.org/1999/xhtml"> function show() { alert('好长时间'); } function settimeout1() { setTimeout(show,2000); }原创 2013-04-11 21:56:54 · 632 阅读 · 0 评论 -
confirm的运用
http://www.w3.org/1999/xhtml"> var result = confirm("确定要删除吗"); if (result == true) { alert("你点击的结果是确定"); } else{ alert("你点击的原创 2013-04-11 22:10:04 · 542 阅读 · 0 评论 -
js中Array数组赋值及简单登陆
http://www.w3.org/1999/xhtml"> function denglu () { var username = document.getElementById('txtusername').value; var password = document.getE原创 2013-04-07 20:40:08 · 975 阅读 · 0 评论 -
js写九九乘法表
http://www.w3.org/1999/xhtml"> for (var i = 1; i { for (var j = 1; j document.write(i + '*' + j + '=' + ((i * j) >原创 2013-04-07 20:41:11 · 696 阅读 · 0 评论 -
js中各种跨网页方法
http://www.w3.org/1999/xhtml"> var o; function baidushow() { o = window.open('http://www.baidu.com'); } function colosepage() {原创 2013-04-07 20:42:34 · 635 阅读 · 0 评论 -
js中的New Date获取各种时间
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml"> var thedate = new Date(); //alert(thedate.toLocaleString()); //alert(原创 2013-04-09 19:53:13 · 762 阅读 · 0 评论 -
js中在一个网页中打开一个新网页并插入图片
http://www.w3.org/1999/xhtml"> function image() { var htmlnode = ''; document.write(htmlnode); var newwindow = window.open("", "", "width=500,height原创 2013-04-09 20:01:32 · 2137 阅读 · 0 评论 -
js写前进后退按钮
http://www.w3.org/1999/xhtml"> function forward() { window.history.forward(); } function back() { window.history.back(); }原创 2013-04-11 21:55:25 · 618 阅读 · 0 评论 -
后台设置Cookie
前台http://www.w3.org/1999/xhtml"> onclick="Button1_Click" /> onclick="Button2_Click" />原创 2013-04-11 22:04:06 · 1515 阅读 · 0 评论 -
前台用js写Cookie
当前后台都加载cookie值时,本程序只显示后台前台http://www.w3.org/1999/xhtml"> function writecookie() { var today = new Date(); today.setDate(today.getDate() + 1);原创 2013-04-11 22:06:28 · 576 阅读 · 0 评论 -
window.open总结
【1、最基本的弹出窗口代码】 window.open ('test.html') --> 因为着是一段javascripts代码,所以它们应该放在标签和之间。是对一些版本低的浏览器起作用,在这些老浏览器中不会将标签中的代码作为文本显示出来。要养成这个好习惯啊。window.open ('test.html') 用于控制弹出新的窗口p转载 2013-06-25 20:47:00 · 588 阅读 · 0 评论