先说明,这个办法只限于iframe中的子页面也是本地页面(不能引用外网页面)

======方法=====
第一步 js部分

1、不吃早餐
  指控:严重伤胃,使你无法精力充沛地工作,而且还容易“显老”。
  开方:早餐食物尽量做到可口、开胃;有足够的数量和较好的质量;体积小,热能高;
  我们知道,不同食物在胃中停留时间的长短是不一样的,所引起的血糖反应也不相同。在正常情况下干稀混合食物可以在胃中停留4-5个小时,而流质食物由于体积大,刚吃完感觉很饱,但在胃中停留时间很短,其中营养成分来不及充分消化即被排出,上升的血糖水平也很快就低落下来,不能持久。因此,在食物的选择上一定要注意干稀搭配,荤素兼备。

  2、晚餐太丰盛

  指控:傍晚时血液中胰岛素含量为一天中的高峰,胰岛素可使血糖转化成脂肪被凝结在血管壁上和腹壁上,晚餐吃得太丰盛,久而久之,人便肥胖起来。同时,持续时间通常较长的丰盛晚餐,还会破坏人体正常的生物钟,容易使人患上失眠。
  处罚决定:第一,晚餐要早吃。晚餐早吃可大大降低尿路结石病的发病率。第二,晚餐要素吃。晚餐一定要偏素,以富含碳水化合物的食物为主,尤其应多摄入一些新鲜蔬菜,尽量减少过多的蛋白质、脂肪类食物的摄入。第三,晚餐要少吃。一般要求晚餐所供给的热量以不超过全日膳食总热量的30%。
Tags:

企业网站常用中英文对照表

[不指定 2007/06/12 11:21 | by sunle ]
网站导航 site map

公司简介 PROFILE or COMPANY Profile or Company

公司设备 EQUIPMENT Equipment

公司荣誉 GLORIES Glories

企业文化 CULTURE Culture

产品展示 PRODUCT Product

资质认证 quality certification

企业规模 SCALE Scale

营销网络 Sales Network
设为首页代码:

on (release) {
getURL("javascript:void(document.links[0].style.behavior='url(#default#homepage)');void document.links[0].setHomePage('http://www.zishu.cn/');", "_self", "POST");
}


加为收藏代码:

on (release) {
getURL("javascript:window.external.AddFavorite('http://www.zishu.cn/','子鼠')");
}


Tags:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style>
body {margin:0px;padding:0px;font-size:12px;text-align:center;}
body > div {text-align:center; margin-right:auto; margin-left:auto;}
.content{width:900px;}
.content .left{
 float:left;
 width:20%;
 border:1px solid #FF0000;
 margin:3px;
}
.content .center{float:left;border:1px solid #FF0000;margin:3px;width:57%}
.content .right{float:right;width:20%;border:1px solid #FF0000;margin:3px}
.mo{height:auto;border:1px solid #CCC;margin:3px;background:#FFF}
.mo h1{background:#ECF9FF;height:18px;padding:3px;cursor:move}
.mo .nr{height:80px;border:1px solid #F3F3F3;margin:2px}
h1{margin:0px;padding:0px;text-align:left;font-size:12px}
</style>
<script>
var dragobj={}
window.onerror=function(){return false}
function on_ini(){
 String.prototype.inc=function(s){return this.indexOf(s)>-1?true:false}
 var agent=navigator.userAgent
 window.isOpr=agent.inc("Opera")
 window.isIE=agent.inc("IE")&&!isOpr
 window.isMoz=agent.inc("Mozilla")&&!isOpr&&!isIE
 if(isMoz){
   Event.prototype.__defineGetter__("x",function(){return this.clientX+2})
   Event.prototype.__defineGetter__("y",function(){return this.clientY+2})
 }
 basic_ini()
}
function basic_ini(){
 window.$=function(obj){return typeof(obj)=="string"?document.getElementById(obj):obj}
 window.oDel=function(obj){if($(obj)!=null){$(obj).parentNode.removeChild($(obj))}}
}
window.onload=function(){
 on_ini()
 var o=document.getElementsByTagName("h1")
 for(var i=0;i<o.length;i++){
   o[i].onmousedown=function(e){
     if(dragobj.o!=null)
       return false
     e=e||event
     dragobj.o=this.parentNode
     dragobj.xy=getxy(dragobj.o)
     dragobj.xx=new Array((e.x-dragobj.xy[1]),(e.y-dragobj.xy[0]))
     dragobj.o.style.width=dragobj.xy[2]+"px"
     dragobj.o.style.height=dragobj.xy[3]+"px"
     dragobj.o.style.left=(e.x-dragobj.xx[0])+"px"
     dragobj.o.style.top=(e.y-dragobj.xx[1])+"px"      
     dragobj.o.style.position="absolute"
     var om=document.createElement("div")
     dragobj.otemp=om
     om.style.width=dragobj.xy[2]+"px"
     om.style.height=dragobj.xy[3]+"px"
     dragobj.o.parentNode.insertBefore(om,dragobj.o)
     return false
   }
 }
}
document.onselectstart=function(){return false}
window.onfocus=function(){document.onmouseup()}
window.onblur=function(){document.onmouseup()}
document.onmouseup=function(){
 if(dragobj.o!=null){
   dragobj.o.style.width="auto"
   dragobj.o.style.height="auto"
   dragobj.otemp.parentNode.insertBefore(dragobj.o,dragobj.otemp)
   dragobj.o.style.position=""
   oDel(dragobj.otemp)
   dragobj={}
 }
}
document.onmousemove=function(e){
 e=e||event
 if(dragobj.o!=null){
   dragobj.o.style.left=(e.x-dragobj.xx[0])+"px"
   dragobj.o.style.top=(e.y-dragobj.xx[1])+"px"
   createtmpl(e)
 }
}
function getxy(e){
 var a=new Array()
 var t=e.offsetTop;
 var l=e.offsetLeft;
 var w=e.offsetWidth;
 var h=e.offsetHeight;
 while(e=e.offsetParent){
   t+=e.offsetTop;
   l+=e.offsetLeft;
 }
 a[0]=t;a[1]=l;a[2]=w;a[3]=h
 return a;
}
function inner(o,e){
 var a=getxy(o)
 if(e.x>a[1]&&e.x<(a[1]+a[2])&&e.y>a[0]&&e.y<(a[0]+a[3])){
   if(e.y<(a[0]+a[3]/2))
     return 1;
   else
     return 2;
 }else
   return 0;
}
function createtmpl(e){
 for(var i=0;i<12;i++){
   if($("m"+i)==dragobj.o)
     continue
   var b=inner($("m"+i),e)
   if(b==0)
     continue
   dragobj.otemp.style.width=$("m"+i).offsetWidth
   if(b==1){
     $("m"+i).parentNode.insertBefore(dragobj.otemp,$("m"+i))
   }else{
     if($("m"+i).nextSibling==null){
       $("m"+i).parentNode.appendChild(dragobj.otemp)
     }else{
       $("m"+i).parentNode.insertBefore(dragobj.otemp,$("m"+i).nextSibling)
     }
   }
   return
 }
 for(var j=0;j<3;j++){
   if($("dom"+j).innerHTML.inc("div")||$("dom"+j).innerHTML.inc("DIV"))
     continue
   var op=getxy($("dom"+j))
   if(e.x>(op[1]+10)&&e.x<(op[1]+op[2]-10)){
     $("dom"+j).appendChild(dragobj.otemp)
     dragobj.otemp.style.width=(op[2]-10)+"px"
   }
 }
}
</script>
</head>
<body>
<div class=content>
 <div class=left id=dom0>
   <div class=mo id=m0>
     <h1>dom0</h1>
     <div class="nr"></div>
   </div>
   <div class=mo id=m1>
     <h1>dom1</h1><div class="nr"></div>
   </div>
   <div class=mo id=m2><h1>dom2</h1><div class="nr"></div></div>
   <div class=mo id=m3><h1>dom3</h1><div class="nr"></div></div>
 </div>
 <div class=center id=dom1>
   <div class=mo id=m4><h1>dom4</h1><div class="nr"></div></div>
   <div class=mo id=m5><h1>dom5</h1><div class="nr"></div></div>
   <div class=mo id=m6><h1>dom6</h1><div class="nr"></div></div>
   <div class=mo id=m7><h1>dom7</h1><div class="nr"></div></div>
 </div>
 <div class=right id=dom2>
   <div class=mo id=m8><h1>dom8</h1><div class="nr"></div></div>
   <div class=mo id=m9><h1>dom9</h1><div class="nr"></div></div>
   <div class=mo id=m10><h1>dom10</h1><div class="nr"></div></div>
   <div class=mo id=m11><h1>dom11</h1><div class="nr"></div></div>
 </div>
</div>
</body>
</html>

PNG在网页中的应用

[不指定 2007/06/12 11:08 | by sunle ]
最近在做一个网站的时候十分苦恼,因为背景我做的是渐变的,不好切图,请恕我的菜.
只好把图片保存成透明的背景到时放上去就不会有衔接不好的现象了,可是我保存了N次的gif没能解决.真是有够讨厌的那些杂边.
只好网上找下方法
没想到在一国外的网站找到了这个
把下边的代码另存为pngfix.js
然后在你要用png图片背景透明的网页中加入以下代码


pngfix.js
Tags:

搜索引擎关系分析图

[不指定 2007/06/11 22:51 | by sunle ]
比较不错的国际主要搜索引擎关系分析图,分析了各搜索引擎的来源从属关系,搜索引擎的各种分类归属,主流搜索引擎的市场份额等等,对于研究E文SEO,不可不说是一个很有价值的参考。

点击下面Flash中的搜索引擎的名称,可了解其相关关系,点击右下的3个选项,可以得到相关数据!

分页: 42/46 第一页 上页 37 38 39 40 41 42 43 44 45 46 下页 最后页 [ 显示模式: 摘要 | 列表 ]