博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年11月30日

摘要: var key=it.getKey();var len = $('#'+key).find('.itemlist').find('input');var a=new Array();var chked=false;for(var i=0;i<len.length;i++){chked=chked||len[i].checked;if(chked);if(chked===true){if(len[i].checked){ var val =$('#'+key).find('.itemlist').find(&# 阅读全文

posted @ 2012-11-30 12:40 人生梦想起飞 阅读(1209) 评论(0) 推荐(0) 编辑

2012年11月27日

摘要: html:<!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><title>JQuery图片滚动easyslider1.5_前端设计http://www.webskys.com</title> 阅读全文

posted @ 2012-11-27 17:22 人生梦想起飞 阅读(325) 评论(0) 推荐(0) 编辑

摘要: //var a= [[1,2],['a',4],[5,'c'],[7,8]]; var a={'66':["孙摸清","258"],'77':["李倩","22"]} for (var i in a){ alert(a[i]) }数组二:var a=[{text:'杭州',value:'8'},{text:'南京',value:'2'},{text:'江苏111',valu 阅读全文

posted @ 2012-11-27 15:44 人生梦想起飞 阅读(2496) 评论(0) 推荐(0) 编辑

摘要: <ahref="javascript:void(0);" ;onclick="javascript:window.location.href='http://www.sina.com';">转到</a>后面是网上找到了解决方案(URL:http://www.cnblogs.com/kaima/archive/2008/08/22/1273808.html):<script type="text/javascript">function goUrl(x){ window.locatio 阅读全文

posted @ 2012-11-27 14:13 人生梦想起飞 阅读(1695) 评论(0) 推荐(0) 编辑

摘要: var str = "1,2,4,5,2,4"; var s = str.split(','); var dic = {}; for (var i = s.length; i--; ) {dic[s[i]]=s[i];} var r = []; for (var v in dic) {r.push(dic[v]);} alert(r.join()); 阅读全文

posted @ 2012-11-27 11:37 人生梦想起飞 阅读(176) 评论(0) 推荐(0) 编辑

2012年11月26日

摘要: CSS样式:.tishiBox,.tishiBox span{ position:absolute;display:inline-block; background:url(/static/images/sns/teacher/tishiBg.png);_background:url(/static/images/sns/teacher/ie6gif/tishiBg.gif)}.tishiBox{height:36px; position: absolute; white-space:nowrap;background-position:center 0;}.tishiBox span{ po 阅读全文

posted @ 2012-11-26 18:36 人生梦想起飞 阅读(485) 评论(0) 推荐(0) 编辑

2012年11月23日

摘要: function checkBrowser(){var browserName=navigator.userAgent.toLowerCase();//var ua = navigator.userAgent.toLowerCase();var Sys = {};var rtn = false; if(/msie/i.test(browserName) && !/opera/.test(browserName)){ strBrowser = "IE: "+browserName.match(/msie ([\d.]+)/)[1];rtn = true; // 阅读全文

posted @ 2012-11-23 16:11 人生梦想起飞 阅读(207) 评论(0) 推荐(0) 编辑

2012年11月22日

摘要: <!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=g 阅读全文

posted @ 2012-11-22 16:12 人生梦想起飞 阅读(192) 评论(0) 推荐(0) 编辑

2012年11月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=g 阅读全文

posted @ 2012-11-20 18:32 人生梦想起飞 阅读(480) 评论(0) 推荐(0) 编辑

摘要: var zIndex = 100;function getzIndex(){ return zIndex++;}$('.editor_question_item').find('.SheetsConHome ').css('zIndex',getzIndex()) $('.editor_question_item').live('click',function(){//点击哪一个哪一个的置于最前面$(this).find('.SheetsConHome ').css('zIndex' 阅读全文

posted @ 2012-11-20 09:07 人生梦想起飞 阅读(217) 评论(0) 推荐(0) 编辑