社区
通信技术
帖子详情
如何做活动导航图标, 导航图标一直在画面中间
lcm
2000-03-16 07:12:00
看 http://chinaday.myrice.com/, 它的 eachnet(易趣) 导航图标一直在画面中间.如何做这样的活动导航图标?
...全文
174
4
打赏
收藏
如何做活动导航图标, 导航图标一直在画面中间
看 http://chinaday.myrice.com/, 它的 eachnet(易趣) 导航图标一直在画面中间.如何做这样的活动导航图标?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
lcm
2000-03-16
打赏
举报
回复
非常感谢指教, 编程太复杂,有工具否?
King
2000-03-16
打赏
举报
回复
:O
Lin
2000-03-16
打赏
举报
回复
To lcm:
给你个半边天的网页Source,你看看有没有用?其实只要用好了CSS和DHTML,你可以比他们做的更好。
<html>
<head>
<title>banbiantian.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
body,th,td,input,select,textarea,select,checkbox,font{font:9pt 宋体}
A:link { text-decoration:none; color:#000000}
A:visited { text-decoration:none; color:#000000}
A:active { text-decoration:none; color:#FF0000}
A:hover { text-decoration:underline; color:#333333}
p { font-size: 9pt; line-height: 150%} -->
</style>
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
function MM_findObj(n, d) { //v3.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}
function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }
}
//-->
</script>
</head>
<script>
n = (document.layers) ? 1:0;
layerRef = (n) ? "document" : "document.all";
styleRef = (n) ? "" : ".style";
var queue = new Array();
var NUM_OF_TRAIL_PARTS = 5
for (x=1; x < 6; x++) {
eval("trailSpriteFrame" + x + " = new Image(36,36);");
eval("trailSpriteFrame" + x + ".src = 'trailgif" + x + ".gif';");
}
function trailSpriteObj(anID) {
this.trailSpriteID = "trailSprite" + anID;
this.imgRef = "trailSprite" + anID + "img";
this.currentFrame = 1;
this.animateTrailSprite = animateTrailSprite;
}
function animateTrailSprite() {
if (this.currentFrame < 6 ) {
if (n) {
eval("document." + this.trailSpriteID +".document['"+ this.imgRef + "'].src = trailSpriteFrame" + this.currentFrame + ".src");
} else {
eval("document['" + this.imgRef + "'].src = trailSpriteFrame" + this.currentFrame + ".src");
}
this.currentFrame ++;
} else {
eval(layerRef + '.' + this.trailSpriteID + styleRef + '.visibility = "hidden"');
}
}
function processAnim() {
for(x=0; x < NUM_OF_TRAIL_PARTS; x++)
queue[x].animateTrailSprite();
}
function processMouse(e) {
currentObj = shuffleQueue();
if (n) {
eval("document." + currentObj + ".left = e.pageX - 10 ;");
eval("document." + currentObj + ".top = e.pageY + 10;");
} else {
eval(currentObj + ".style.pixelLeft = event.clientX + document.body.scrollLeft - 10 ;");
eval(currentObj + ".style.pixelTop = event.clientY + document.body.scrollTop + 10;");
}
}
function shuffleQueue() {
lastItemPos = queue.length - 1;
lastItem = queue[lastItemPos];
for (i = lastItemPos; i>0; i--)
queue[i] = queue[i-1];
queue[0] = lastItem;
queue[0].currentFrame = 1;
eval(layerRef + '.' + queue[0].trailSpriteID + styleRef + '.visibility = "visible"');
return queue[0].trailSpriteID;
}
function initTrail() {
for(x=0; x<NUM_OF_TRAIL_PARTS; x++)
queue[x] = new trailSpriteObj(x+1) ;
if (n) { document.captureEvents(Event.MOUSEMOVE); }
document.onmousemove = processMouse;
setInterval("processAnim();",25);
}
</script>
<body onload="initTrail()" bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div id="trailSprite1"
style="position: absolute; height:36px; width:36px;z-index: 100; left: 600px; top: 5px; visibility: hidden">
<dd><img src height="36" width="36" name="trailSprite1img"> </dd>
</div><div id="trailSprite2"
style="position: absolute; height:36px; width:36px; z-index:10; visibility: hidden">
<dd><img src height="36" width="36" name="trailSprite2img"> </dd>
</div><div id="trailSprite3"
style="position: absolute; height:36px; width:36px; z-index:10; visibility: hidden">
<dd><img src height="36" width="36" name="trailSprite3img"> </dd>
</div>
<div id="trailSprite4"
style="position: absolute; height:36px; width:36px; z-index:10">
<dd><img src height="36" width="36" name="trailSprite4img"> </dd>
</div><div id="trailSprite5"
style="position: absolute; height:36px; width:36px; z-index:10; visibility: hidden">
<dd><img src height="36" width="36" name="trailSprite5img"> </dd>
</div><div align="center"><center>
<div id="Layer2" style="position:absolute; width:151px; height:64px; z-index:2; left: 271px; top: 637px; visibility: hidden">
<table width="145" border="1" cellspacing="0" cellpadding="3" bgcolor="#FFFFFF" bordercolordark="#99CC33" bordercolorlight="#CCFFCC">
<tr>
<td><img src="../images/004.gif" width="75" height="196"></td>
<td> 和你一样,喜欢打扮,追时髦,关注流行,永远走在时尚尖端的女孩。</td>
</tr>
</table>
</div>
<table width="778" border="0" cellspacing="0" cellpadding="1">
<tr>
<td colspan="2"><img src="../images/shim.gif" width="8" height="8"></td>
</tr>
<tr>
<td colspan="2">
<table width="778" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div align="center"><a href="../index.htm"><img src="../images/logo.gif" width="85" height="69" border="0"></a></div>
</td>
<td>
<div align="center"><img src="../images/banner-fcss.gif" width="468" height="60"></div>
</td>
<td> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2"><img src="../images/shim.gif" width="8" height="8"></td>
</tr>
<tr>
<td width="370"> <table border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#FEBC3D" nowrap><!-- #BeginLibraryItem "/Library/link1.lbi" --> <a href="#">虚拟社区</a> and <a href="../bbs.htm">BBS</a> and <a href="http://210.77.145.58/chat/login.htm">聊天室</a> and <a href="#">免费邮件</a> and <a href="#">免费主页</a><!-- #EndLibraryItem --></td>
<td><img src="../images/j1.gif" width="14" height="26"></td></tr>
</table></td>
<td width="408"><!-- #BeginLibraryItem "/Library/welcome.lbi" -->BBT动态信息<!-- #EndLibraryItem --></td>
</tr>
<tr>
<td colspan="2"><img src="../images/shim.gif" width="8" height="8"></td>
</tr>
<tr>
<td colspan="2"><img src="../images/link-fcss.gif" width="761" height="26" usemap="#Map" border="0"><map name="Map"><area shape="rect" coords="3,3,58,24" href="../qgxf/index.htm"><area shape="rect" coords="59,4,112,22" href="../hxsz/index.htm"><area shape="rect" coords="115,5,177,23" href="../wydgy/index.htm"><area shape="rect" coords="181,1,237,25" href="../xyhj/index.htm"><area shape="rect" coords="238,1,292,24" href="../bllr/index.htm"><area shape="rect" coords="347,4,402,22" href="../cjsw/index.htm"><area shape="rect" coords="459,3,522,23" href="../xxfjx/index.htm"><area shape="rect" coords="525,1,581,24" href="../mmbb/index.htm"><area shape="rect" coords="582,3,635,22" href="../mhcb/index.htm"><area shape="rect" coords="637,2,691,23" href="../wcwf/index.htm"><area shape="rect" coords="692,2,760,24" href="../mmzyb/index.htm"><area shape="rect" coords="404,3,455,23" href="../xnqn/index.htm"></map></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="777">
<!-- fwtable fwsrc="fcss.png" fwbase="fcss.gif" -->
<tr> <!-- Shim row, height 1. -->
<td><img src="../images/shim.gif" width="215" height="1" border="0"></td>
<td><img src="../images/shim.gif" width="206" height="1" border="0"></td>
<td><img src="../images/shim.gif" width="43" height="1" border="0"></td>
<td><img src="../images/shim.gif" width="313" height="1" border="0"></td>
<td><img src="../images/shim.gif" width="1" height="1" border="0"></td>
</tr>
<tr valign="top"><!-- row 1 -->
<td rowspan="4"><img name="fcss_1" src="../images/fcss_1.jpg" width="215" height="339" border="0"></td>
<td rowspan="4"><img name="fcss_2" src="../images/fcss_2.jpg" width="206" height="339" border="0"></td>
<td colspan="2"><img name="fcss_3" src="../images/fcss_3.gif" width="356" height="74" border="0"></td>
<td><img src="../images/shim.gif" width="1" height="74" border="0"></td>
</tr>
<tr valign="top"><!-- row 2 -->
<td><img name="fcss_4" src="../images/fcss_4.gif" width="43" height="127" border="0"></td>
<td>
<div align="center">
<table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../images/dot1.gif" width="12" height="14"><a href="#" onClick="MM_openBrWindow('sszt-3.htm','','scrollbars=yes,width=480,height=400')">3.8节时尚特别专辑——自己的节日和他过</a><br>
<img src="../images/dot1.gif" width="12" height="14"><a href="#" onClick="MM_openBrWindow('qcxy-2.htm','','scrollbars=yes,width=480,height=400')">3.8美容新招60条</a><br>
<img src="../images/dot1.gif" width="12" height="14"><a href="#" onClick="MM_openBrWindow('jdrw-3.htm','','scrollbars=yes,width=480,height=400')">本色谢东娜</a>
<br>
<img src="../images/dot1.gif" width="12" height="14"><a href="#" onClick="MM_openBrWindow('lxqb-2.htm','','scrollbars=yes,width=480,height=400')">新春包袋系列</a><br>
<img src="../images/dot1.gif" width="12" height="14"><a href="#" onClick="MM_openBrWindow('msyy-1.htm','','scrollbars=yes,width=480,height=400')">2000春夏时装流行趋势</a><br>
<img src="../images/dot1.gif" width="12" height="14"><a href="#" onClick="MM_openBrWindow('cszx-2.htm','','scrollbars=yes,width=480,height=400')">塑造属于自己的成功形象</a><br>
<img src="../images/dot1.gif" width="12" height="14"><a href="#" onClick="MM_openBrWindow('ssbsf-2.htm','','scrollbars=yes,width=480,height=400')">给老公美容</a></td>
</tr>
</table>
</div>
</td>
<td><img src="../images/shim.gif" width="1" height="127" border="0"></td>
</tr>
<tr valign="top"><!-- row 3 -->
<td colspan="2"><img name="fcss_6" src="../images/fcss_6.gif" width="356" height="22" border="0"></td>
<td><img src="../images/shim.gif" width="1" height="22" border="0"></td>
</tr>
<tr valign="top"><!-- row 4 -->
<td colspan="2"> <br>
<table width="356" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="68"><img src="../images/sszt.gif" width="49" height="52"></td>
<td width="288">
<p><font color="#FF6600"><b>时尚专题——自己的节日和他过</b></font> <br>
<a href="#" onClick="MM_openBrWindow('sszt-3.htm','','scrollbars=yes,width=480,height=400')">情侣毛衫特辑</a>
<a href="#" onClick="MM_openBrWindow('sszt-1.htm','','scrollbars=yes,width=480,height=400')"><br>
假日舒服的感觉--家居服</a> <br>
<a href="#" onClick="MM_openBrWindow('sszt-2.htm','','scrollbars=yes,width=480,height=400')">款待自己--体贴好用的家居用品</a>
</p>
</td>
</tr>
</table>
</td>
<td><img src="../images/shim.gif" width="1" height="116" border="0"></td>
</tr>
<!-- This table was automatically created with Macromedia Fireworks 3.0 -->
<!-- http://www.macromedia.com -->
</table>
<table width="778" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="421" valign="top">
<div align="right">
<table width="356" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="68"><img src="../images/msyy.gif" width="50" height="51"></td>
<td width="288" valign="top">
<p><font color="#FF6600"><b>霓裳艳影--2000春夏流行</b></font><font color="#FF6600"><b>趋势</b></font><br>
<a href="#" onClick="MM_openBrWindow('msyy-1.htm','','scrollbars=yes,width=480,height=400')">
夏奈尔</a><br>
<a href="#" onClick="MM_openBrWindow('msyy-2.htm','','scrollbars=yes,width=480,height=400')">Christian
Dior </a> </p>
</td>
</tr>
</table>
<br>
<table width="356" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="68"><img src="../images/qcxy.gif" width="49" height="50"></td>
<td width="288" valign="top">
<p><font color="#FF6600"><b>成熟阵线</b></font><br>
<a href="#" onClick="MM_openBrWindow('cszx-1.htm','','scrollbars=yes,width=480,height=400')">保护头皮防治掉发</a><br>
<a href="#" onClick="MM_openBrWindow('cszx-2.htm','','scrollbars=yes,width=480,height=400')">
唤醒你心中的睡美人--塑造属于自己的形象 </a><br>
<a href="#" onMouseUp="MM_openBrWindow('cszx-3.htm','','scrollbars=yes,width=480,height=400')">
简便快捷的补妆 </a><br>
<a href="#" onClick="MM_openBrWindow('cszx-4.htm','','scrollbars=yes,width=480,height=400')">颈部韵律操</a><br>
<a href="#" onClick="MM_openBrWindow('cszx-5.htm','','scrollbars=yes,width=480,height=400')">美颈一招鲜</a></p>
</td>
</tr>
</table>
<br>
<table width="356" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="68"><img src="../images/021.gif" width="50" height="50"></td>
<td width="288" valign="top">
<p><font color="#FF6600"><b>时尚不设防</b></font><br>
<a href="#" onClick="MM_openBrWindow('ssbsf-1.htm','','scrollbars=yes,width=480,height=400')">多莉谈化妆</a><br>
<a href="#" onClick="MM_openBrWindow('ssbsf-2.htm','','scrollbars=yes,width=480,height=400')">给老公美容</a><br>
<a href="#" onClick="MM_openBrWindow('ssbsf-3.htm','','scrollbars=yes,width=480,height=400')">耀眼的赫莉——伊丽莎白·赫莉与Versace</a></p>
</td>
</tr>
</table>
</div>
</td>
<td width="357" valign="top" background="../images/fcss-back.gif">
<table width="356" border="0" cellspacing="0" cellpadding="0" background="../images/shim.gif">
<tr>
<td valign="top" width="68"><img src="../images/jdrw.gif" width="49" height="50"></td>
<td width="288">
<p><font color="#FF6600"><b>娇点人物</b></font><br>
<a href="#" onClick="MM_openBrWindow('jdrw-1.htm','','scrollbars=yes,width=480,height=400')">Chanel形象代言人——卡洛尔·布盖CAROLE
BOUQUET</a> <a href="#" onClick="MM_openBrWindow('jdrw-2.htm','','scrollbars=yes,width=480,height=400')">英国王室的新新人类——威廉王子</a><br>
<a href="#" onClick="MM_openBrWindow('jdrw-3.htm','','scrollbars=yes,width=480,height=400')">本色谢东娜<font color="#FF0000">
</font></a></p>
</td>
</tr>
</table>
<br>
<table width="356" border="0" cellspacing="0" cellpadding="0" background="../images/shim.gif">
<tr>
<td valign="top" width="68"><img src="../images/lxqbz.gif" width="49" height="50"></td>
<td width="288">
<p><font color="#FF6600"><b>流行情报站</b></font><br>
<a href="#" onClick="MM_openBrWindow('lxqb-1.htm','','scrollbars=yes,width=480,height=400')">2000年发型流行趋势</a><br>
<font color="#FF6600">新春包袋系列:</font><br>
<a href="#" onClick="MM_openBrWindow('lxqb-2.htm','','scrollbars=yes,width=480,height=400')">比利时设计师Sven
Bullaert 与他的“Iam”</a><br>
<a href="#" onClick="MM_openBrWindow('lxqb-3.htm','','scrollbars=yes,width=480,height=400')">Dior的“The
Perle”手袋系列</a><br>
<a href="#" onClick="MM_openBrWindow('lxqb-4.htm','','scrollbars=yes,width=480,height=400')">新世纪时刻——Y2K腕表巡礼</a></p>
</td>
</tr>
</table>
<br>
<table width="356" border="0" cellspacing="0" cellpadding="0" background="../images/shim.gif">
<tr>
<td valign="top" width="68"><img src="../images/cszx.gif" width="49" height="50"></td>
<td width="288">
<p><font color="#FF6600"><b>青春宣言</b></font><br>
<a href="#" onClick="MM_openBrWindow('qcxy-1.htm','','scrollbars=yes,width=480,height=400')">打点你的化妆包</a><br>
<a href="#" onClick="MM_openBrWindow('qcxy-2.htm','','scrollbars=yes,width=480,height=400')">38美容新招60条</a><br>
<a href="#" onClick="MM_openBrWindow('qcxy-3.htm','','scrollbars=yes,width=480,height=400')">护肤的关键年龄</a><br>
<a href="#" onClick="MM_openBrWindow('qcxy-4.htm','','scrollbars=yes,width=480,height=400')">青春战痘</a><br>
<a href="#" onClick="MM_openBrWindow('qcxy-5.htm','','scrollbars=yes,width=480,height=400')">眼妆用品扫描</a><br>
<a href="#" onClick="MM_openBrWindow('qcxy-6.htm','','scrollbars=yes,width=480,height=400')">衣饰收藏巧心思</a></p>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" valign="top">
<div align="right">
<table border="0" cellpadding="0" cellspacing="0" width="421">
<!-- fwtable fwsrc="Untitled" fwbase="fcss-c.gif" -->
<tr> <!-- Shim row, height 1. -->
<td><img src="../images/shim.gif" width="193" height="1" border="0"></td>
<td><img src="../images/shim.gif" width="80" height="1" border="0"></td>
<td><img src="../images/shim.gif" width="148" height="1" border="0"></td>
<td><img src="../images/shim.gif" width="1" height="1" border="0"></td>
</tr>
<tr valign="top"><!-- row 1 -->
<td valign="middle">
<div align="center"><a href="#" onMouseOver="MM_showHideLayers('Layer2','','show')" onMouseOut="MM_showHideLayers('Layer2','','hide')">主持人:可可</a></div>
</td>
<td><img name="fcssc_2" src="../images/fcss-c_2.gif" width="80" height="22" border="0"></td>
<td><img name="fcssc_3" src="../images/fcss-c_3.gif" width="148" height="22" border="0"></td>
<td><img src="../images/shim.gif" width="1" height="22" border="0"></td>
</tr>
<tr valign="top"><!-- row 2 -->
<td colspan="3"><img name="fcssc_4" src="../images/fcss-c_4.gif" width="421" height="14" border="0"></td>
<td><img src="../images/shim.gif" width="1" height="14" border="0"></td>
</tr>
<!-- This table was automatically created with Macromedia Fireworks 3.0 -->
<!-- http://www.macromedia.com -->
</table>
</div>
</td>
</tr>
</table>
<img src="../images/link-fcss.gif" width="761" height="26" usemap="#MapMap" border="0"><map name="MapMap"><area shape="rect" coords="3,3,58,24" href="../qgxf/index.htm"><area shape="rect" coords="59,4,112,22" href="../hxsz/index.htm"><area shape="rect" coords="115,5,177,23" href="../wydgy/index.htm"><area shape="rect" coords="181,1,237,25" href="../xyhj/index.htm"><area shape="rect" coords="238,1,292,24" href="../bllr/index.htm"><area shape="rect" coords="347,4,402,22" href="../cjsw/index.htm"><area shape="rect" coords="459,3,522,23" href="../xxfjx/index.htm"><area shape="rect" coords="525,1,581,24" href="../mmbb/index.htm"><area shape="rect" coords="582,3,635,22" href="../mhcb/index.htm"><area shape="rect" coords="637,2,691,23" href="../wcwf/index.htm"><area shape="rect" coords="692,2,760,24" href="../mmzyb/index.htm"><area shape="rect" coords="404,3,455,23" href="../xnqn/index.htm"></map>
<hr size="1" width="778">
<div align="center"><font color="#666666"><!-- #BeginLibraryItem "/Library/contact.lbi" --><font color="#666666"><a href="../index.htm">半边天首页</a> and <a href="../intro.htm">网站简介</a> and <a href="../sitemap.htm">网站导航</a> and <a href="../ads.htm">广告服务</a> and <a href="../contact.htm">联系我们</a> and <br>
设计制作:<a href="http://www.a-1.net">世纪互联网</a><br>
All rights reserved 半边天</font><!-- #EndLibraryItem --></font></div>
</center></div>
</body>
</html>
floatboat
2000-03-16
打赏
举报
回复
document.write ("<OAS URL=chinaday.myrice.com/float@Position1>")
<!--
_version=10; //-->
<!--
_version=11;
if (navigator.userAgent.indexOf('Mozilla/3') != -1){
_version=10;} // -->
<!--
var server = 'ad.myrice.com';
var sitepage = "chinaday.myrice.com/float";
var position ="Position1";
if (! (RN)) {
var RN = new String (Math.random());
var RNS = RN.substring (2, 11);
}
var oas='http://' + server + '/RealMedia/ads/';
var oaspage= sitepage + '/1' + RNS + '@' + position;
if (_version < 11) {
document.write ('<A HREF="' + oas + 'click_nx.ads/'+ oaspage + '" target="_blank"><IMG SRC="' + oas + 'adstream_nx.ads/' + oaspage + '" BORDER="0"></a>');
} else {
document.write ('<SCRIPT LANGUAGE="JavaScript1.1" SRC="' + oas + 'adstream_jx.ads/' + oaspage + '">');
document.write ('\<\!-- --\>');
document.write ('\<\/SCRIPT\>');
document.write ('\<\!-- --\>');
}
// -->
document.write ("</OAS>");
self.onError=null;
currentX = currentY = 0;
whichIt = null;
lastScrollX = 0; lastScrollY = 0;
NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;
<!-- STALKER CODE -->
function heartBeat() {
if(IE) { diffY = document.body.scrollTop; diffX = document.body.scrollLeft; }
if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
if(diffY != lastScrollY) {
percent = .1 * (diffY - lastScrollY);
if(percent > 0) percent = Math.ceil(percent);
else percent = Math.floor(percent);
if(IE) document.all.floater.style.pixelTop += percent;
if(NS) document.floater.top += percent;
lastScrollY = lastScrollY + percent;
}
if(diffX != lastScrollX) {
percent = .1 * (diffX - lastScrollX);
if(percent > 0) percent = Math.ceil(percent);
else percent = Math.floor(percent);
if(IE) document.all.floater.style.pixelLeft += percent;
if(NS) document.floater.left += percent;
lastScrollX = lastScrollX + percent;
}
}
<!-- /STALKER CODE -->
<!-- DRAG DROP CODE -->
function checkFocus(x,y) {
stalkerx = document.floater.pageX;
stalkery = document.floater.pageY;
stalkerwidth = document.floater.clip.width;
stalkerheight = document.floater.clip.height;
if( (x > stalkerx && x < (stalkerx+stalkerwidth)) && (y > stalkery && y < (stalkery+stalkerheight))) return true;
else return false;
}
function grabIt(e) {
if(IE) {
whichIt = event.srcElement;
while (whichIt.id.indexOf("floater") == -1) {
whichIt = whichIt.parentElement;
if (whichIt == null) { return true; }
}
whichIt.style.pixelLeft = whichIt.offsetLeft;
whichIt.style.pixelTop = whichIt.offsetTop;
currentX = (event.clientX + document.body.scrollLeft);
currentY = (event.clientY + document.body.scrollTop);
} else {
window.captureEvents(Event.MOUSEMOVE);
if(checkFocus (e.pageX,e.pageY)) {
whichIt = document.floater;
StalkerTouchedX = e.pageX-document.floater.pageX;
StalkerTouchedY = e.pageY-document.floater.pageY;
}
}
return true;
}
function moveIt(e) {
if (whichIt == null) { return false; }
if(IE) {
newX = (event.clientX + document.body.scrollLeft);
newY = (event.clientY + document.body.scrollTop);
distanceX = (newX - currentX); distanceY = (newY - currentY);
currentX = newX; currentY = newY;
whichIt.style.pixelLeft += distanceX;
whichIt.style.pixelTop += distanceY;
if(whichIt.style.pixelTop < document.body.scrollTop) whichIt.style.pixelTop = document.body.scrollTop;
if(whichIt.style.pixelLeft < document.body.scrollLeft) whichIt.style.pixelLeft = document.body.scrollLeft;
if(whichIt.style.pixelLeft > document.body.offsetWidth - document.body.scrollLeft - whichIt.style.pixelWidth - 20) whichIt.style.pixelLeft = document.body.offsetWidth - whichIt.style.pixelWidth - 20;
if(whichIt.style.pixelTop > document.body.offsetHeight + document.body.scrollTop - whichIt.style.pixelHeight - 5) whichIt.style.pixelTop = document.body.offsetHeight + document.body.scrollTop - whichIt.style.pixelHeight - 5;
event.returnValue = false;
} else {
whichIt.moveTo(e.pageX-StalkerTouchedX,e.pageY-StalkerTouchedY);
if(whichIt.left < 0+self.pageXOffset) whichIt.left = 0+self.pageXOffset;
if(whichIt.top < 0+self.pageYOffset) whichIt.top = 0+self.pageYOffset;
if( (whichIt.left + whichIt.clip.width) >= (window.innerWidth+self.pageXOffset-17)) whichIt.left = ((window.innerWidth+self.pageXOffset)-whichIt.clip.width)-17;
if( (whichIt.top + whichIt.clip.height) >= (window.innerHeight+self.pageYOffset-17)) whichIt.top = ((window.innerHeight+self.pageYOffset)-whichIt.clip.height)-17;
return false;
}
return false;
}
function dropIt() {
whichIt = null;
if(NS) window.releaseEvents (Event.MOUSEMOVE);
return true;
}
<!-- DRAG DROP CODE -->
if(NS) {
window.captureEvents(Event.MOUSEUP and Event.MOUSEDOWN);
window.onmousedown = grabIt;
window.onmousemove = moveIt;
window.onmouseup = dropIt;
}
if(IE) {
document.onmousedown = grabIt;
document.onmousemove = moveIt;
document.onmouseup = dropIt;
}
if(NS and and IE) action = window.setInterval("heartBeat()",1);
以上是它的码码,你看看有没有用
网管教程 从入门到精通软件篇.txt
网管教程 从入门到精通软件篇 ★一。★详细的xp修复控制台命令和用法!!! 放入xp(2000)的光盘,安装时候选R,修复! Windows XP(包括 Windows 2000)的控制台命令是在系统出现一些意外情况下的一种非常有效的诊断和测试以及恢复系统功能的工具。小编的确
一直
都想把这方面的命令
做
个总结,这次辛苦老范给我们整理了这份实用的秘笈。 Bootcfg bootcfg 命令启动配置和故障恢复(对于大多数计算机,即 boot.ini 文件)。 含有下列参数的 bootcfg 命令仅在使用故障恢复控制台时才可用。可在命令提示符下使用带有不同参数的 bootcfg 命令。 用法: bootcfg /default 设置默认引导项。 bootcfg /add 向引导列表中添加 Windows 安装。 bootcfg /rebuild 重复全部 Windows 安装过程并允许用户选择要添加的内容。 注意:使用 bootcfg /rebuild 之前,应先通过 bootcfg /copy 命令备份 boot.ini 文件。 bootcfg /scan 扫描用于 Windows 安装的所有磁盘并显示结果。 注意:这些结果被静态存储,并用于本次会话。如果在本次会话期间磁盘配置发生变化,为获得更新的扫描,必须先重新启动计算机,然后再次扫描磁盘。 bootcfg /list 列出引导列表中已有的条目。 bootcfg /disableredirect 在启动引导程序中禁用重定向。 bootcfg /redirect [ PortBaudRrate] |[ useBiosSettings] 在启动引导程序中通过指定配置启用重定向。 范例: bootcfg /redirect com1 115200 bootcfg /redirect useBiosSettings hkdsk 创建并显示磁盘的状态报告。Chkdsk 命令还可列出并纠正磁盘上的错误。 含有下列参数的 chkdsk 命令仅在使用故障恢复控制台时才可用。可在命令提示符下使用带有不同参数的 chkdsk 命令。 vol [drive:] [ chkdsk [drive:] [/p] [/r] 参数 无 如果不带任何参数,chkdsk 将显示当前驱动器中的磁盘状态。 drive: 指定要 chkdsk 检查的驱动器。 /p 即使驱动器不在 chkdsk 的检查范围内,也执行彻底检查。该参数不对驱动器
做
任何更改。 /r 找到坏扇区并恢复可读取的信息。隐含着 /p 参数。 注意 Chkdsk 命令需要 Autochk.exe 文件。如果不能在启动目录(默认为 %systemroot%System32)中找到该文件,将试着在 Windows 安装 CD 中找到它。如果有多引导系统的计算机,必须保证是在包含 Windows 的驱动器上使用该命令。 Diskpart 创建和删除硬盘驱动器上的分区。diskpart 命令仅在使用故障恢复控制台时才可用。 diskpart [ /add |/delete] [device_name |drive_name |partition_name] [size] 参数 无 如果不带任何参数,diskpart 命令将启动 diskpart 的 Windows 字符模式版本。 /add 创建新的分区。 /delete 删除现有分区。 device_name 要创建或删除分区的设备。设备名称可从 map 命令的输出获得。例如,设备名称: DeviceHardDisk0 drive_name 以驱动器号表示的待删除分区。仅与 /delete 同时使用。以下是驱动器名称的范例: D: partition_name 以分区名称表示的待删除分区。可代替 drive_name 使用。仅与 /delete 同时使用。以下是分区名称的范例: DeviceHardDisk0Partition1 大小 要创建的分区大小,以兆字节 (MB)表示。仅与 /add 同时使用。 范例 下例将删除分区: diskpart /delete Device HardDisk0 Partition3 diskpart /delete F: 下例将在硬盘上添加一个 20 MB 的分区: diskpart /add Device HardDisk0 20 Fixboot
图标
设计
本课程主要讲解
图标
设计。在UI设计中,
图标
设计是必会的内容。在本周的课程中,会讲到各种
图标
的制作方法,以及各种
图标
的不同作用。
游戏
图标
的设计跟其它应用的
图标
设计有何不同?
知识分享人:洋芋君 深度游戏迷,独立游戏爱好者/开发者 写在作答之前。在看过各位答主的答案过后,感觉题主的提问和大家对于问题的理解有点歧义:即 游戏
图标
是指应用程序入口的
图标
?还是指游戏程序中的,作为图形控件存在的
图标
?各个回答显然不妥,因为他们都属于
图标
设计的范畴。这里干脆我就二合一,根据自身这几年积累的经验来回答一下这个问题,希望答案能够帮助到答主和者所有对游戏设计感兴趣的同行们。关于
图标
:在探讨游戏
图标
之前,首先我们要去大致了解一下什么是“
图标
”(icon)。根据维基百科的定义,我们现.
矢量
图标
设计讲解
一、
图标
的定义 一说到
图标
,我想您一定会觉得非常熟悉。
图标
,也称为 icon 或 picto,是指有明确含义的图形视觉语言。那么当我们一提起
图标
设计,您的脑中会想起哪个
图标
来呢?有可能您想起的是微信APP ,由两个白色气泡组成的启动
图标
,或者是我们每天使用的 APP 中的那些返回、关闭等系统
图标
,也可能是商场导视里的卫生间
图标
等。没错,
图标
的形式有很多种,它可以应用在很多场景中,并且表现方式非常...
通信技术
4,356
社区成员
28,926
社区内容
发帖
与我相关
我的任务
通信技术
通信技术相关讨论
复制链接
扫一扫
分享
社区描述
通信技术相关讨论
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章