2012年7月15日
摘要: /*----百度地图-----*/var Forbaidumap = function(opat){ this.opat = opat; this.base(); }Forbaidumap.prototype = { base:function(){ this.star(); }, star:function(){ var _this = this; _this.map = new BMap.Map(_this.opat.id); _this.myGeo = new BMap.G... 阅读全文
posted @ 2012-07-15 22:04 somesayss 阅读(982) 评论(0) 推荐(0) 编辑
  2012年7月12日
摘要: /*jq*/var imgDrag = function(a,b){ var fazhiX = $(a).width()-$(b).width(); var fazhiY = $(a).height()-$(b).height(); $(a).mousedown(function(e){ var oldX = e.pageX; var oldY = e.pageY; var imgX = $(b).position().left; var imgY = $(b).position().top; $(this).addClass("on"); $(document).mous 阅读全文
posted @ 2012-07-12 22:10 somesayss 阅读(3143) 评论(0) 推荐(0) 编辑
  2012年6月25日
摘要: /*html*/<input type="button" value="set" id="set"/><input type="button" value="get" id="get" /><input type="button" value="det" id="det" />/*js*/function setCookie(name,value,day){ var date = 阅读全文
posted @ 2012-06-25 22:41 somesayss 阅读(176) 评论(0) 推荐(0) 编辑
  2012年6月9日
摘要: 滚动原理:function(a,b){ if(a.scrollLeft>=b){ a.scrollLeft=0; } a.scrollLeft++;}a:节点,b:阀值./*css*/.main{width:500px;margin:0 auto;padding-top:50px;}.imgBox{height:102px;overflow:hidden;_position:relative;}.imgContent{width:90000px;_position:absolute}.imgBox ul{float:left;}.imgBox li{float:left;width... 阅读全文
posted @ 2012-06-09 12:40 somesayss 阅读(1399) 评论(0) 推荐(0) 编辑
  2012年6月6日
摘要: function getFlash(a,b,c,d){ document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width= '+b+' height= '+c+' "id="star"align 阅读全文
posted @ 2012-06-06 18:01 somesayss 阅读(897) 评论(0) 推荐(0) 编辑
  2012年6月3日
摘要: /*css*/.imgBox{height:100px;position:relative;overflow:hidden;}.imgBox ul{position:absolute;width:9000px;}.imgBox li{float:left;width:60px;height:60px;background:#CCC;border:1px solid #000;margin-right:20px;overflow:hidden;}/*jq*/var imgRun = function(a,b,c,d){ var $imgUl = $(a).find("ul") 阅读全文
posted @ 2012-06-03 22:12 somesayss 阅读(7113) 评论(0) 推荐(0) 编辑
  2012年5月13日
摘要: /*css*/.site{width:800px;margin:0 auto;padding-top:50px;}.pro{height:200px;overflow:hidden;width:600px;margin:0 auto; position:relative;}.pro ul{width:6000px;position:absolute;left:0;}.pro li{float:left;font-size:0;}.button{height:100px;}.button p{text-align:center;line-height:100px;font-size:20px;} 阅读全文
posted @ 2012-05-13 11:52 somesayss 阅读(3332) 评论(0) 推荐(0) 编辑
  2012年5月12日
摘要: /*css*/.Box{position:relative;}.contentBox{width:400px;height:240px;background:#EEE;position:relative;overflow:hidden;}.content{position:absolute;width:400px;top:0;left:0;line-height:25px;color:#666;}.scrollBox{position:absolute;width:5px;height:200px;top:0;left:410px;background:#EEE}.scroll{positio 阅读全文
posted @ 2012-05-12 12:10 somesayss 阅读(2117) 评论(1) 推荐(0) 编辑
  2012年5月11日
摘要: 1,,关于 <input type="text"> <input type="button"> <input type="submit"> 的宽高2,,有文字和<input />一起存在时候的居中<div class="head"> 你好, world <a href="#">show</a> <input type="text" class="txt" /> 阅读全文
posted @ 2012-05-11 21:57 somesayss 阅读(290) 评论(0) 推荐(0) 编辑
  2012年5月7日
摘要: //企业站的一级目录,二级目录的焦点,页面的命名:aboutus.php ; aboutus_tissue.php ; aboutus_partners.php ; aboutus_culture.phpvar navaddNow = Class.create();navaddNow.prototype = { initialize: function(id,a){ if(document.getElementById(id)){ this.nowA = document.getElementById(id).getElementsByTagName("a"); this. 阅读全文
posted @ 2012-05-07 21:16 somesayss 阅读(141) 评论(0) 推荐(0) 编辑