js网页常用代码

JavaScript新手学习手册-基础代码(一) JavaScript新手学习,了解基础代码的用法,以及认识JavaScript是怎样的语言环境,新手晋级手册 阅读详情

1、后退 前进  
<input type="button" value="后退" onClick="history.go(-1)">  
<input type="button" value="前进" onClick="history.go( 1 );return true;">  

2、返回  
<form><input type="button" value="返回上一步" onClick="history.back(-1)"></form>  

3、查看源码  
<input type="button" name="view" value="查看源码" onClick="window.location="view-source:" +window.location.href">  

4、禁止查看源码  
<body oncontextmenu="return false"></body>  

5、刷新按钮一  
<input type="button" value="刷新按钮一" onClick="ReloadButton()">  
<script>function ReloadButton(){location.href="i001.htm";}</script>  

刷新按钮二  
<input type="button" value="刷新按钮二" onClick="history.go(0)">  

6、回首页按钮  
<input type="button" value="首页" onClick="HomeButton()">  
<script>function HomeButton(){location.href=http://www.winliuxq.com;}</script>  

7、弹出警告框  
<input type="button" value="弹出警告框" onClick="AlertButton()">  
<script>function AlertButton(){window.alert("要多多光临呀!");}</script>  

8、状态栏信息  
<input type="button" value="状态栏信息" onClick="StatusButton()">  
<script>function StatusButton(){window.status="要多多光临呀!";}</script>  

9、背景色变换  
<form><input type="button" value="背景色变换" onClick="BgButton()"></form>  
<script>function BgButton(){  
if (document.bgColor=='#00ffff')  
    {document.bgColor='#ffffff';}  
else{document.bgColor='#00ffff';}  
}  
</script>  

10、打开新窗口  
<input type="button" value="打开新窗口" onClick="NewWindow()">  
<script>function NewWindow(){window.open("c01.htm","","height=240,width=340,status=no,location=no,toolbar=no,directories=no,menubar=no");}  
</script>  

11、窗口最小化  
<OBJECT id="min" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"><PARAM name="Command" value="Minimize"></OBJECT><button onClick="min.Click()">窗口最小化</button>  

12、全屏代码  
<input type="BUTTON" name="FullScreen" value="全屏显示" onClick="window.open(document.location, 'butong_net', 'fullscreen')">  

13、关闭窗口  
<OBJECT id=closes type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"><param name="Command" value="Close"></object><input type="button" value="关闭窗口" onClick="closes.Click();">  

关闭窗口  
<input type=button value=关闭窗口 onClick="javascript:self.close()">   

14、最大化  
<object id=big classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">   
<param name="Command" value="Maximize"></object><input type=button value=最大化 onClick=big.Click()>  

15、关闭输入法  
<input style="ime-mode:disabled" value=关闭输入法>

16、链接按钮1
<input type="button" value="链接按钮1" onClick="window.open('http://www.winliuxq.com/', 'Sample', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=yes,width=790,height=520,left=0,top=0')" name="input">  

链接按钮2  
<input type="BUTTON" NAME="Button" value="链接按钮2" onClick="showModalDialog('http://www.winliuxq.com/')"> 

链接按钮3  
<input type="submit" value="链接按钮3" onClick="location.href='http://www.winliuxq.com/'">  

17、警告框显示源代码  
<BUTTON onClick=alert(document.documentElement.outerHTML) style="width:110">警告框显示源代码</BUTTON>  

18、点击后按钮清空  
<input type=button value='打印' onClick="this.style.visibility='hidden';window.print();">  

19、打印  
<input type=button value='打印' onClick="window.print();">  

20、打印预览  
<OBJECT classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height=0 id=wb name=wb width=0></OBJECT>  
<input type=button value=打印预览 onclick="wb.execwb(7,1)">  

21、另存为  
<input onClick="document.execCommand('saveas','true','常用代码.htm')" type=button value=另存为>  

22、点击自动复制  
<script>function oCopy(obj){obj.select();js=obj.createTextRange();js.execCommand("Copy")}</script>  
<input type="text" value="点击自动复制" onClick="oCopy(this)" size="11">  

23、自动选中  
<input value="自动选中" onFocus="this.select()" onMouseOver="this.focus()" size="11">  

24、打开源代码  
<BUTTON onClick="document.location = 'view-source:' + document.location" size="7">打开源代码</BUTTON>  

25、新窗口延迟打开  
<input type=button value=新窗口延迟打开 onClick=javascript:setTimeout("window.open('http://www.winliuxq.com/')",10000)>  

26、实现选中文本框里的前一半的内容  
<input type="text" value="选中文本框里的前一半的内容" size=30 onmouseover="this.select();tR=document.selection.createRange();tR.moveEnd('character',-8);tR.select();">  
<input type="text" value="选中部分内容,非IE可以用这个" size=30 onmouseover="this.selectionStart=this.value.length-4;this.selectionEnd=this.value.length">  
    
27、点击清空文字  
<input type="text" name="artist" size=14 value="点击清空文字" onmouseover=this.focus() onfocus=this.select() onclick="if(this.value=='点击清空文字')this.value=''">  

点击清空文字  
<input name=name size=11 value=点击清空文字 onMouseOver=this.focus() onblur="if (this.value =='') this.value='点击清空文字'" onFocus=this.select() onClick="if (this.value=='点击清空文字') this.value=''">  

28、等于标题(title):  
<input type="text" value="" id="aa" size="20">  
<script>document.getElementById("aa").value=document.title;</script>  

29、检测IE是否脱机  
<input type="button" value="测试" onclick="alert(window.navigator.onLine)">  

30、11种刷新按钮的方法  
<input type=button value=刷新 onClick="history.go(0)">  
<input type=button value=刷新 onClick="location.reload()">  
<input type=button value=刷新 onClick="location=location">  
<input type=button value=刷新 onClick="location.assign(location)">  
<input type=button value=刷新 onClick="document.execCommand('Refresh')">  
<input type=button value=刷新 onClick="window.navigate(location)">  
<input type=button value=刷新 onClick="location.replace(location)">  
<input type=button value=刷新 onClick="window.open('自身的文件','_self')">  
<input type=button value=刷新 onClick=document.all.WebBrowser.ExecWB(22,1)>   
<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT>  
<form action="自身的文件"><input type=submit value=刷新></form>  
<a id=a1 href="自身的文件"></a><input type=button value=刷新 onClick="a1.click()">

31、 

<a href="#" onClick=document.execCommand("open")>打开</a>

32、

<a onclick="window.open('i001.htm','','height=300,width=300,resizable=no,location=net');" href="">打开指定大小网页</a>

33、

<a href="#" onClick=location.replace("view-source:"+location)>使用 记事本 编辑</a>


34、

<a href="#" onClick=document.execCommand("saveAs")>另存为</a>


35、

<a href="#" onClick=document.execCommand("print")>打印</a>

<a href="javascript:window.print();">打印</a>


36、

<a href=mailto:429752806@163.com>发送E-mail</a>


37、

<a href="#" onClick=document.execCommand("selectAll")>全选</a>


38、

<a href="#" onClick=location.reload()>刷新1</a>


39、

<a href="#" onClick=history.go(0)>刷新2</a>


40、

<a href="#" onClick=location.replace("view-source:"+location)>查看源文件</a> 


41、

<a href="#" onClick=window.open(document.location,"url","fullscreen")>全屏显示</a>


42、

<a href="#" onClick=window.external.showBrowserUI("PrivacySettings",null)>internet选项</a>


43、

<a href="#" oncontextmenu="window.open(this.href);return false;">单击右键将在新窗口中打开</a>


44、

<a href="#" onClick=history.go(1)>前进1</a>


<a href="#" onClick=history.forward()>前进2</a>


<a href="#" onClick=history.go(-1)>后退1</a>


<a href="#" onClick=history.back()>后退2</a>


45、

<a href="#" onClick=window.external.showBrowserUI("OrganizeFavorites",null)>整理收藏夹</a>


<SPAN onClick="window.external.addFavorite('http://www.winliuxq.com/','网页特效站点')" style="CURSOR: hand" title=网页特效站点>加入收藏</SPAN>

<a href="#" onClick="window.external.addFavorite('http://www.winliuxq.com/','网页特效站点')">添加到收藏夹</A>


<a href="javascript:window.external.AddFavorite('http://www.winliuxq.com/', '网页特效站点')">点击加入收藏夹</a>


<a href="#" onmouseover="window.external.addFavorite('http://www.winliuxq.com/','网页特效站点')" target="_self" >鼠标感应收藏本站</a>


<a href="#" onmouseover="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.yiloo.com/js/');" target="_self">鼠标感应设为首页</a>  

46、
<a href="javascript:window.close()">关闭窗口</a>

<a href="#" onClick=window.close();return false)>关闭窗口</a>

<a href="#" onClick=setTimeout(window.close(),3000)>3秒关闭本窗口</a>

<script>
function shutwin(){  
window.close();  
return;}  
</script>
<a href="javascript:shutwin();">关闭本窗口</a>

47、<SPAN onClick="var strHref=window.location.href;this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.winliuxq.com/');" style="CURSOR: hand">设为首页</SPAN>

48、等于标题栏:<script>document.write(document.title);</script>

49、
<a href="javascript:void(0);" onClick='window.external.AddFavorite(location.href, document.title);'>收藏本页</a>

<a href="javascript:window.external.AddFavorite(document.location.href, document.title)">收藏本页</a>

<a href=javascript:window.external.addChannel("typhoon.cdf")>加入频道</a> 

50、
<a href="i003.htm" onclick="return false;" ondblclick="window.open('i003.htm');">双击打开链接</a>

51、
<style>#close a:hover {background:url(javascript:window.opener=0;window.close());}</style><div id=close><a href="">关闭窗口</a></div>

52、
<A HREF="javascript:void(0)" onMouseover="alert('对不起,禁止选中!')">链接禁止</A> 

 

<body style="filter:Alpha(Opacity=50)">

55、随机选择背景色  
<body>
<script>
document.body.style.background=(["red","blue","pink","navy","gray","yellow","green","purple"])[parseInt(Math.random()*8)];  
</script>

56、框架页中不显示滚动条:  
<SCRIPT>
self.moveTo(0,0)  
self.resizeTo(screen.availWidth,screen.availHeight)  
</SCRIPT>

57、防止网页被框架  
<SCRIPT LANGUAGE=JAVASCRIPT>
if (top.location !== self.location) {  
top.location=self.location;  
}  
</SCRIPT>

58、永远都会带着框架   
<script language="javascript"><!--   
if (window == top)top.location.href = "frame.htm"; //frame.htm为框架网页   
// --></script>

59、窗口自动最大化  
<script language="JavaScript"><!--  
self.moveTo(0,0)  
self.resizeTo(screen.availWidth,screen.availHeight)  
//--></script>

60、打开窗口自动最大化  
<OBJECT classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11" onreadystatechange="if (this.readyState==4) this.Click();" VIEWASTEXT><PARAM name="Command" value="Maximize"></OBJECT> 

61、爽眼闪屏代码
<script>var color = new Array;color[1] = "black";color[2] = "white";for(x = 0; x <3; x++){document.bgColor = color[x];if(x == 2){x = 0;}}</script>

62、不能被另存为  
<noscript><iframe src=*.html></iframe></noscript>

63、汉字字库调用  
<script>
for(i=19968;i<40870;i++)document.write(String.fromCharCode(i));  
</script>

64、显示现在时间的脚本   
<script language=vbscript>document.write now</script>

65、显示最后修改时间的脚本   
<script>document.write(document.lastModified)</script>   

66、按下F12键,直接返回首页   
<script>function look(){   
if(event.keyCode==123){document.location.href=http://www.winliuxq.com/}   
}   
if(document.onkeydown==null)   
{document.onkeydown=look}   
</script>   

67、端口检测

 

68、无法最小化的窗口  
<body onblur='self.focus();'>

69、链接点外部css文件  
<style>@import url("ie.css");</style>

70、内嵌式框架-网页中调用另外网页:  
<object type="text/x-scriptlet" width="600" height="1000" data="
http://www.winliuxq.com/"></object>

71、刷新改变窗口大小  
<OBJECT classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11" onreadystatechange="if (this.readyState==4) this.Click();" VIEWASTEXT><PARAM name="Command" value="Maximize"></OBJECT>

72、JavaScript实现网页竖虚线  
<script>hei=120;d1=2;d2=2;cou=Math.floor(hei/(d1+d2));  
document.write('<table cellspacing=0 cellpadding=0 width=1 height='+hei+'>');  
for(i=0;i<cou;i++){document.write('<tr><td height='+d2+'><tr><td height='+d1+' bgcolor=333333>')}</script></table>

73、js翻页  
<script>document.write("<a href="+location.href.replace(/\.html/g,"_2.html")+">2</a>");</script>

 


网页可见区域宽:document.body.clientWidth; 

网页可见区域高:document.body.clientHeight; 

网页可见区域高:document.body.offsetWeight; 

网页可见区域高:document.body.offsetHeight; 

网页正文全文宽:document.body.scrollWidth; 

网页正文全文高:document.body.scrollHeight;
/* 在IE7下,当网页上有DTD验证的时候,是无法得到的.
** 解决办法:document.documentElement.clientHeight
*/

网页被卷去的高:document.body.scrollTop; 

网页被卷去的左:document.body.scrollLeft; 

网页正文部分上:window.screenTop; 

网页正文部分左:window.screenLeft; 

屏幕分辨率的高:window.screen.height; 

屏幕分辨率的宽:window.screen.width; 

屏幕可用工作区高度:window.screen.availHeight; 

屏幕可用工作区宽度:window.screen.availWidth;


JS获取DIV在BODY内的绝对坐标
function   getAbsPoint(e)     
{     
    var   x   =   e.offsetLeft,   y   =   e.offsetTop;     
    while(e=e.offsetParent)   
    {   
       x   +=   e.offsetLeft;     
       y   +=   e.offsetTop;  
    }   
    alert("x:"+x+","+"y:"+y);     
}  
 
方法2:  
 
function   getAbsPoint(obj)     
{     
   var   x,y;     
   oRect   =   obj.getBoundingClientRect();     
x=oRect.left     
y=oRect.top     
alert("("+x+","+y+")")     
}  
 
JS中获得窗口属性的方法   
 
1。获得屏幕的分辨率:   
screen.width   
screen.height   
 
2。获得窗口大小:   
document.body.clientWidth   
document.body.clientHeight   
 
3。获得窗口大小(包含Border、Scroll等元素)   
document.body.offsetWidth   
document.body.offsetHeight  

方法二

$.getAbsPos = function(pTarget){
                     pTarget = JObj.$(pTarget);
                    
                     if(!pTarget.getBoundingClientRect){
                            var x_ = y_ = 0;

                while(pTarget.offsetParent){
                        x_ += pTarget.offsetLeft;
                        y_ += pTarget.offsetTop;
                        pTarget = pTarget.offsetParent;
                }
                            x_ += pTarget.offsetLeft;
                            y_ += pTarget.offsetTop;
                            return {x:x_,y:y_}
                     }else{
                            var body = document.compatMode == 'CSS1Compat' ? document.documentElement : document.body;
                            var rect = pTarget.getBoundingClientRect()
                            return {x:rect.left + body.scrollLeft,y:rect.top + body.scrollTop};
                     }
              }

 

 

 


js.html  可在直接使用

<PRE class=js name="code"><!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> 
    <title>无标题页</title> 
    <style type="text/css"> 
        .code  
        {  
            background-image:url(code.jpg);  
            font-family:Arial;  
            font-style:italic;  
            color:Red;  
            border:0;  
            padding:2px 3px;  
            letter-spacing:3px;  
            font-weight:bolder;  
        }  
        .unchanged  
        {  
            border:0;  
        }  
    </style> 
    <script language="javascript" type="text/javascript"> 
      
     var code ; //在全局 定义验证码  
     function createCode()  
     {   
       code = "";  
       var codeLength = 6;//验证码的长度  
       var checkCode = document.getElementById("checkCode");  
       var selectChar = new Array(0,1,2,3,4,5,6,7,8,9,'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');//所有候选组成验证码的字符,当然也可以用中文的  
          
       for(var i=0;i<codeLength;i++)  
       {  
        
          
       var charIndex = Math.floor(Math.random()*36);  
       code +=selectChar[charIndex];  
         
         
       }  
//       alert(code);  
       if(checkCode)  
       {  
         checkCode.className="code";  
         checkCode.value = code;  
       }  
         
     }  
       
      function validate ()  
     {  
       var inputCode = document.getElementById("input1").value;  
       if(inputCode.length <=0)  
       {  
           alert("请输入验证码!");  
       }  
       else if(inputCode != code )  
       {  
          alert("验证码输入错误!");  
          createCode();//刷新验证码  
       }  
       else  
       {  
         alert("^-^ OK");  
       }  
         
       }  
         
    </script> 
</head> 
<body onload="createCode()" > 
<form  action="#">
  <input  type="text"   id="input1" />
<input type="text" onclick="createCode()" readonly="readonly" id="checkCode" class="unchanged" style="width: 80px"  /><br /> 
    <input id="Button1"  onclick="validate();" type="button" value="确定" />   
</form> 
</body> 
<html></PRE> 

医学图像可视化实战:ITK-SNAP与Python+SimpleITK双方案解析 本文深入解析了医学图像可视化的两大核心方案:ITK-SNAP与Python+SimpleITK。ITK-SNAP作为专业无损浏览器,是数据探索与分析的必备工具;而Python+SimpleITK方案则提供了自动化处理能力,但需注意将.nii.gz数据转换为JPG等格式时的信息损失。文章通过实战对比,为医学影像处理者提供了清晰的选择指南与避坑建议。 阅读详情

相关推荐

土壤水动力学_前 言

Van Genuchten (V-G) 模型是土壤水分特征曲线中最常用的模型之一。它通过数学方程描述了土壤基质吸力与体积含水量之间的关系,被广泛应用于土壤水分运移、土壤盐渍化、边坡稳定性等研究领域。V-G模型是描述土壤水分特征曲线的重要工具,但它并不是完美的。在实际应用中,需要根据土壤类型、试验条件等因素选择合适的模型。土壤基质吸力是土壤水分学中的一个重要概念,它对土壤水分的保持、植物的生长以及土壤的工程性质都有重要影响。

weixin_44259522的博客 5324

javascript常用代码大全,javascript简单代码

书写在在脚本标签中,一般放在body标签后边。变量是计算机内存中存储数据的标准符,根据变量名称可以获取内存中存储的数据。1、在一对的标签中有错误的js代码,那么该错误的代码后面的js代码不会执行2、如果第一对的标签中有错误,不会影响后面的标签中的js代码执行3、的标签中可以写type="text/java"标准写法或者写language="JavaScript"都可以。但是,目前在我们的html页面中,type和language都可以省略,原因:html是遵循h5的标准。

chatgpt001的博客 1189

昇腾910B+MindIE部署Qwen模型避坑指南:从镜像下载到推理测试全流程

本文详细介绍了在昇腾910B硬件环境中使用MindIE推理工具部署Qwen系列模型的全流程指南。从环境准备、镜像下载到模型部署与性能优化,提供一站式解决方案,帮助开发者高效完成AI模型推理任务。

weixin_29219189的博客 766

分享 30 个基础而实用的 JavaScript 代码片段

今天这篇文章,想跟大家分享 30 个基本并实用的 JavaScript 代码片段,它们将帮助你提升你的 Web 开发能力。从用于提高性能的去抖动和节流功能,到数组操作、字符串操作和数字验证等等。了解如何实施这些节省时间的技术并增强你的开发工作流程。通过这些不可或缺的 JavaScript 代码片段,提升你的技能并在不断发展的 Web 开发世界中保持领先地位。01、去抖函数以限制它被调用的次数.fu...

前端达人 1353

某易将军令口令纯算法还原py篇

算法开源,将军令口令算法。希望官方多多更新吧

任雪飘的博客 3907

vue项目表格甘特图开发

🧩 甘特图可以管理项目进度,生产进度等信息,管理者可以更直观的查看内容。

qq_35946021的博客 991

javaScript基础(8个案例+代码+效果图)

js入门基础知识,变量,命名规则,if,if-else ,switch , for , while ,嵌套循环for ,嵌套while 案例:输出1-100; 计算圆的周长和面积,判断成绩,输出三角形等,交换两个变量

. 5375

Python爬虫分析二手交易平台商品定价合理性:基于多维度数据挖掘与机器学习

本文针对二手交易平台商品定价合理性问题,设计并实现了一个基于Python的多技术融合爬虫系统,结合Scrapy框架、Selenium自动化测试工具、Anti-Scraping对抗技术以及机器学习算法,对国内主流二手交易平台(闲鱼、转转等)进行大规模数据采集与分析。系统实现了商品信息的多维度采集、价格合理性模型构建、可视化展示等功能,为二手商品买卖双方提供科学的定价参考。实验结果表明,该系统能够有效识别定价异常商品,准确率达到89.7%,具有较高的实用价值。关键词:Python爬虫;二手交易;定价分析;

2201_76125261的博客 297

13个有用的JavaScript代码

JavaScript 有很多实用例子,它们可以做很多强大的事情,在今天的文中,我们将分享一些 JavaScript 特别好用的代码,无论你是 JavaScript 新手还是经验丰富的开发人员,学习些新东西总是好的。希望能帮助您解决一些日常开发中遇到的JavaScript 问题....

JINGZzhuo的博客 2441

基于Python的车牌识别系统实现

本文将以基于Python的车牌识别系统实现为方向,介绍车牌识别技术的基本原理、常用算法和方法,并详细讲解如何利用Python语言实现一个完整的车牌识别系统。

商务合作 / 项目定制 / 学习交流。个人vx:lovely_wml 5万+

【实战圣经】YOLOv8-pose姿态估计模型从训练到RK3588部署:让边缘端骨骼识别速度突破60FPS

本教程从“模型训练-转换-边缘部署”全链路拆解了YOLOv8-pose姿态估计方案在RK3588上的落地过程,每一步都经过实战验证。无论是智能健身的动作实时纠正,还是工业设备的关键部件姿态检测,这套流程都能让你以最低成本实现高精度、高实时性的姿态估计应用。如果你在实践中遇到模型转换报错、部署性能不达标等问题,可聚焦某一环节深入优化——毕竟,让AI在边缘端“精准捕捉每一个关键点”,才是技术驱动场景创新的核心。

m0_71589036的博客 251

73种网页常用Javascript代码

73种网页常用Javascript代码 转载自:前端丶灵魂工程师 1、后退 前进 <input type="button" value="后退" onClick="history.go(-1)"> <input type="button" value="前进" onClick="history.go( 1 );return true...

anwu850704的博客 1188

内容审核与文本安全技术综述:检测、过滤与对齐

检测质量高度依赖数据。毒性/仇恨/冒犯语言检测领域形成了一批经典数据集,但它们的标签体系差异很大:例如 OLID(OffensEval)强调“是否冒犯—冒犯类型—目标对象”三层结构;HateXplain 在“hate/offensive/normal”三分类之外,还提供目标群体与人类标注的 rationale span;RealToxicityPrompts 则不做离散标签,而是用毒性分数来研究“模型续写时的毒性退化”。ACL 汇编。

nmdbbzcl的博客 1370

73种网页常用js代码

http://www.aiqianduan.net/forum.php?mod=viewthread&tid=72 73种网页常用js代码 1、后退 前进         2、返回      3、查看源码      4、禁止查看源码       5、刷新按钮一      function ReloadButton(){location.

每天问问自己,你今天努力了吗? 1251

IDEA的使用指南

IDEA基于java的使用手册,可以最快速的上手,在使用中不断的丰富自己的使用技巧.

pscad IEEE标准系统搭建说明

pscad IEEE标准系统搭建说明,包含典型的IEEE 9节点、14节点、30节点、39节点和118节点系统。内含标准测试系统的原始数据和潮流结果。

73种网页常用js代码(转)

73种网页常用js代码(转)     1、后退 前进   &lt;input type="button" value="后退" onClick="history.go(-1)"&gt;   &lt;input type="button" value="前进" onClick="history.go( 1 );return true;"&gt;     

友间博客 205

Probability and Statistics - 4th edition

Probability and Statistics - 4th edition

网页设计常用的Javascript特效代码

 实用的JS代码片段——网页特效代码很多了,这里收集整理的是一些常规的比较实用的JS代码片断。   字号缩放  让文字大点,让更多的用户看的更清楚。(也可以把字体变为百分比来实现)  function doZoom(size)  {document.getElementById(zoom).style.fontSize=size+px;}    需要指定大小的文字  网页教学网

xiaolang85的专栏 1658

廖雪峰Python教程[完整版]

廖雪峰的python教程整理的,已经排好版了,而且还是完整的,适合小白

iframe中的右键 禁止_网页中最常用的JS代码(js禁止右键、禁止复制)

function stop(){return false;}document.oncontextmenu=stop;oncopy=”return false;” oncut=”return false;” 防止复制四:禁止查看源文件function clear(){Source=document.body.firstChild.data;document.open();document.close...

weixin_39984982的博客 1292

网页中常用的Javascript代码

 JavaScript技术可以实现交互式页面,在建立动态页面方面有着其他工具不可比拟的优点。Javascript 在网页设计中,大部分都是用来实现功能,特效的.. 本文列举了一些网页制作中常用的JavaScript技术:      事件源对象 以下是引用片段:event.srcElement.tagName  event.srcElement.type         捕获释放 以

twosecond 1057

网页常用JavaScript代码

<script>// 弹出窗体 var url = "http://www.baidu.com"; win=window.showModalDialog(url,window,"dialogLeft:400;dialogTop:200;dialogWidth:560px;dialogHeight:380px;scroll:yes;menubar:no;toolbar:no;status:no

Working_Harder的专栏 1万+

常用的网页特效JavaScript代码

 收藏本站<span style="CURSOR: hand"onClick="window.external.addFavorite(http://www.webjx.com,网页教学网)"title="网页教学网">收藏本站或:JavaScript">   function bookmarkit()   {   window.external.addFavorite(ht

604

网页常用Js代码

1、后退前进 <input type="button" value="后退" onClick="history.go(-1)"> <input type="button" value="前进" onClick="history.go( 1 );return true;"> 2、返回 <form><input type="but...

勤劳的码农 477

网页常用JS代码

var d=new Date(); var monthname=new Array("1","2","3","4","5","6","7","8","9","10","11","12"); var dayname=new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六"); var TODAY = d.getFullYear() + "年" +

anwebDesigner的博客 624

常用网页广告代码全集-js广告代码大全

http://ad.jz123.cn/

shao.bing的专栏 1196

常用网页Javascript脚本代码

1.让文字不停地滚动   <MARQUEE>滚动文字</MARQUEE> 2.记录并显示网页的最后修改时间   <script. language=Javascript>   document.write("最后更新时间:...

cujingkuo5870的博客 338
上一篇: java 附件下载 或 直接打开 response.setHeader
下一篇: Java字符串_日期_数字格式化输出
OilAlways
博客等级 码龄17年 57粉丝 27原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值