随笔分类 -  Web-JavaScript

只放那些极好用的代码
摘要:这篇文章主要介绍了Javscript调用iframe框架页面中函数的方法,可实现iframe之间传值或修改值,是非常实用的技巧,需要的朋友可以参考下 本文实例讲述了在Javscript调用iframe框架页面中函数的方法,这个调用方法其实非常的简单,有了这个方法我们就可以实现iframe之间传值或修 阅读全文
posted @ 2019-12-26 21:11 findumars 阅读(643) 评论(0) 推荐(0) 编辑
摘要:注:本文纯转贴,供学习使用 本文一共介绍了七种javascript加密方法: 在做网页时(其实是网页木马呵呵),最让人烦恼的是自己辛辛苦苦写出来的客户端IE运行的javascript代码常常被别人轻易的拷贝,实在让自己的心里有点不是滋味,要知道自己写点东西也挺累的......^*^ 但我们也应该清楚 阅读全文
posted @ 2018-08-06 03:22 findumars 阅读(2044) 评论(0) 推荐(0) 编辑
摘要:ddd 阅读全文
posted @ 2017-04-18 21:32 findumars 阅读(208) 评论(0) 推荐(0) 编辑
摘要:啥要说这个东西?一道面试题就给我去说它的动机。题如下: 运行结果是true!!! 其实啥类型转换啊,操作符优先级啊,这些东西都是最最基本的。犀牛书上有详细的介绍。但我很少去翻犀牛书的前5章。。。 比如说优先级那块儿,很多书都教育我们,“不用去背诵优先级顺序,不确定的话,加括号就行了。“平常我们写代码 阅读全文
posted @ 2017-03-15 18:21 findumars 阅读(324) 评论(0) 推荐(0) 编辑
摘要:完整比较图:红色: 橙色:==黄色:<= 和 >= 同时成立,== 不成立蓝色:只有 >=绿色:只有 <= https://www.zhihu.com/question/31442029/answer/77772323 阅读全文
posted @ 2016-03-24 23:48 findumars 阅读(283) 评论(0) 推荐(0) 编辑
摘要:Animation Whee! 阅读全文
posted @ 2013-07-01 08:31 findumars 阅读(14601) 评论(0) 推荐(0) 编辑
摘要:Cities Itinerary When Where June 9th Portland, OR June 10th Seattle, WA June 12th Sacramento, CA addLoadEvent.js 使得页面载入时候运行JS函数:function addLoadEvent(func) { var oldonload = window.onload; if ... 阅读全文
posted @ 2013-07-01 07:41 findumars 阅读(842) 评论(0) 推荐(0) 编辑
摘要:Testingexample.js 文件内容:window.onload = function() { var testdiv = document.getElementById("testdiv"); testdiv.innerHTML="I inserted this content.";}另一段代码:window.onload = function() { var para = document.createElement("p"); var txt1 = document.createTextNode("I inse 阅读全文
posted @ 2013-07-01 06:51 findumars 阅读(91884) 评论(0) 推荐(0) 编辑
摘要:Image Gallery Snapshots Choose an image.showPic.js文件内容:function showPic(whichpic) { if (!document.getElementById("placeholder")) return true; var source = whichpic.ge... 阅读全文
posted @ 2013-07-01 06:43 findumars 阅读(1253) 评论(0) 推荐(0) 编辑
摘要:ExampleExample 阅读全文
posted @ 2013-07-01 06:23 findumars 阅读(1484) 评论(0) 推荐(0) 编辑
摘要:Shopping list What to buy What to buy Don't forget to buy this stuff. This is just a test A tin of beans C... 阅读全文
posted @ 2013-07-01 06:17 findumars 阅读(1889) 评论(0) 推荐(0) 编辑
摘要:Image Gallery Snapshots Fireworks Coffee Rose Big Ben Choose an image.showPic.js文件function showPic(whichpic) { var source = whichpic.getAttribute("href"); var placeholder = document.getElementById("placeholder"); placeholder.setA... 阅读全文
posted @ 2013-07-01 06:05 findumars 阅读(679) 评论(0) 推荐(0) 编辑
摘要:Add/Remove Event Handlers Example sss 阅读全文
posted @ 2013-06-28 23:41 findumars 阅读(17261) 评论(1) 推荐(1) 编辑
摘要:javascript选择当前页面所有checkbox 复选框代码 前后两个按钮都可以。参考:http://www.cnblogs.com/star250/archive/2007/10/31/944206.htmlradio特殊一些,因为同名的radio有两个按钮,但又只能单选,所以必须根据它的value才能判断是哪一个(value不代表被选中):function selectalls(state) { var inputs = document.getElementsByTag... 阅读全文
posted @ 2013-06-25 19:38 findumars 阅读(1859) 评论(0) 推荐(0) 编辑
摘要:给自己备用,免得忘了,而且挺实用的。echo "<script language=JavaScript> self.opener.location.reload();</script>"; echo "<script language=JavaScript> parent.leftFrame.location.reload(); </script>"; <input type="reset" value="<?php echo $ini_array['ind 阅读全文
posted @ 2013-06-07 19:12 findumars 阅读(1972) 评论(0) 推荐(0) 编辑
摘要:1. 如果在载入是隐藏: 2. 动态隐藏和显示: 以上代码之前,可能还要加上这句话: <script type="text/javascript" src="../../scripts/jquery.min.js"></script> 使用jquery真的很方便,比如要控制div的显示与隐藏,一句话 阅读全文
posted @ 2013-05-24 21:10 findumars 阅读(378942) 评论(1) 推荐(7) 编辑
摘要:使用表单1.使用文本框<form name=form1><input type=text value="information ,please"name=text1></form><script>document.write("表单text1类型是: "+document.form1.text1.type+"<br>")document.write("表单text1名称是: "+document.form1.text1.name+"<br& 阅读全文
posted @ 2013-03-15 20:59 findumars 阅读(279) 评论(0) 推荐(0) 编辑
摘要:第九章 使用字符串1.使用字符串对象<script>mystring="gdgdfgfddddaaaaaaaaaaaabbbbbbbbbbbbbbbbbvbhg.<br>"document.write(mystring)document.write(mystring.bold())document.write(mystring.toUpperCase())</script>2.使用子字符串<script>str1="fdsf 1111 gfdgfd dfdsf cccc dddd.<br>"do 阅读全文
posted @ 2013-03-15 20:58 findumars 阅读(267) 评论(0) 推荐(0) 编辑
摘要:事半功倍之Javascript--(2)第五章 使用函数1.声明函数<script>function quote(){ document.write("输出语句")}</script>2.调用函数<script>function quote(){ document.write("输出语句")}quote()</script>3.了解全局变量和局部变量任何不用 var关键字声明的变量都是全局变量,任何在函数外声明的变量都是全局变量4.将参数传送给函数<script>function f(item) 阅读全文
posted @ 2013-03-15 20:56 findumars 阅读(317) 评论(0) 推荐(0) 编辑
摘要:JavaScript精简学习4:表单43 表单构成<form method=”post” action=”target.html” name=”thisForm”><input type=”text” name=”myText”><select name=”mySelect”><option value=”1”>First Choice</option><option value=”2”>Second Choice</option></select><br><input type= 阅读全文
posted @ 2013-03-15 18:36 findumars 阅读(348) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示