谁有http://www.ilisten.cn/首页“常见问题回答“的菜单代码?

jiangxiaochao 2006-04-23 10:45:38
谁有http://www.ilisten.cn/首页“常见问题回答“的菜单代码?
...全文
4403 5 点赞 打赏 收藏 举报
写回复
5 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
x03570227 2006-04-23
复杂
  • 打赏
  • 举报
回复
sxsgssgs 2006-04-23

function setPace(layerName, fromLeft, fromTop, motionSpeed){
eval(layerName).gapLeft = (Math.max(eval(layerName).curLeft, fromLeft) - Math.min(eval(layerName).curLeft, fromLeft))/motionSpeed
eval(layerName).gapTop = (Math.max(eval(layerName).curTop, fromTop) - Math.min(eval(layerName).curTop, fromTop))/motionSpeed
moveAlong(layerName, eval(layerName).gapLeft, eval(layerName).gapTop, fromLeft, fromTop)
}
function FixY(){
if(ie){sidemenu.style.top = document.body.scrollTop+10}
if(ns){sidemenu.top = window.pageYOffset+10}
}

function setCookie(name,value,expiry,path,domain,secure){
var nameString = name + "=" + value;
var expiryString = (expiry == null) ? "" : " ;expires = "+ expiry.toGMTString();
var pathString = (path == null) ? "" : " ;path = "+ path;
var domainString = (domain == null) ? "" : " ;domain = "+ domain;
var secureString = (secure) ?";secure" :"";
document.cookie = nameString + expiryString + pathString + domainString + secureString;
}

function getCookie (name) {
var CookieFound = false;
var start = 0;
var end = 0;
var CookieString = document.cookie;
var i = 0;
while (i <= CookieString.length) {
start = i ;
end = start + name.length;
if (CookieString.substring(start, end) == name){CookieFound = true;break; }
i++;}
if (CookieFound){
start = end + 1;
end = CookieString.indexOf(";",start);
if (end < start)
end = CookieString.length;
return unescape(CookieString.substring(start, end));}
return "";
}

function deleteCookie(name){
var expires = new Date();
expires.setTime(expires.getTime() - 1);
setCookie(name ,"Delete Cookie", expires,null,"127.0.0.1",false);
}

if (getCookie("IlistenMenut")!="Y")
{
//树形导航的JS代码
var expandState = 0;
var expires = new Date();
//expires.setTime(expires.getTime() + 3 * 30 * 24 * 60 * 60 * 1000);
//expires.setTime(expires.getTime() + 60 * 1000);
//setCookie("IlistenMenut","Y",expires,"","127.0.0.1",false)
//deleteCookie("IlistenMenut")
function expand(){
if(expandState == 0){setPace('master', 0, 10, 10); if(ie){document.menutop.src = 'Skins/ilisten/menuo2.gif'}; expandState = 1;}
else{setPace('master', -200, 10, 10); if(ie){document.menutop.src='Skins/ilisten/menuo2.gif'}; expandState = 0;}
}
document.write("<style type=text/css>#master {LEFT: -200px; POSITION: absolute; TOP: 25px; VISIBILITY: visible; Z-INDEX: 999}</style>")
document.write("<table id=master width='218' border='0' cellspacing='0' cellpadding='0' ><tr><td height=55 width=240 background=Skins/ilisten/menutop2.gif><img src=Skins/ilisten/menutop3.gif usemap=#MenuClose border=0><map name=MenuClose><area shape=rect coords='121, 6, 188, 43' href='#' onclick='expires.setTime(expires.getTime() + 7 * 24 * 60 * 60 * 1000);setCookie(\"IlistenMenut\",\"Y\",expires,\"\",\"www.ilisten.cn\",false);self.location.reload();' alt=关闭此菜单 title=关闭此菜单></map></td><td rowspan='2' valign='top'><img id=menu onMouseOver=javascript:expand() border=0 name=menutop src=Skins/ilisten/menuo2.gif></td></tr>");
document.write("<tr><td valign='top'><table width='100%' border='0' cellspacing='3' cellpadding='0'><tr><td height='400' valign='top'><table width=100% height='100%' border=1 cellpadding=0 cellspacing=5 bordercolor='#666666' bgcolor=#E8F1FD style=FILTER: alpha(opacity=90)><tr>");
document.write("<td height='10' align='center' bordercolor='#ecf6f5'><font color=999900><strong>常见问题回答</strong></font></td></tr>");
document.write("<tr><td valign='top' bordercolor='#ecf6f5'><font color='#2666BD'><b>FTP常见错误提示:</b><BR><font color=ff0000>530 Not logged in.</font>用户名密码错误,请仔细检查ftp账号购买处的用户名密码<BR><font color=ff0000>550-Maximum download </font>下载流量已满请继续购买ftp账号</font></td></tr>");
document.write("<tr><td valign='top' bordercolor='#ecf6f5'><font color='#2666BD'><b>我如何下载本站的资源?</b><BR>请先注册登录,到<a href=ftp_index.asp><font color=ff0000><B>FTP账号购买</b></font></a>处购买需要的账号</font></td></tr>");
document.write("<tr><td valign='top' bordercolor='#ecf6f5'><font color='#2666BD'><b>为什么注册了没有获得奖励的100个听币</b></font><BR>因为为了防止作弊,同一IP注册时是没有100个听币的,所以你用的IP可能已经被其他人注册过了</td></tr>");
document.write("<tr><td valign='top' bordercolor='#ecf6f5'><font color='#2666BD'><b>如何能迅速获得听币</b></font><BR>发帖(除版务区),推荐其他会员,上传符合要求的资源都可以获得听币,强烈建议采用到别的网站发布<font color=ff0000><B>连接贴</b></font>来获得听币,最快</td></tr>");
document.write("<tr><td valign='top' bordercolor='#ecf6f5'><font color='#2666BD'><b>怎么突然服务器拒绝我下载?怎么我下了一会就断了,然后就连不上了?</b></font><BR>本站规定一个ip只能同时使用1个线程,重试等待时间最好大于30秒,如果多开线程不停的尝试,服务器就会屏蔽你的链接</td></tr>");
//document.write("<tr><td valign='top' bordercolor='#ecf6f5'><font color='#2666BD'><b>怎么我下了一会就断了,然后就连不上了</b></font><BR>原因同上,如何设置下载软件可以参看新手区的批量下载中图示,如果你还是弄不清楚建议稍等10分钟后一个一个下载</td></tr>");
document.write("<tr><td valign='top' bordercolor='#ecf6f5'><font color='#2666BD'><b>其他问题见<a href=dispbbs.asp?boardID=22&ID=1550>新手问题解答集锦</a></b></font></td></tr>");
document.write("<tr><td valign='top' bordercolor='#ecf6f5'><a href='#' onclick='expires.setTime(expires.getTime() + 7 * 24 * 60 * 60 * 1000);setCookie(\"IlistenMenut\",\"Y\",expires,\"\",\"www.ilisten.cn\",false);self.location.reload();'><B><font color=FF0000 size=3>关闭此菜单一周</a>");
document.write("</td></tr></table></td></tr></table></td></tr></table>");
var ie = document.all ? 1 : 0
var ns = document.layers ? 1 : 0
var master = new Object('element')
master.curLeft = -200; master.curTop = 10;
master.gapLeft = 0; master.gapTop = 0;
master.timer = null;
if(ie){var sidemenu = document.all.master;}
if(ns){var sidemenu = document.master;}
setInterval('FixY()',100);
}
  • 打赏
  • 举报
回复
sxsgssgs 2006-04-23
这是menu.js代码(太大我分两次给你发),menu.js与主页文件放在同一目录下。

//下拉菜单相关代码
var h;
var w;
var l;
var t;
var topMar = 1;
var leftMar = -2;
var space = 1;
var isvisible;
var MENU_SHADOW_COLOR='#999999';//定义下拉菜单阴影色
var global = window.document
global.fo_currentMenu = null
global.fo_shadows = new Array

function HideMenu()
{
var mX;
var mY;
var vDiv;
var mDiv;
if (isvisible == true)
{
vDiv = document.all("menuDiv");
mX = window.event.clientX + document.body.scrollLeft;
mY = window.event.clientY + document.body.scrollTop;
if ((mX < parseInt(vDiv.style.left)) || (mX > parseInt(vDiv.style.left)+vDiv.offsetWidth) || (mY < parseInt(vDiv.style.top)-h) || (mY > parseInt(vDiv.style.top)+vDiv.offsetHeight)){
vDiv.style.visibility = "hidden";
isvisible = false;
}
}
}

function ShowMenu(vMnuCode,tWidth) {
vSrc = window.event.srcElement;
vMnuCode = "<table id='submenu' cellspacing=1 cellpadding=3 style='width:"+tWidth+"' class=menu onmouseout='HideMenu()'><tr height=23><td nowrap align=left class=MenuBody>" + vMnuCode + "</td></tr></table>";

h = vSrc.offsetHeight;
w = vSrc.offsetWidth;
l = vSrc.offsetLeft + leftMar+4;
t = vSrc.offsetTop + topMar + h + space-2;
vParent = vSrc.offsetParent;
while (vParent.tagName.toUpperCase() != "BODY")
{
l += vParent.offsetLeft;
t += vParent.offsetTop;
vParent = vParent.offsetParent;
}

menuDiv.innerHTML = vMnuCode;
menuDiv.style.top = t;
menuDiv.style.left = l;
menuDiv.style.visibility = "visible";
isvisible = true;
makeRectangularDropShadow(submenu, MENU_SHADOW_COLOR, 4)
}

function makeRectangularDropShadow(el, color, size)
{
var i;
for (i=size; i>0; i--)
{
var rect = document.createElement('div');
var rs = rect.style
rs.position = 'absolute';
rs.left = (el.style.posLeft + i) + 'px';
rs.top = (el.style.posTop + i) + 'px';
rs.width = el.offsetWidth + 'px';
rs.height = el.offsetHeight + 'px';
rs.zIndex = el.style.zIndex - i;
rs.backgroundColor = color;
var opacity = 1 - i / (i + 1);
rs.filter = 'alpha(opacity=' + (100 * opacity) + ')';
el.insertAdjacentElement('afterEnd', rect);
global.fo_shadows[global.fo_shadows.length] = rect;
}
}

function moveAlong(layerName, paceLeft, paceTop, fromLeft, fromTop){
clearTimeout(eval(layerName).timer)
if(eval(layerName).curLeft != fromLeft){
if((Math.max(eval(layerName).curLeft, fromLeft) - Math.min(eval(layerName).curLeft, fromLeft)) < paceLeft){eval(layerName).curLeft = fromLeft}
else if(eval(layerName).curLeft < fromLeft){eval(layerName).curLeft = eval(layerName).curLeft + paceLeft}
else if(eval(layerName).curLeft > fromLeft){eval(layerName).curLeft = eval(layerName).curLeft - paceLeft}
if(ie){document.all[layerName].style.left = eval(layerName).curLeft}
if(ns){document[layerName].left = eval(layerName).curLeft}
}
if(eval(layerName).curTop != fromTop){
if((Math.max(eval(layerName).curTop, fromTop) - Math.min(eval(layerName).curTop, fromTop)) < paceTop){eval(layerName).curTop = fromTop}
else if(eval(layerName).curTop < fromTop){eval(layerName).curTop = eval(layerName).curTop + paceTop}
else if(eval(layerName).curTop > fromTop){eval(layerName).curTop = eval(layerName).curTop - paceTop}
if(ie){document.all[layerName].style.top = eval(layerName).curTop}
if(ns){document[layerName].top = eval(layerName).curTop}
}
eval(layerName).timer=setTimeout('moveAlong("'+layerName+'",'+paceLeft+','+paceTop+','+fromLeft+','+fromTop+')',30)
}
  • 打赏
  • 举报
回复
sxsgssgs 2006-04-23
这是主页代码:



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0022)http://www.ilisten.cn/ -->
<HTML><HEAD><TITLE>动听中国-</TITLE>

</HEAD>
<BODY leftMargin=0 topMargin=0>
<DIV class=menuskin id=popmenu
onmouseover="clearhidemenu();highlightmenu(event,'on')" style="Z-INDEX: 100"
onmouseout="highlightmenu(event,'off');dynamichide(event)"></DIV>
<SCRIPT language=JavaScript src="menu.js"
type=text/JavaScript></SCRIPT>
  • 打赏
  • 举报
回复
sky0120 2006-04-23
没有,帮顶
  • 打赏
  • 举报
回复
相关推荐
发帖
ASP
加入

2.8w+

社区成员

ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
申请成为版主
帖子事件
创建了帖子
2006-04-23 10:45
社区公告
暂无公告