草窟设计

Wordpress, Drupal 二次开发~

  • 首页
    • On Trip
    • 心情日记
    • 代码人生
    • 前端技术
    • Linux-Server
  • 关于站长
    • 新浪微博
    • 我在人人网
    • About Me
    • My Google
    • My Flickr
  • WordPress
    • Qtranslate Flags Setting
  • Portfolio
    • MD5 加密
  • Div & Css
  • 分类目录

javascript

Home > Blog > 探测设备系统

探测设备系统

Time Posted on 24, 十一

Javascript 探测客户设备的操作系统 var deviceAgent = navigator.userAgent.toLowerCase(); var isAndroid = deviceAgent.indexOf("android") > -1; //&& ua.indexOf("mobile");   var iOS = deviceAgent.match(/(iphone|ipod|ipad)/);   if (iOS) { document.write('iOS'); } else if(isAndroid) { document.write('android'); }else { document.write(navigator.platform); } php 探测客户设备的操作系统 //Detect special conditions devices $iPod = stripos($_SERVER['HTTP_USER_AGENT'],"iPod"); $iPhone = stripos($_SERVER['HTTP_USER_AGENT'],"iPhone"); $iPad = stripos($_SERVER['HTTP_USER_AGENT'],"iPad"); if(stripos($_SERVER['HTTP_USER_AGENT'],"Android") && stripos($_SERVER['HTTP_USER_AGENT'],"mobile")){ $Android = true; }else [...]

Kissy – 淘宝网的 UI 类库

Time Posted on 16, 十二

这不是蜜雪薇琪的专辑,他是一个很成熟的 javascript 类库,你可以不知道他,但是你不可以不知道淘宝网,查看淘宝网的网页源码就可以发现他的身影。 http://kissyteam.github.com/docs/html/quickstart/

JavaScript 固定浮动层

Time Posted on 14, 十二

id: 你要滚动的内容的id l: 横坐标的位置 不写为紧贴右边 t: 你要放在页面的那个位置默认是贴着底边 0是贴着顶边 f: 1表示固定 不写或者0表示滚动

JavaScript Runcode

Time Posted on 3, 二

代码预览器 <html> <head> <title>代码预览器</title> <meta http-equiv=Content-Type content="text/html; charset=gb2312"> <script language=JavaScript> var currentpos,timer; function initialize() { timer=setInterval("scrollwindow()",50); } function sc() { clearInterval(timer); } function scrollwindow() { currentpos=document.body.scrollTop; window.scroll(0,++currentpos); if (currentpos != document.body.scrollTop) sc(); } document.onmousedown=sc document.ondblclick=initialize </script>   </head>   <body>   <h1 align="center">代码预览器</h1> <hr SIZE=1>   <p align="center"><textarea id="p" onfocus="this.select()" onKeyDown="submitCode()" name="p" rows="30" cols="100"></textarea></p> <p [...]

Javascript 获取 URL 参数

Time Posted on 20, 九

function getArgs( ) { var args = new Object( ); var query = location.search.substring(1); // Get query string var pairs = query.split("&"); // Break at ampersand for(var i = 0; i < pairs.length; i++) { var pos = pairs[i].indexOf('='); // Look for "name=value" if (pos == -1) continue; // If not found, skip var argname [...]

JQuery 新闻头条淡入淡出效果

Time Posted on 20, 八

新闻头条淡入淡出效果 <!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> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> <style> a { color:#CCCCCC} li { list-style:none;} span { padding-right:20px; color:#FFFFFF; font-weight:bold;} </style> </head> <body> <div id="ticker" style="padding:10px; background:#333333"> <!-- START TICKER VER 1.0.1 --> <script src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js" type="text/javascript"></script> <script type="text/javascript"> /* ========================================================= // jquery.innerfade.js // Datum: 2008-02-14 // [...]

jQuery插件Step Carousel Viewer实现Javascript图片滑动旋转效果

Time Posted on 20, 八

需要将产品图片或相片等实现Javascript图片滑动旋转Animation效果,能自动播放图片或鼠标控制播放图片,图片固定的滑动在指定的区域内,类似动画播放,使用jQuery插件Step Carousel Viewer可实现该功能,而且使用简单,Step Carousel Viewer中文大概是按步旋转阅读,意思是说每张图片一张一张旋转阅读,效果: <script type="text/javascript"> // For instructions how how to modify go to this URL // http://www.dynamicdrive.com/dynamicindex4/stepcarousel.htm stepcarousel.setup({ galleryid: 'mygallery', //id of carousel DIV beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs panelclass: 'panel', //class of panel DIVs each holding content autostep: {enable:true, moveby:1, pause:2000}, panelbehavior: {speed:500, wraparound:true, [...]

JavaScript可移动弹出层

Time Posted on 17, 八

点击按钮弹出层,兼容FF/IE7的可移动弹出层,弹出层可以移动,可以删除。(点击按钮,页面变灰,处于失效状态) 并把所有select标签捉住–将select设为隐藏(也可以隐藏页面所以元素),关闭弹出层select再显示出来,代码里有注释。(需要不通的效果可以根据自己需要修改) <!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> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>兼容FF/IE的可移动弹出层</title><style type="text/css"> .button1 {background: #ebebeb; border: 1px solid #888888; color:#333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; height:23px; cursor:pointer } </style> <script language="javascript"> function alertWin(title, msg, w, h){ var s=document.getElementsByTagName("select"); //--------------把所有select标签捉住 for(var j=0;j<s.length;j++){s[j].style.display="none";} //--------------设为不显示,再进行下面操作 var titleheight = "20px"; [...]

JavaScript图片横向平滑切换效果

Time Posted on 6, 八

javascript+css 新闻滑轮显示

Time Posted on 21, 七

Javascript+CSS 经典效果, 新闻滑轮显示. 效果2张: 代码: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"> <html> <head> <title>绝对经典的滑轮新闻显示 (javascript+css)</title> <meta http-equiv=Content-Type content="text/html; charset=gb2312"> <style type="text/css"> <!-- *{padding:0; margin:0} img{border:0; display:block;} BODY { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN: 0px auto; COLOR: black; LINE-HEIGHT: 150%; PADDING-TOP: 10px; BACKGROUND-COLOR: white; TEXT-ALIGN: center } .dis { DISPLAY: [...]

给我钱钱~

如果你举得我的文章对你有帮助,欢迎向我支付一小笔金钱作为回报。

数额无大小,这是我的收款主页http://me.alipay.com/yaoyingying

一看就知道是灰机~

凯特葛妮亚~

  • Featured Stories (12)
  • Linux-Server (40)
  • On Trip (21)
  • 代码人生 (76)
    • Drupal (2)
    • Wordpress (4)
  • 前端技术 (27)
    • Jquery (9)
  • 心情日记 (62)
    • Have a Joke (7)
    • 随便写写 (19)
  • 电脑硬件 (7)

最近扯的蛋

  • 去除 wordpress 链接中的域名
  • 清理wordpress菜单里的 id 和 class
  • Drupal7 获取自定义字段的值
  • WordPress 只显示当前用户的文章
  • 怎么让WordPress自定义菜单在新窗口打开
  • 7步在 Drupal 7 中建立 Nivo Slider
  • 探测设备系统
  • 关闭 WordPress 自动更新
  • WordPress Feeds 定制
  • WordPress Upload New Media “HTTP error”
  • PHP数据类型转换
  • WordPress UTF8 中文截取
  • WordPress 如何修改密码保护表单的文字说明
  • Qtranslate With function __() and _e()
  • Ubuntu 163 Sources List
  • wpautop WordPress 文章格式化
  • Get Labels for Advanced Custom Fields
  • Post Formats of WordPress
  • wp_head() 函数优化
  • 正式开始 WordPress 了!

坑爹啊~

2012 年一月
日 一 二 三 四 五 六
« 十二    
1234567
891011121314
15161718192021
22232425262728
293031  

一堆破图

climbing 11071916154d64dd6d2895dbf2 1107191553866bdca3b170ba8e 11071915331d34fb0b6be0ec85 1107191520900842a89d924b3f 11071909057825144e19ede8a4 IMG_4987 IMG_5018 ME

在过去的时光里

  • 2012 年一月 (2)
  • 2011 年十二月 (4)
  • 2011 年十一月 (3)
  • 2011 年十月 (4)
  • 2011 年九月 (1)
  • 2011 年八月 (6)
  • 2011 年六月 (2)
  • 2011 年五月 (9)
  • 2011 年四月 (2)
  • 2011 年三月 (2)
  • 2011 年一月 (7)
  • 2010 年十二月 (8)
  • 2010 年十一月 (4)
  • 2010 年十月 (5)
  • 2010 年九月 (4)
  • 2010 年八月 (7)
  • 2010 年七月 (8)
  • 2010 年六月 (2)
  • 2010 年五月 (3)
  • 2010 年四月 (6)
  • 2010 年三月 (7)
  • 2010 年二月 (5)
  • 2010 年一月 (2)
  • 2009 年十二月 (7)
  • 2009 年十一月 (7)
  • 2009 年九月 (10)
  • 2009 年八月 (18)
  • 2009 年七月 (15)
  • 2009 年六月 (17)
  • 2009 年五月 (19)
  • 2009 年四月 (14)
  • 2009 年三月 (25)

像新浪一样SB

一群流氓~

  • Hpyer 的未知空间
  • Just4Memory
  • php教程
  • web蓝草博客
  • 上海收缩机
  • 动漫穷小子网
  • 天时表行
  • 影视爱好者
  • 教育培训网
  • 水平网
  • 盒子UI设计
  • 老姚博客
  • 苏州丁氏养蜂场
  • 赵子仓
  • 那些花儿

一切都是浮“云”

ajax Apache apt-get Chinajoy CSS Debian dedecms error firefox HeidiSQL htaccess html IE6 javascript jQuery lamp linux mail mod_rewrite mysql mysql5 MySQL Front php phplist phpmyadmin postfix thinkphp Ubuntu wordpress WordPress Theme 京腔 代码 年轻的时候很傻很天真 户外 摄影 数据库 李玉刚 歌词 歌词翻译 盛世霓裳 示例 翻译 芳华绝代 视频 音乐

分析在此~

png png

© 2012 Yao Yingying