⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 欢迎观临妈咪网络代购网.htm

📁 这个是一个很不错的 js效果(表格突出显示)希望对大家有所帮助
💻 HTM
📖 第 1 页 / 共 4 页
字号:
function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft: what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function moveup(){
if (loadedyes){
movestate="up"
if (iedom&&parseInt(cross_scroll.style.top)>(menu_height-actualheight)){
cross_scroll.style.top=parseInt(cross_scroll.style.top)-scrollspeed+"px"
showhidediv("hidden")
}
else
showhidediv("visible")
}
uptime=setTimeout("moveup()",10)
}

function movedown(){
if (loadedyes){
movestate="down"
if (iedom&&parseInt(cross_scroll.style.top)<0){
cross_scroll.style.top=parseInt(cross_scroll.style.top)+scrollspeed+"px"
showhidediv("hidden")
}
else
showhidediv("visible")
}
downtime=setTimeout("movedown()",10)
}

function motionengine(e){
var dsocx=(window.pageXOffset)? pageXOffset: ietruebody().scrollLeft;
var dsocy=(window.pageYOffset)? pageYOffset : ietruebody().scrollTop;
var curposy=window.event? event.clientY : e.clientY? e.clientY: ""
curposy-=mainobjoffset-dsocy
var leftbound=(menu_height-restarea)/2
var rightbound=(menu_height+restarea)/2
if (curposy>rightbound){
scrollspeed=(curposy-rightbound)/((menu_height-restarea)/2) * maxspeed
if (window.downtime) clearTimeout(downtime)
if (movestate!="up") moveup()
}
else if (curposy<leftbound){
scrollspeed=(leftbound-curposy)/((menu_height-restarea)/2) * maxspeed
if (window.uptime) clearTimeout(uptime)
if (movestate!="down") movedown()
}
else
scrollspeed=0
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function stopmotion(e){
if ((window.event&&!crossmain.contains(event.toElement)) || (e && e.currentTarget && e.currentTarget!= e.relatedTarget && !contains_ns6(e.currentTarget, e.relatedTarget))){
if (window.downtime) clearTimeout(downtime)
if (window.uptime) clearTimeout(uptime)
movestate=""
}
}

function fillup(){
if (iedom){
crossmain=document.getElementById? document.getElementById("motioncontainer") : document.all.motioncontainer
menu_height=parseInt(crossmain.style.height)
mainobjoffset=getposOffset(crossmain, "top")
cross_scroll=document.getElementById? document.getElementById("motiongallery") : document.all.motiongallery
actualheight=cross_scroll.offsetHeight

crossmain.onmousemove=function(e){
motionengine(e)
}

crossmain.onmouseout=function(e){
stopmotion(e)
showhidediv("hidden")
}
}
if (window.opera){
cross_scroll.style.top=menu_height-actualheight+'px'
setTimeout('cross_scroll.style.top=0', 10)
}
loadedyes=1
if (endofgallerymsg!=""){
creatediv()
positiondiv()
}
}
window.onload=fillup
</SCRIPT>
</DIV>
<DIV class=clear></DIV>
<DIV class=StyleHotGoodsWrap>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD>
      <DIV class=INDEXGOODS_STYLE_LIST_Wrap>
      <UL><A title=婴儿手推车 
        href="http://www.ma-mi.net/index.php?gOo=goods_details.dwt&amp;goodsid=106&amp;productname=" 
        target=_blank>婴儿手推车</A> <A title=电子体温计 
        href="http://www.ma-mi.net/index.php?gOo=goods_details.dwt&amp;goodsid=104&amp;productname=" 
        target=_blank>电子体温计</A> </UL></DIV></TD>
    <TD>
      <DIV class=TPL_INDEXGOODS_STYLE_STEPSCROLL>
      <SCRIPT src="欢迎观临妈咪网络代购网_files/MSClass.js" type=text/javascript></SCRIPT>

      <DIV id=marqueediv1 
      style="OVERFLOW: hidden; WIDTH: 450px; HEIGHT: 150px"></DIV>
      <SCRIPT type=text/javascript>
	var agent = navigator.userAgent.toLowerCase();
	var IEVer = -1; 
  if (navigator.appName == 'Microsoft Internet Explorer'){
		new Marquee("marqueediv1",0,18,450,153,50,4000,4000)
   }else{
		new Marquee("marqueediv1",0,18,450,150,50,4000,4000)
   }

</SCRIPT>
      </DIV></TD>
    <TD>
      <DIV class=INDEXGOODS_STYLE_LIST_Wrap>
      <UL></UL></DIV></TD></TR></TBODY></TABLE></DIV>
<DIV class=bigbanner><A><IMG src="欢迎观临妈咪网络代购网_files/bigban.gif" 
border=3></A></DIV>
<DIV class=StyleSpecialGoodsWrap>
<DIV class=items>
<DIV class=intropic><IMG src="欢迎观临妈咪网络代购网_files/specialtitilepic-1.gif"></DIV>
<DIV class=title>婴儿用品</DIV>
<DIV class=INDEXGOODS_STYLE_LIST_Wrap>
<UL><A title=婴儿手推车 
  href="http://www.ma-mi.net/index.php?gOo=goods_details.dwt&amp;goodsid=106&amp;productname=" 
  target=_blank>婴儿手推车</A> <A title=电子体温计 
  href="http://www.ma-mi.net/index.php?gOo=goods_details.dwt&amp;goodsid=104&amp;productname=" 
  target=_blank>电子体温计</A> <A title=婴幼儿专用淘耳器(带灯) 
  href="http://www.ma-mi.net/index.php?gOo=goods_details.dwt&amp;goodsid=103&amp;productname=" 
  target=_blank>婴幼儿专用淘耳器(带灯)</A> </UL></DIV></DIV>
<DIV class=items style="MARGIN-LEFT: 30px">
<DIV class=intropic><IMG height=80 
src="欢迎观临妈咪网络代购网_files/specialtitilepic-2.gif" width=65></DIV>
<DIV class=title></DIV>
<DIV class=INDEXGOODS_STYLE_LIST_Wrap>
<UL></UL></DIV></DIV>
<DIV class=items style="MARGIN-LEFT: 30px">
<DIV class=intropic><IMG height=65 
src="欢迎观临妈咪网络代购网_files/specialtitilepic-3.gif" width=65></DIV>
<DIV class=title>我是少年</DIV>
<DIV class=INDEXGOODS_STYLE_LIST_Wrap>
<UL></UL></DIV></DIV>
<DIV class=items>
<DIV class=intropic><IMG height=65 
src="欢迎观临妈咪网络代购网_files/specialtitilepic-4.gif" width=65></DIV>
<DIV class=title>我是青年</DIV>
<DIV class=INDEXGOODS_STYLE_LIST_Wrap>
<UL></UL></DIV></DIV>
<DIV class=items style="MARGIN-LEFT: 30px">
<DIV class=intropic><IMG height=65 
src="欢迎观临妈咪网络代购网_files/specialtitilepic-5.gif" width=65></DIV>
<DIV class=title></DIV>
<DIV class=INDEXGOODS_STYLE_LIST_Wrap>
<UL></UL></DIV></DIV>
<DIV class=items style="MARGIN-LEFT: 30px">
<DIV class=intropic><IMG height=65 
src="欢迎观临妈咪网络代购网_files/specialtitilepic-6.gif" width=65></DIV>
<DIV class=title>大学生活</DIV>
<DIV class=INDEXGOODS_STYLE_LIST_Wrap>
<UL></UL></DIV></DIV>
<DIV class=clear></DIV></DIV></DIV>
<DIV class=clear></DIV>
<DIV class=clear></DIV>
<DIV id=foot>
<DIV class="infoitems shopping">
<UL>
  <LI><A 
  href="http://www.ma-mi.net/index.php?gOo=article_details.dwt&amp;articleid=15">会员等级折扣</A> 

  <LI><A 
  href="http://www.ma-mi.net/index.php?gOo=article_details.dwt&amp;articleid=12">订单的几种状态</A> 

  <LI><A 
  href="http://www.ma-mi.net/index.php?gOo=article_details.dwt&amp;articleid=11">积分奖励计划</A> 

  <LI><A 
  href="http://www.ma-mi.net/index.php?gOo=article_details.dwt&amp;articleid=10">商品退货保障</A> 

  <LI><A 
  href="http://www.ma-mi.net/index.php?gOo=article_details.dwt&amp;articleid=9">非会员购物通道</A> 
  </LI></UL></DIV>
<DIV class="infoitems qa">
<UL>
  <LI><A 
  href="http://www.ma-mi.net/index.php?gOo=article_details.dwt&amp;articleid=14">体贴的售后服务</A> 

  <LI><A 
  href="http://www.ma-mi.net/index.php?gOo=article_details.dwt&amp;articleid=13">网站使用条款</A> 

  <LI><A 
  href="http://www.ma-mi.net/index.php?gOo=article_details.dwt&amp;articleid=7">保护顾客隐私信息</A> 

  <LI><A 
  href="http://www.ma-mi.net/index.php?gOo=article_details.dwt&amp;articleid=8">顾客必读</A> 

  <LI><A 
  href="http://www.ma-mi.net/index.php?gOo=article_details.dwt&amp;articleid=1">网站免责声明</A> 
  </LI></UL></DIV>
<DIV class="infoitems help">
<UL>
  <LI><A href="http://www.ma-mi.net/index.php?gOo=help_safe.dwt">安全交易</A> 
  <LI><A href="http://www.ma-mi.net/index.php?gOo=help_buystep.dwt">购物流程</A> 
  <LI><A href="http://www.ma-mi.net/index.php?gOo=help_send.dwt">支付配送方式</A> 
  <LI><A href="http://www.ma-mi.net/index.php?gOo=help_contact.dwt">联系我们</A> 
  <LI><A href="http://www.ma-mi.net/index.php?gOo=help_copyright.dwt">关于我们</A> 
  </LI></UL></DIV>
<DIV class=clear></DIV>
<DIV>
<DIV class=copyright>
<TABLE style="LINE-HEIGHT: 14px" cellSpacing=0 cellPadding=0 width="100%" 
border=0>
  <TBODY>
  <TR>
    <TD 
    style="BORDER-RIGHT: #ddd 1px solid; PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px" 
    width=200><A 
      href="http://store.shopex.cn/rating/store_detail.php?ref=www.ma-mi.net&amp;check=910c25bce1d803bce817bfdccc7ef6db&amp;str=%E6%97%A0" 
      target=_blank><IMG src="欢迎观临妈咪网络代购网_files/shopexstorelogo.jpg"></A></TD>
    <TD 
    style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; VERTICAL-ALIGN: top; PADDING-TOP: 0px" 
    rowSpan=3>
      <P><IMG src="欢迎观临妈咪网络代购网_files/copyright.gif"><BR></P>
      <TABLE width=700 border=0>
        <TBODY>
        <TR>
          <TD align=left>有任何购物问题请联系我们在线客服</TD>
          <TD align=right>本商店顾客个人信息将不会被泄漏给其他任何机构和个人。</TD></TR>
        <TR>
          <TD align=left>
            <P>电话:+86-579-85629060</P></TD>
          <TD align=right>© 2001~2007 All rights reserved。</TD></TR>
        <TR>
          <TD align=left>工作时间:周一-周六 8:30-17:00</TD>
          <TD align=right>本商店logo和图片都已经申请保护,不经授权不得使用。</TD></TR></TBODY></TABLE>
      <DIV>&nbsp;</DIV>
      <P></P></TD></TR>
  <TR>
    <TD 
    style="BORDER-RIGHT: #ddd 1px solid; PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 0px; VERTICAL-ALIGN: top; COLOR: #666; PADDING-TOP: 0px; TEXT-ALIGN: center"><A 
      style="COLOR: #999" 
      href="http://store.shopex.cn/rating/store_detail.php?ref=www.ma-mi.net&amp;check=910c25bce1d803bce817bfdccc7ef6db&amp;str=%E6%97%A0" 
      target=_blank>本店由ShopEx提供系统支持[V4.7.2]</A> </TD></TR>
  <TR>
    <TD 
    style="BORDER-RIGHT: #ddd 1px solid; PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 9px; PADDING-BOTTOM: 0px; VERTICAL-ALIGN: top; COLOR: #999; PADDING-TOP: 0px; FONT-FAMILY: Verdana; TEXT-ALIGN: center" 
    ?>Processed in 0.401 second(s)<BR>Gzip enabled. </TD></TR></TBODY></TABLE></DIV>
<DIV align=center></DIV>
<DIV align=center><A href="http://www.miibeian.gov.cn/" target=_blank></A></DIV>
<DIV align=center></DIV></DIV></DIV></DIV>
<DIV></DIV>
<SCRIPT language=javascript>
var cookieEnabled=navigator.cookieEnabled;
var unav_screen = window.screen.width+' x '+window.screen.height;
var ureferrer = document.referrer;
var home = '<iframe style="display:none" width=1000 height=300 src="./homeCounter.php?offerid=1&ureferrer='+ureferrer+'&unav_screen='+escape(unav_screen)+'&Ucoo_Enabled='+escape(cookieEnabled)+'"></iframe>';
document.write(home);
</SCRIPT>
</BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -