<verbatim><br />%STARTINCLUDE% //---- Rotinas do menu -------<br />var t_objeto, t_imagem, t_trocar;<br />t_objAnt = false;<br />//Esconde e mostra os blocos de itens do menu<br />function troca(objeto,imagem) { if (t_objAnt) {<br /> if (t_objeto!=objeto) { t_objAnt = false; troca(t_objeto, t_imagem); }<br /> }<br /> if (document.getElementById) {<br /> if (document.getElementById(objeto).style.display != 'none'){<br /> document.getElementById(imagem).src = "img/SetaBaixo.gif";<br /> document.getElementById(objeto).style.display = 'none';<br /> }else{<br /> document.getElementById(imagem).src = "img/SetaCima.gif";<br /> document.getElementById(objeto).style.display = 'block';<br /> }<br /> }<br /> else if (document.layers && document.layers[objeto] != null) {<br /> if (document.layers[objeto].visibility == 'visible' ||<br /> document.layers[objeto].visibility == 'show' )<br /> document.layers[objeto].visibility = 'hidden';<br /> else<br /> document.layers[objeto].visibility = 'visible';<br /> } else if (document.all) {<br /> if (document.all[objeto].style.visibility == 'visible')<br /> document.all[objeto].style.visibility = 'hidden';<br /> else<br /> document.all[objeto].style.visibility = 'visible';<br /> }<br /> if (t_objeto==objeto) {<br /> t_objAnt = false;<br /> t_objeto = null;<br /> } else {<br /> t_objeto = objeto;<br /> t_imagem = imagem;<br /> t_objAnt = true;<br /> }<br /> return false;<br />} //---- Rotinas da toolbar ------- function reSize() {<br /> barW = 0; <br /> barH = 0;<br /> if (navDOM) {<br /> if (document.height > innerHeight) barW = 15;<br /> if (document.width > innerWidth) barH = 15;<br /> } else {<br /> innerWidth = document.body.clientWidth;<br /> innerHeight = document.body.clientHeight;<br /> }<br /> posX = ((innerWidth - markW)-barW) * (markX/100);<br /> posY = ((innerHeight - markH)-barH) * (markY/106);<br /> } function reposiciona() {<br /> wMark.left = posX + (navDOM?pageXOffset:document.body.scrollLeft);<br /> wMark.top = posY + (navDOM?pageYOffset:document.body.scrollTop);<br /> } function inicializa() {<br /> markW = 55; <br /> markH = 20; <br /> markX = 95; <br /> markY = 102; <br /> intervalo = 600; // set common object reference<br /> if (!document.all) document.all = document;<br /> if (!document.all.toolBar.style) document.all.toolBar.style = document.all.toolBar; wMark = document.all.toolBar.style;<br /> wMark.width = markW;<br /> wMark.height = markH;<br /> navDOM = window.innerHeight; <br /> reSize();<br /> window.onresize=reSize;<br /> markID = setInterval ("reposiciona()",intervalo);<br /> } function comboChange(comoBox,usado){ <br /> window.open( comoBox.options[comoBox.selectedIndex].value);<br /> if (usado) comoBox.selectedIndex=0;<br />} %STOPINCLUDE%<br /></verbatim>
This topic: SemBio
>
ScriptMenu
Topic revision: r1 - 03 Jun 2011 - 15:27:36 -
DelzaSantos
?
Copyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback