Português
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>建站学院</title> </head> <body> <style type=" text/css"> .dot {posição: absoluto; largura: 6; altura: 6; visibilidade: oculta; cor de fundo: vermelho; tamanho da fonte: 1px; cursor: ponteiro; cursor: mão; índice z: 100 } .dotoff {posição: absoluto; largura: 6; altura: 6; visibilidade: oculta; cor de fundo: cinza; tamanho da fonte: 1px; cursor: padrão; índice z: 100} .dotempty {posição: absoluto; largura: 6; altura: 6; visibilidade: oculta; cor de fundo: laranja; tamanho da fonte: 1px; cursor: ponteiro; cursor: mão; zindex: 100 } .caption {posição: absoluto; visibilidade: oculta; família de fontes: Tahoma; cor: preto; tamanho da fonte: 11px; alinhamento de texto: Centro; cursor: padrão; índice z: 1} corpo {margem: 0px; cor de fundo: branco; } a { cor: prata; decoração de texto: nenhum } p {tamanho da fonte: 10px; família de fontes: tahoma; color: black } </style> <script language="JavaScript" type="text/javascript"> function lib_bwcheck(){ //Verificação do navegador (necessário) this.ver=navigator.appVersion this.agent=navigator.userAgent this. dom=document.getElementById?1:0 this.opera5=this.agent.indexOf("Opera 5")>-1 this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0; this.ie4=(document.all && !this.dom && !this.opera5)?1:0; this.ie=this.ie4||this.ie5||this.ie6 this.mac=this.agent.indexOf("Mac")>-1 this.ns6=(this.dom && parseInt(this.ver) > = 5) ?1:0; this.ns4=(document.layers && !this.dom)?1:0; this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5) return this } var bw=new lib_bwcheck() // O código deste script está no corpo, a verificação do navegador acima não é usada. </script> <script language="javascript1.2" type="text/javascript"> <!-- // DotMenu // fornece funcionalidade entre navegadores //============= ======================== function getObjectRef(nome) { if(document.getElementById) return document.getElementById(nome); senão if(document.all) return document.all[nome]; caso contrário, retorne nulo; } // funções gerais para auxiliar o script //====================================== = function show(nome) { var el = getObjectRef(nome); if(el) el.style.visibility = "visível"; } função ocultar(nome) { var el = getObjectRef(nome); if(el) el.style.visibility = "oculto"; } function getWidth(nome) { var el = getObjectRef(nome); retornar el.offsetWidth; } function getHeight(nome) { var el = getObjectRef(nome); retornar el.offsetHeight; } function moveMe(nome,x,y) { var el = getObjectRef(nome); if(el) { el.style.top = parseInt(y); el.style.left = parseInt(x); } } function moveBy(nome,x,y) { var el = getObjectRef(nome); if(el) { el.style.top = parseInt(el.style.top) + parseInt(y); el.style.left = parseInt(el.style.left) + parseInt(x); } } // Cria os objetos de menu //========================== var menuCount = 0; função menuObject(nome,x,y,caption, r, parent) { if ( (!document.getElementById&&!document.all) || navigator.userAgent.indexOf("Opera")>-1) return; document.write('<div id="divDot' + menuCount + '" class="dotempty" style="top: ' + y + '; esquerda: ' + x + '"></div>'); document.write('<div id="divCap' + menuCount + '" class="caption" style="top: 0; left: 0">' + caption + '</div>'); este.nome = nome; this.parent = pai this.ref = "divDot" + menuCount; this.caption = "divCap" + menuCount if(r) this.radius = r; senão este.radius = 400; this.subMenus = new Array(); este.estado = 0; this.moving = false; if(this.parent) this.action = "null"; senão this.action = "toggle"; if(this.parent) this.startAngle = parent.startAngle; senão this.startAngle = 0; getObjectRef(this.ref).objRef = this.name; this.show = function() { show(this.ref); } this.hide = function() { hide(this.ref); } this.moveMe = function(x,y) { if(this.parent) { x += this.parent.x(); y += this.parent.y(); } moveMe(this.ref,x,y); } this.moveBy = function(x,y) { moveBy(this.ref,x,y); } this.x = function() { return parseInt(getObjectRef(this.ref).style.left); } this.y = function() { return parseInt(getObjectRef(this.ref).style.top); } this.w = function() { return getWidth(this.ref); } this.h = function() { return getHeight(this.ref); } this.showCaption = function() { moveMe(this.caption, this.x() - (getWidth(this.caption)/2) + (this.w()/2), (this.y() + this .h())); mostrar(esta.caption); } this.hideCaption = function() { hide(this.caption); } this.setCaption = function(c) { getObjectRef(this.caption).innerHTML = c;} this.addItem = function(c,action,r) { getObjectRef(this.ref).className = "ponto"; if(!r) r = this.radius/2; var sub = novo menuObject(this.name + ".subMenus[" + this.subMenus.length + "]",0,0,c,r,this); sub.parent = isto; sub.ação = ação; sub.moveMe(0,0); this.subMenus[this.subMenus.length] = sub; retornar sub; } this.expand = function() { if(this.subMenus.length > 0) { var p = true; if(this.parent) { p = !this.parent.moving; for(var i=0; i<this.parent.subMenus.length;i++) p = p && ((this.parent.subMenus[i].state==0) || (this.parent.subMenus[i] .state==this.parent.subMenus[i].subMenus.length)) && (this.parent.subMenus[i].moving==false); } senão var o = falso; if((!this.parent || this.parent.state == this.parent.subMenus.length) && p) { if(this.parent) this.collapseAll(this.name); var diff = 360 / this.subMenus.length; for(var i=0;i<this.subMenus.length;i++){ this.subMenus[i].moveMe(0,0); this.subMenus[i].show(); this.moving = true; this.subMenus[i].slide(this.subMenus[i].radius * cos(degToRad((diff*i)+this.startAngle)), this.subMenus[i].radius * sin(degToRad((diff* i)+this.startAngle)), this.name + ".subMenus[" + i + "].showCaption();" + this.name + ".moving=false;" 1;"); } if(this.parent){ getObjectRef(this.parent.ref).style.filter = "alfa (opacidade=33)"; getObjectRef(this.parent.ref).style.MozOpacity = "33%"; getObjectRef(this.parent.ref).className = "dotoff"; getObjectRef(this.parent.caption).style.filter = "alfa (opacidade=33)"; getObjectRef(this.parent.caption).style.MozOpacity = "33%"; for(i=0;i<this.parent.subMenus.length;i++) { getObjectRef(this.parent.subMenus[i].ref).style.filter = "alpha (opacity=66)"; getObjectRef(this.parent.subMenus[i].ref).style.MozOpacity = "66%"; getObjectRef(this.parent.subMenus[i].caption).style.filter = "alfa (opacidade=66)"; getObjectRef(this.parent.subMenus[i].caption).style.MozOpacity = "66%"; } if(this.parent.parent) { for(i=0;i<this.parent.parent.subMenus.length;i++) { getObjectRef(this.parent.parent.subMenus[i].ref).style.filter = "alfa (opacidade=33)"; getObjectRef(this.parent.parent.subMenus[i].ref).style.MozOpacity = "33%"; getObjectRef(this.parent.parent.subMenus[i].ref).className = "dotoff"; getObjectRef(this.parent.parent.subMenus[i].caption).style.filter = "alfa (opacidade=33)"; getObjectRef(this.parent.parent.subMenus[i].caption).style.MozOpacity = "33%"; } getObjectRef(this.parent.parent.ref).style.MozOpacity = "33%"; getObjectRef(this.parent.parent.ref).style.MozOpacity = "33%"; getObjectRef(this.parent.parent.ref).className = "dotoff"; } } getObjectRef(this.ref).style.filter = "alfa (opacidade=66)"; getObjectRef(this.caption).style.filter = "alfa (opacidade=66)"; getObjectRef(this.ref).style.MozOpacity = "66%"; getObjectRef(this.caption).style.MozOpacity = "66%"; } } } this.collapse = function() { var p = true; p = !this.moving; for(var i=0; i<this.subMenus.length;i++) p = p && (this.subMenus[i].state==0) && (this.subMenus[i].moving==false); if(p && this.subMenus.length > 0) { for(var i=0;i<this.subMenus.length;i++){ this.subMenus[i].hideCaption(); this.moving = true; this.subMenus[i].slide(0, 0, this.name + ".subMenus[" + i + "].hide();" + this.name + ".moving=false;" + this.name + ".estado-=1;"); } if(this.parent){ getObjectRef(this.parent.ref).style.filter = "alfa (opacidade=66)"; getObjectRef(this.parent.ref).style.MozOpacity = "66%"; if(this.parent.subMenus.length != 0) getObjectRef(this.parent.ref).className = "ponto"; senão getObjectRef(this.parent.ref).className = "dotempty"; getObjectRef(this.parent.caption).style.filter = "alfa (opacidade=66)"; getObjectRef(this.parent.caption).style.MozOpacity = "66%"; for(i=0;i<this.parent.subMenus.length;i++) { getObjectRef(this.parent.subMenus[i].ref).style.filter = "alfa (opacidade=100)"; getObjectRef(this.parent.subMenus[i].ref).style.MozOpacity = "100%"; if(this.parent.subMenus[i].subMenus.length != 0) getObjectRef(this.parent.subMenus[i].ref).className = "ponto"; senão getObjectRef(this.parent.subMenus[i].ref).className = "dotempty"; getObjectRef(this.parent.subMenus[i].caption).style.filter = "alfa (opacidade=100)"; getObjectRef(this.parent.subMenus[i].caption).style.MozOpacity = "100%"; } if(this.parent.parent) { for(i=0;i<this.parent.parent.subMenus.length;i++) { getObjectRef(this.parent.parent.subMenus[i].ref).style.filter = "alfa (opacidade=66)"; getObjectRef(this.parent.parent.subMenus[i].ref).style.MozOpacity = "66%"; if(this.parent.parent.subMenus[i].subMenus.length != 0) getObjectRef(this.parent.parent.subMenus[i].ref).className = "ponto"; senão getObjectRef(this.parent.parent.subMenus[i].ref).className = "dotempty"; getObjectRef(this.parent.parent.subMenus[i].caption).style.filter = "alfa (opacidade=66)"; getObjectRef(this.parent.parent.subMenus[i].caption).style.MozOpacity = "66%"; } } } getObjectRef(this.ref).style.filter = "alfa (opacidade=100)"; getObjectRef(this.caption).style.filter = "alfa (opacidade=100)"; getObjectRef(this.ref).style.MozOpacity = "100%"; getObjectRef(this.caption).style.MozOpacity = "100%"; } } this.collapseAll = function(except) { for(var i=0;i<this.parent.subMenus.length;i++) { if(this.parent.subMenus[i].name!=except && this.parent .subMenus[i].state==this.parent.subMenus[i].subMenus.length) { this.parent.subMenus[i].collapse(); } } } this.toggle = function(e) { if(document.all) id = window.event.srcElement; senão id = e.target; var ponto = eval(id.objRef); if(dot.state==0 && !dot.moving) dot.expand(); senão if(dot.state==dot.subMenus.length && !dot.moving) dot.collapse() } this.doAction = function(e) { if(document.all) id = window.event.srcElement; senão id = e.target; var ponto = eval(id.objRef); if(ponto.action == "alternar") ponto.toggle(e); senão eval(ponto.action); } //altere-os se desejar alterar os eventos que acionam as ações //================================ ====================================== //getObjectRef(this.ref).onmousemove = isto.toggle; getObjectRef(this.ref).onmouseup = this.doAction; this.slide = function(xx,yy,func) { if(!func) func = ""; var px = this.parent.x(); var py = this.parent.y(); var x = xx - this.x() + px; var y = aa - this.y() + py; var d = sqrt(quadrado(xx-this.x() + px) + quadrado(yy-this.y() + py)); var v = d/8; se(v<1) v = 1; if( (Math.abs(x) < v) && (Math.abs(y) < v) ) { moveMe(this.ref,xx + px,yy + py); if(func != "") avaliação(func); } else { var a = round(atan(x,y)); dx = round(v * cos(degToRad(a))); dy = round(v * sin(degToRad(a))); this.moveBy(dx,dy); setTimeout(this.name + ".slide(" + xx + "," + yy + ", '" + func + "');",10); } } // Pré-carregando os filtros do Windows. if (menuCount==0 && document.all) document.all[this.ref].style.filter = "alfa (opacidade=100)"; menuContagem++; devolva isso; } // Funções matemáticas //================ var pi = Math.PI; função quadrado(x) { return (x*x); } função sqrt(x) { return Math.sqrt(x); } função round(x) { return Math.round(x); } função rand(x,y) { return (round(Math.random()*(yx)) + x); } função cos(x) { retornar Math.cos(x) } função sin(x) { retornar Math.sin(x) } função degToRad(x) { retornar ( x/(360/(2*pi)) ); } função radToDeg(x) { return ( x*(360/(2*pi)) ); } função atan(s,t) { if( s == 0,0 && t > 0,0) ângulo = 90,0; senão if(s == 0,0 && t < 0,0) ângulo = 270,0; caso contrário, se (s < 0,0) ângulo = 180,0 + radToDeg(Math.atan(t/s)); caso contrário, se (s > 0,0 && t < 0,0) ângulo = 360,0 + radToDeg(Math.atan(t/s)); senão { se(s==0,0) s=0,00001; ângulo = radToDeg(Math.atan(t/s)); } if(ângulo < 0,0) ângulo += 360,0; ângulo de retorno; } //obter dimensões da página if(document.all) pageWidth = document.body.offsetWidth-20; senão pageWidth = innerWidth; if(document.all) pageHeight = document.body.offsetHeight-4; senão pageHeight = innerHeight; //Criar menu principal var menu = new menuObject("menu",pageWidth/2,pageHeight/2,"DhtmlCentral Site Map",pageHeight/2); menu.startAngle = -90; //mostra menu e legenda menu.show(); menu.showCaption(); //Adicionar submenus menu.addItem("news","window.open('/news')"); menu.addItem("scripts","alternar"); menu.addItem("tutoriais","alternar"); menu.addItem("fóruns","alternar"); menu.addItem("recursos","alternar"); menu.subMenus[1].addItem("FoldOutMenu","window.open('/script/script22.asp')"); menu.subMenus[1].addItem("Barra de Carregamento","window.open('/script/script17.asp')"); menu.subMenus[1].addItem("Script de janela","window.open('/script/script16.asp')"); menu.subMenus[1].addItem("PageSlideFade","window.open('/script/script15.asp')"); menu.subMenus[1].addItem("Menu Círculo","window.open('/script/script14.asp')"); menu.subMenus[1].addItem("Introdução à animação","window.open('/script/script9.asp')"); menu.subMenus[1].addItem("NewsSlideFade","window.open('/script/script10.asp')"); menu.subMenus[1].addItem("Outros Scripts","window.open('/script/')"); menu.subMenus[2].addItem("Scripting para navegadores vs5","window.open('/tutorials/tutorial5.asp')"); menu.subMenus[2].addItem("Criando um script Dhtml","window.open('/tutorials/tutorial6.asp')"); menu.subMenus[2].addItem("Filtros e Transições","window.open('/tutorials/tutorial4.asp')"); menu.subMenus[2].addItem("Biblioteca Dhtml","window.open('/tutorials/tutorial3.asp')"); menu.subMenus[2].addItem("Tamanho do documento","window.open('/tutorials/tutorial2.asp')"); menu.subMenus[2].addItem("Introdução ao Dhtml","window.open('/tutorials/tutorial1.asp')"); menu.subMenus[3].addItem("Listagens de fóruns","window.open('/forums')"); menu.subMenus[3].addItem("Sites legais","window.open('/forums/forum.asp?FORUM_ID=1&CAT_ID=1&Forum_Title=Legal+sites')"); menu.subMenus[3].addItem("CoolMenus","window.open('/forums/forum.asp?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus')"); menu.subMenus[3].addItem("Cross Browser","window.open('/forums/forum.asp?FORUM_ID=3&CAT_ID=1&Forum_Title=Crossbrowser+DHTML')"); menu.subMenus[3].addItem("Scripts","window.open('/forums/forum.asp?FORUM_ID=4&CAT_ID=1&Forum_Title=DHTML+Scripts')"); menu.subMenus[3].addItem("Geral","window.open('/forums/forum.asp?FORUM_ID=6&CAT_ID=1&Forum_Title=Geral+DHTML+problemas')"); menu.subMenus[3].addItem("Fora do tópico","window.open('/forums/forum.asp?FORUM_ID=9&CAT_ID=1&Forum_Title=Off%2Dtopic')"); c = menu.subMenus[4].addItem("Sites legais","toggle"); c.startAngle = 15; menu.subMenus[4].addItem("Portais","window.open('/resources/default.asp?catid=7&cattitle=Portais')"); menu.subMenus[4].addItem("Sites de script","window.open('/resources/default.asp?catid=1&cattitle=Script+sites')"); menu.subMenus[4].addItem("Tutoriais e<br>Referências","toggle"); menu.subMenus[4].subMenus[0].addItem("Sites Comerciais","window.open('/resources/default.asp?catid=5&cattitle=Commercial+sites')"); menu.subMenus[4].subMenus[0].addItem("Sites Pessoais","window.open('/resources/default.asp?catid=6&cattitle=Personal+sites')"); menu.subMenus[4].subMenus[0].addItem("Projetos Experimentais","window.open('/resources/default.asp?catid=4&cattitle=Experimental+projects')"); menu.subMenus[4].subMenus[3].addItem("Referências","window.open('/resources/default.asp?catid=8&cattitle=Referências')"); menu.subMenus[4].subMenus[3].addItem("Tutoriais e artigos","window.open('/resources/default.asp?catid=9&cattitle=Tutoriais+and+Artigos')"); //--></script> </body> </html>