国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
qq式的菜單
你把這段代碼拷出去就另存為html文件,直接打開就可以欣賞到qq式的菜單了。



<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>菜單1</title>
<script language=‘JavaScript‘>
var headHeight = 22;var bodyHeight = 202;var objcount = 6;var step = 10;var moving = false;
function showme(obj1, obj2)
{
 if (moving)
  return;
 moving = true;
 for(i=0;i<document.all.tags(‘td‘).length;i++)
  if (document.all.tags(‘td‘)[i].className.indexOf(‘headtd‘) == 0)
   document.all.tags(‘td‘)[i].className = ‘headtd1‘;
 obj2.className = ‘headtd2‘;
 moveme(obj1);
}
function moveme(obj)
{
 idnumber = parseInt(obj.id.substr(4));
 objtop = headHeight * (idnumber - 1);
 objbuttom = bodyHeight + headHeight * (idnumber - 2);
 currenttop = parseInt(obj.style.top);
 if (currenttop >= objbuttom)
 {
  countid = 1;
  for(i=0;i<document.all.tags(‘div‘).length;i++)
   if (document.all.tags(‘div‘)[i].id == ‘item‘+countid+‘body‘)
   {
    obj = document.all.tags(‘div‘)[i];
    objtop = headHeight * (countid - 1);
    if (countid == idnumber)
    {
     moveup(obj,objtop,false);
     break;
    }
    else
     moveup(obj,objtop,true);
    countid++;
   }
 }
 else if ((currenttop >= objtop) && (idnumber < objcount))
 {
  idnumber++;
  countid = objcount;
  for(i=document.all.tags(‘div‘).length-1;i>=0;i--)
   if (document.all.tags(‘div‘)[i].id == ‘item‘+countid+‘body‘)
   {
    obj = document.all.tags(‘div‘)[i];
    objbuttom = bodyHeight + headHeight * (countid - 2);
    if (countid == idnumber)
    {
     movedown(obj,objbuttom,false);
     break;
    }
    else
     movedown(obj,objbuttom,true);
    countid--;
   }
 }
}
function moveup(obj,objtop,ismove)
{
 currenttop = parseInt(obj.style.top);
 if (currenttop > objtop)
 {
  obj.style.top = currenttop - step;
  setTimeout(‘moveup(‘+obj.id+‘,‘+objtop+‘,‘+ismove+‘)‘,1)
  return;
 }
 moving = ismove;
}
function movedown(obj,objbuttom,ismove)
{
 currenttop = parseInt(obj.style.top);
 if (currenttop < objbuttom)
 {
  obj.style.top = currenttop + step;
  setTimeout(‘movedown(‘+obj.id+‘,‘+objbuttom+‘,‘+ismove+‘)‘,1)
  return;
 }
 moving = ismove;
}
</script>

<style type=‘text/css‘>
.headtd1 {  background: #eaeaea; border: 1px outset; border-color: #ffffff #000000 #000000 #ffffff; cursor: hand; font-size: 9pt}.headtd2 {  background: #cccccc; border: 1px outset; border-color: #ffffff #000000 #000000 #ffffff; cursor: hand; font-size: 9pt}.bodytd  {  background: #eeeeee; border: 1px outset; border-color: #ffffff #000000 #000000 #ffffff; font-size: 9pt}
</style>

</head>

<body>
<div id=‘mainboard‘ style=‘position:absolute; left:2px; top:2px; width:120px; height:312px; z-index:1; overflow: hidden; background: #eeeeee;‘> <div id=‘item1body‘ style=‘position:absolute; left:0; top:0; width:120px; height:202px; z-index:2; overflow: hidden‘><table width=‘100%‘ border=‘0‘ height=‘100%‘ cellpadding=‘2‘ cellspacing=‘0‘><tr><td id=‘item1head‘ height=‘20‘ class=‘headtd2‘ onclick=‘showme(item1body,this)‘ align=‘center‘>菜單1</td></tr><tr><td class=‘bodytd‘ align=‘center‘>test</td></tr></table></div><div id=‘item2body‘ style=‘position:absolute; left:0; top:202; width:120px; height:202px; z-index:3; overflow: hidden‘><table width=‘100%‘ border=‘0‘ height=‘100%‘ cellpadding=‘2‘ cellspacing=‘0‘><tr><td id=‘item2head‘ height=‘20‘ class=‘headtd1‘ onclick=‘showme(item2body,this)‘ align=‘center‘>菜單2</td></tr><tr><td class=‘bodytd‘ align=‘center‘>test</td></tr></table></div><div id=‘item3body‘ style=‘position:absolute; left:0; top:224; width:120px; height:202px; z-index:4; overflow: hidden‘><table width=‘100%‘ border=‘0‘ height=‘100%‘ cellpadding=‘2‘ cellspacing=‘0‘><tr><td id=‘item3head‘ height=‘20‘ class=‘headtd1‘ onclick=‘showme(item3body,this)‘ align=‘center‘>菜單3</td></tr><tr><td class=‘bodytd‘ align=‘center‘>test</td></tr></table></div><div id=‘item4body‘ style=‘position:absolute; left:0; top:246; width:120px; height:202px; z-index:5; overflow: hidden‘><table width=‘100%‘ border=‘0‘ height=‘100%‘ cellpadding=‘2‘ cellspacing=‘0‘><tr><td id=‘item4head‘ height=‘20‘ class=‘headtd1‘ onclick=‘showme(item4body,this)‘ align=‘center‘>菜單4</td></tr><tr><td class=‘bodytd‘ align=‘center‘>test</td></tr></table></div><div id=‘item5body‘ style=‘position:absolute; left:0; top:268; width:120px; height:202px; z-index:6; overflow: hidden‘><table width=‘100%‘ border=‘0‘ height=‘100%‘ cellpadding=‘2‘ cellspacing=‘0‘><tr><td id=‘item5head‘ height=‘20‘ class=‘headtd1‘ onclick=‘showme(item5body,this)‘ align=‘center‘>菜單5</td></tr><tr><td class=‘bodytd‘ align=‘center‘>test</td></tr></table></div><div id=‘item6body‘ style=‘position:absolute; left:0; top:290; width:120px; height:202px; z-index:7; overflow: hidden‘><table width=‘100%‘ border=‘0‘ height=‘100%‘ cellpadding=‘2‘ cellspacing=‘0‘><tr><td id=‘item6head‘ height=‘20‘ class=‘headtd1‘ onclick=‘showme(item6body,this)‘ align=‘center‘>菜單6</td></tr><tr><td class=‘bodytd‘ align=‘center‘>test</td></tr></table></div></div>
</body>

</html>

 

本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊舉報。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
如何獲得javascript各種對象(可當(dāng)參考用)
WebViewJavascriptBridge
jquery與正則表達式的應(yīng)用
Web前端面試題目及答案匯總 – 碼農(nóng)網(wǎng)
使用jQuery快速創(chuàng)建一個滾動懸浮的分享菜單
js模仿html5 placeholder
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服