Other
uyulnet
这个作者很懒,什么都没留下…
展开
-
免费的天气预报API--雅虎,中央气象台
雅虎天气APIyahoo天气预报的url是http://weather.yahooapis.com/forecastrss?w=2151330&u=c(返回的是XML数据)说说里面参数代表的意思:参数w对应各个地方在yahoo数据库中的WOEID,如北京的WOEID是2151330,目前也可以用参数p来代替w,不过官方还是推荐用w,貌似p是计划要被取消的。参转载 2012-10-01 00:05:35 · 2075 阅读 · 0 评论 -
http://help.dottoro.com/ljbwbehw.php
function InsertChar () { try { var pressEvent = document.createEvent ("KeyboardEvent"); pressEvent.initKeyEvent ("keypress", true, true, window,翻译 2013-01-11 23:52:57 · 923 阅读 · 0 评论 -
javascript, simulate keyboard events, work on chrome(webkit)
var te = document.createEvent('TextEvent');te.initTextEvent('textInput', true, true, window, 'test');.dispatchEvent(te);转载 2012-12-17 16:05:21 · 744 阅读 · 0 评论 -
http://ddouble.github.com/bsie/
http://ddouble.github.com/bsie/翻译 2012-12-28 23:00:26 · 560 阅读 · 0 评论 -
jQuery Select 操作
//得到select项的个数 jQuery.fn.size = function(){ return jQuery(this).get(0).options.length; } //获得选中项的索引 jQuery.fn.getSelectedIndex = function(){ return jQuery(this).get(0转载 2012-12-02 18:33:56 · 376 阅读 · 0 评论 -
IE浏览器兼容问题总结
IE浏览器兼容问题总结一.双边距问题浮动元素的外边距会加倍,但与第一个浮动元素相邻的其他浮动元素外边距不会加倍。解决方法:在此浮动元素增加样式 display:inline;二.图片产生的间隙父元素直接包含,这个图片下方会和父元素边缘产生间隙。解绝方法:1.在源代码中让和在同一行,因为那个间隙是由换行符产生的。 2.给添加样式转载 2012-10-22 10:51:27 · 624 阅读 · 0 评论 -
ubuntu 网络配置
插网线没反应unmanged意思是NM没有托管你的网络连接.很可能是你用了别的软件造成了冲突我以前也试过一次具体解决办法以管理员身份用文本编辑器打开sudo gedit/etc/NetworkManager/nm-system-settings.conf,把最后一行的“managed=false”改为 “managed=true”,重启电脑(也可以重启networkmanager原创 2012-10-15 12:51:27 · 497 阅读 · 0 评论 -
jquery.autocomplete.js学习完整篇
AutoComplate $(function() { var emails = [ { name: "Peter Pan", to: "peter@pan.de" }, { name: "Molly", to: "molly@转载 2012-10-08 13:20:44 · 6738 阅读 · 0 评论 -
GoogieSpell: 仿Gmail风格的拼写检查器
GoogieSpell是一个类似于Gmail的拼写检查器,你可以在你的应用程序开发中使用它。 它基于ajax技术创建,支持超过27种语言。GoogieSpell拼写检查的工作原理是直接向Google的拼写检查地址”https://www.google.com/tbproxy/spell?lang=”发出了一个质疑,然后显示结果和建议。GoogieSpell支持各大主要浏览器。转载 2012-10-08 13:24:44 · 2105 阅读 · 0 评论 -
IE6 css fixed
.fixed-top{position:fixed;bottom:auto;top:0px;}.fixed-bottom{position:fixed;bottom:0px;top:auto;}.fixed-left{position:fixed;right:auto;left:0px;}.fixed-right{position:fixed;right:0px;left:auto;}/*转载 2013-09-13 16:06:26 · 988 阅读 · 0 评论