ITeye博客

Web General

共 5 篇文章

(Adobe Air) Bring a window to front by clicking the systemTrayIcon

While developing an AIR application, I had an issue with bringing the application to front (above all other windows) when clicking the systemTrayIcon. Usually, you would use the method: view source print ? 1. systemTrayIcon.addEventListener( "click" , function () { 2. window.nativeWindow.orderToFro…

2010-04-05 16:09 · Web General · Windows · Adobe · AIR

10 个有用的 css 代码

Today, I have compiled a set of 10 CSS snippets that can save you a lot of time and effort. These codes are needed frequently when developing CSS-based websites or themes. Just bookmark these codes (Ctrl + D) so that you don’t have to look for them on the Internet every time. 1. CSS Tooltips Throug…

2010-02-08 21:44 · Web General · CSS · Ajax · Safari · Firefox · IE

QQ,MSN,旺旺,网页链接打开程序

QQ,MSN,旺旺,网页链接打开程序 QQ/MSN在线交流代码 2009-06-06 16:03 <a href="tencent://message/?uin=12345&Site=在线QQ&Menu=yes">在线qq交流</a> 可以直接用他的MSN与你对话,代码是 建立对话:msnim:chat?contact=[邮件地址] 添加好友:msnim:add?contact=[邮件地址] 语音聊天:msnim:voice?contact=[邮件地址] 视频聊天:msnim:video?contact=[邮件地址] 用的时候把[邮件地址]写成你的MSN账号,不要方括号,用链接即可,如 <a…

2009-12-01 22:19 · Web General · Yahoo · PHP · 咨询 · 阿里巴巴 · QQ

12 Tips to Better SEO

http://www.howsthe.com/blog/2009/sep/15/12-tips-better-seo/ Advertising is very expensive, studies have shown that it is not as effective as being on the first page of search results. These SEO tips will help you rank higher on the search engines results, and who doesn't like free referrals. Conten…

2009-10-08 11:30 · Web General · Google · CSS · Django · Blog · JavaScript

网站前端性能优化方法

1)减少一个页面访问所产生的http连接次数 对于第一次访问你网站的用户,页面所产生的http连接次数是影响性能的一个关键瓶颈。 对策: - 尽量简洁的页面设计,最大程度减少图片的使用,通过放弃一些不必要的页面特效来减少javascript的使用。 - 使用一些优化技巧,比如利用图片的背景位移减少图片的个数;image map技术;使用Inline images将css图片捆绑到网页中。 - 尽量合并js和css文件,减少独立文件个数。 2) 使用gzip压缩网页内容 使用gzip来压缩网页中的静态内容,能够显著减少用户访问网页时的等待时间(据说可达到60%)。主流的web服务器都支持或提供…

2008-01-10 12:37 · Web General · 浏览器 · CSS · JavaScript · 脚本 · IE