stophhc

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

2013年3月6日

摘要: encodeURI()中#不会对;/?:@&=+$,#使用encodeURIComponent()才可以 阅读全文
posted @ 2013-03-06 17:28 stophhc 阅读(116) 评论(0) 推荐(0)

2012年12月26日

摘要: <script> $(window).scroll(function(){ var Top=$(window).scrollTop(); var Width=$(window).width(); var Height=$(window).height(); if(Top>0){ $(".hhc").css("display","block") $(".hhc").css("left",(Width-70)+"px") }else{ $(".hhc& 阅读全文
posted @ 2012-12-26 18:35 stophhc 阅读(93) 评论(0) 推荐(0)

2012年12月10日

摘要: <!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=u 阅读全文
posted @ 2012-12-10 17:12 stophhc 阅读(93) 评论(0) 推荐(0)

2012年12月5日

摘要: if (document.getElementById( "RDiv").scrollHeight < document.getElementById("LDiv").scrollHeight){ document.getElementById( "RDiv").style.height=document.getElementById("LDiv").scrollHeight+"px"; } else{ document.getElementById( "LDiv"). 阅读全文
posted @ 2012-12-05 15:42 stophhc 阅读(90) 评论(0) 推荐(0)

2012年11月26日

摘要: <a href="#" onclick="window.external.addFavorite('http://www.163.com','网易');return false;" title="网易" rel="sidebar">加入收藏</a> 阅读全文
posted @ 2012-11-26 14:40 stophhc 阅读(112) 评论(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><style>#div1 {width:100px; height:200px; background:#CCC; position:absolute; 阅读全文
posted @ 2012-11-22 12:05 stophhc 阅读(122) 评论(0) 推荐(0)

摘要: var oLose=document.getElementById('lose');oLose.onfocus=function(){if(this.value=='请输入关键词'){this.value='';}}oLose.onblur=function(){if(this.value==''){this.value='请输入关键词';}} 阅读全文
posted @ 2012-11-22 11:57 stophhc 阅读(112) 评论(0) 推荐(0)

摘要: function hui(hhc,btn){var oHua = document.getElementById(btn);var oHhc = document.getElementById(hhc);oHua.onclick = function (){var style = oHhc.style;if(style.height=="26px"){style.height="auto"oHua.innerHTML="点击收回"}else{style.height="26px"oHua.innerHTML=&qu 阅读全文
posted @ 2012-11-22 11:20 stophhc 阅读(155) 评论(0) 推荐(0)

摘要: <!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>tab选项卡</title><script type="text/javascript" src=& 阅读全文
posted @ 2012-11-22 10:39 stophhc 阅读(303) 评论(0) 推荐(0)

点击右上角即可分享
微信分享提示