提示:您可以先修改部分代碼再運行
<?xml version="1.0" encoding="gb2312"?><!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=gb2312" /><style type="text/css">body,ol,li{margin:0;padding:0;font-size:12px}img{border:0}#gds_nonstop {position: absolute;z-index: 100;top: 180px;left: 0;width: 194px;height: 192px;background: url(http://219.234.93.146/img/common/gds-through/bg.png) center repeat-x;}#gds_menu {position: absolute;top: 0;right: -26px;background: url(http://219.234.93.146/img/common/gds-through/hide.gif);cursor: hand;}.hut,.hub{height:8px;font-size:0}.hut{background:url(http://219.234.93.146/img/common/gds-through/hu1.gif)}.hub{background:url(http://219.234.93.146/img/common/gds-through/hu2.gif)}.join-gds{height:176px;border:1px solid #f60;border-width:0 1px}.join-gds img{vertical-align:middle}.join-gds ol{list-style:none}.join-gds div{margin:2px auto 10px auto;padding:5px 0;width:160px;border:1px solid #ccc;background:#fff}.join-gds ol,.join-gds div img{margin-left:12px}.join-gds p img{margin:0 12px 0 20px}.join-gds p a{color:#f00}br{line-height:2000px}</style><title>Untitled Document</title></head><body><div id="gds_nonstop"><h3></h3><div class="hut"></div><div class="join-gds"> 加入全球資料同步系統<div><ol><li>第一步 註冊ANCC網站使用者</li> <li>第二步 申請GDS會員卡</li> <li>第三步 綁定GDS會員卡</li></ol> 查看申請記錄</div><p>登入產品資訊註冊系統</p></div><div class="hub"></div></div><script type="text/javascript">/* 中國物品編碼中心(ANCC)網站2005年中期改版 北京標新技術公司開發 檔案:gds-nonstop.js 瀏覽器安全色性:IE5.0/IE5.5/IE6.0; firefox1.0; Netscape8.0; Opera8.0 完成日期:2005/07/21 */var leftNum=-194;var gds=document.getElementById("gds_nonstop");var gds_menu=document.getElementById("gds_menu");gds.style.top="2px";gds.style.left="-194px";function move_right() {if(leftNum<=6) {gds.style.left=leftNum+"px";leftNum=leftNum+10;gds_menu.src="http://219.234.93.146/img/common/gds-through/hide.gif";gds_menu.title="隱藏直通車";setTimeout("move_right()",1);}}function move_left() {if(leftNum>=-194) {gds.style.left=leftNum+"px";leftNum=leftNum-10;gds_menu.src="yun_qi_img/show.gif";gds_menu.title="顯示直通車";setTimeout("move_left()",1);}}function show_hide() {if(leftNum>=6) {leftNum=6;move_left();}else {leftNum=-194;move_right();}}function show_start() {move_right();setTimeout("move_left()",3000);}show_start();gds_menu.onclick=show_hide;//隨屏滾動——從視窗頂部"fromtop"或從底部"frombottom"算起var verticalpos="fromtop";function gds_FloatTopDiv() {//var startX = 6; 忽略left值var startY = 2;var ns = (navigator.appName.indexOf("Netscape") != -1);var d = document;function ml(id) { var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];if(d.layers)el.style=el;//el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";}; 忽略left值el.sP=function(y){this.style.top=y+"px";}; //只取top值//el.x = startX;if (verticalpos=="fromtop")el.y = startY;else {el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;el.y -= startY;}return el;}window.stayTopLeft=function() {if (verticalpos=="fromtop") {var pY = ns ? pageYOffset : document.body.scrollTop;ftlObj.y += (pY + startY - ftlObj.y)/1;}else {pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;ftlObj.y += (pY - startY - ftlObj.y)/1;}//ftlObj.sP(ftlObj.x, ftlObj.y); 忽略left值ftlObj.sP(ftlObj.y); //只取top值setTimeout("stayTopLeft()", 1);}var ftlObj = ml("gds_nonstop");stayTopLeft();}gds_FloatTopDiv();</script><br /></body></html>
提示:您可以先修改部分代碼再運行