NetBlog主题

JS动态创建table
Web前端

JS动态创建table

3623

<!DOCTYPE html> <html> <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title></title><meta charset="utf-8" /><style type="text/css">table td…

JS动态创建评论
Web前端

JS动态创建评论

3520

<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title></title><meta charset="utf-8" /><script type="text/javascript">…

JS使字符串右击移动
Web前端

JS使字符串右击移动

2935

<script type="text/javascript">var leftOrLight = left;window.onload = function () {setInterval(function () {//var titleValue = document.title;//获取标题这里没有用上var testp1 = document.getElementById(p1).value;if (leftOrLight == left) {var…

JS定时跳转
Web前端

JS定时跳转

2616

<script type="text/javascript"> window.onload = function () {setInterval(function () {document.getElementById(txt1).value++;if (document.getElementById(txt1).value == 10) {location.href = http://www.luofenming.com;}},1000)}</script>//…

JS定时器暂停与开始
Web前端

JS定时器暂停与开始

3504

<script type="text/javascript">var setIntervalID;window.onload = function () {document.getElementById(btn1).onclick = function () {setIntervalID = setInterval(function () {document.getElementById(txt1).value++;},1000)};document.getElementBy…

JS确认删除
Web前端

JS确认删除

2859

<script type="text/javascript"> window.onload = function () {document.getElementById(testID).onclick = test();function test() {if (confirm("你确认要删除吗?")) {alert(删除成功);}else {alert(删除失败);}}}</script><i…

精简CSS按扭样式
Web前端

精简CSS按扭样式

3366

<style>button{padding:5px 10px;margin-right: 12px;font-size: 12px;background-color: #609ee9;color:#fff;border:2px solid #609ee9;cursor: pointer;outline:none;border-radius:6px;}button:hover{background-color: #80b6f9;border-color: #80b6f9}button:active…