08 2013 档案
摘要:1、地图切换方法注意:父页面访问Iframe页面JS方法需根据Iframe的名字来调用如:named "mapIfame" 即 mapIfame.window.iframeFunction();子页面访问父页面parent.parentFunction();iframeFunction(),parentFunction()都是各自页面的方法。/* * * IFrame地图与外部操作桥接 * @author BOONYACHENGDU@GMAIL.COM */(function() { window.MapIframe = {}; MapIframe = { ...
阅读全文
摘要:/** * GOOGLE地图开发使用工具 * @author BOONYACHENGDU@GMAIL.COM * @date 2013-08-23 * @notice 地图容器的(div)z-index不能小于(lt)0,否则鼠标地图无法进行地图操作(可以看到地图,不过你会万分苦恼(you will...
阅读全文
摘要:/** * 百度地图使用工具类-v1.5 * * @author boonya * @date 2013-7-7 * @address Chengdu,Sichuan,China * @email boonya@sina.com * @company KWT.Shenzhen.Inc.com * @notice 有些功能需要加入外部JS库才能使用,另外还需要申请地图JS key . * 申请地址:http://developer.baidu.com/map/apply-key.htm * @update log: 添加覆盖物聚合显示,设置地图bounds不起作用,需要使用Vi...
阅读全文
摘要:1、查看API实现//虽然比较符合API实现的思想但这个没法;//会产生Uncaught TypeError: undefined is not a function //google API no example to using itvar icon = new google.maps.Icon({ anchor:new google.maps.Point(0,0), origin:new google.maps.Point(0,0), scaledSize: new google.maps.Size(10,10), size: new google.maps.Si...
阅读全文
摘要:1、html标签如下 2、问题分析 我出现问题的是在select元素上直接加了onchange方法,改成onclick依旧不触发,很是郁闷!!! 因为在:jquery>>easy-ui>>Documentation>>combobox 定义引用了,所以他会自动把本身html >> select >> onChange等控件默认的事件屏蔽掉。3、解决方案在页面加载完成后添加select元素的事件绑定,代码如下:$(function(){ $('#currentMap').combobox({ //相当于html >
阅读全文
摘要:前注:在数据添加的时候很多地方都会涉及到数据的合法性验证,所以有必要提炼成为一个工具。今天偶然间点错网页,弹出一个游戏界面,本来是想看怎么实现的背景音乐的加载的,结果看到一个注册页面的验证JS,所以这里摘录以备以后使用。在此感谢我佛山人!/*************************************************Validator v1.05code by 我佛山人wfsr@msn.com*************************************************/Validator = { unValid : /[\x22-\x27\x2A...
阅读全文
摘要:前注:某游戏网站的加密算法,模仿MD5加密,文件名称md5.js/* * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message * Digest Algorithm, as defined in RFC 1321. * Version 2.1 Copyright (C) Paul Johnston 1999 - 2002. * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet * Distributed under the BSD L
阅读全文
摘要:/** * 百度地图使用工具类-v1.5 * * @author boonya * @date 2013-7-7 * @address Chengdu,Sichuan,China * @email boonya@sina.com * @company KWT.Shenzhen.Inc.com * @notice 有些功能需要加入外部JS库才能使用,另外还需要申请地图JS key . * 申请地址:http://developer.baidu.com/map/apply-key.htm * @update 自动获取地图中心城市名称,坐标点地址解析 */(function() ...
阅读全文
摘要:1、编写坐标点地址解析方法 /** * 坐标点地址解析 * @param point 经纬度点对象 */ getGeocoderInfoByPoint:function(point){ Geocoder.getLocation(point, function(rs) { var addComp = rs.addressComponents; Geocoder.point=point; Geocod...
阅读全文
摘要:1、初始化LocalSearch控件LocalSearch = new BMap.LocalSearch(map, { renderOptions : { map : map, panel : "r-result" }, onResultsHtmlSet : function(container) { $("#r-result-container").show(); ...
阅读全文