/********************************* The actual script file is inside the slidemenu.js file - remember to link that to your HTML file. **********************************/ //Creating the menu object -- You can call it whatever you want - just remember to //have the same name as the argument. slideMenu = new createSlideMenu("slideMenu") //Variables to set: slideMenu.menuy=20 //The top placement of the menu. slideMenu.menux=10 //The left placement of the menu slideMenu.useImages = 1 //Are you using images or not? slideMenu.pxspeed=20 //The pixel speed of the animation slideMenu.timspeed=25 //The timer speed of the animation slideMenu.inset = 0//How much the selected items should pop to the left slideMenu.arrow = 0 //Set this to className that has font-family:webdings //if you want to use the arrow feature. Note: //This ONLY works on DOM capable browsers, and with //useImages set to 0 - It's basically just a test I did. //I hope to improve it later on. //Needed dummy classes - leave in the stylesheet! slideMenu.bgClass = "slideMenuBG" slideMenu.txtClass = "slideMenuText" /******************************************************************************* Level properties - ALL properties have to be specified in level 0 This works the same way as the CM4 script (if you have used it) The level[0] values will be the default value. Any value not specified in higher levels will be inherited from level[0]. If anything is spesified in level[1], but not in level[2], level[2] (sub2 menus) will get the property value from level[1] and so on. The availble values to control the menu by level are: left - The left placement of all items in the current level ( px value ) width - The width of all items in the current level ( px value ) height - The height of all items in the current level ( px value ) between - The number of pixels between each item in the current level ( px value) className - A name of a class specified in the stylesheet to control the look of all items in this level. NOTE: The class MUST be in a stylesheet, and it most have position:absolute. classNameA - A name of a class specified in the stylesheet that will control the Look of the TEXT for all items in this level. (you can also specify a hover class for this className to get a mouseover effect on the text. regImage - If you choose to use image feature of the script you have to spesify the default image here. roundImg - This is the image that will used when a item is selected. roundImg2 - This is the image used for sub-levels on the last item in a list. (that's how the last items in this example are rounded on the sub-levels) subImg - The image used when the item has sub-items. Only in use for sub-levels subRound - Same as roundImg2 - only for items that have sub-items. To understand the image setup see the images supplied with this script. NOTE: Always specify the full (relative) path to the images! The slideMenu_makeLevel function provides a shortcut to making levels. If you are more comfortable with setting the properties by name you can also set them like this: slideMenu.level[0] = new Array() slideMenu.level[0].left = 0 slideMenu.level[0].width = 138 ..... and so on. NOTE: In level 0 below I have included the names of the variables just for readability - feel free to remove left = , width = , height = et cetera... ********************************************************************************/ slideMenu.level[0] = new slideMenu_makeLevel( left = 0, width = 197, height = 21, between = 0, className = "clSlideMenu", classNameA = "clA0", regImage = "imagens menu/level0_regular.gif", roundImg = "imagens menu/level0_round.gif", roundImg2 = "", subImg = "", subRound= "") slideMenu.level[1] = new slideMenu_makeLevel(10,167,20,0,"clSlideMenu","clA1","imagens menu/level1_regular.gif","imagens menu/level1_round2.gif","imagens menu/level1_round.gif","imagens menu/level1_sub.gif","imagens menu/level1_sub_round.gif") slideMenu.level[2] = new slideMenu_makeLevel(21,158,18,0,"clSlideMenu","clA2","imagens menu/level2_regular.gif","imagens menu/level2_round2.gif","imagens menu/level2_round.gif","imagens menu/level2_sub.gif","imagens menu/level2_sub_round.gif") slideMenu.level[3] = new slideMenu_makeLevel(33,148,20,0,"clSlideMenu","clA3","imagens menu/level3_regular.gif","imagens menu/level3_round2.gif","imagens menu/level3_round.gif","imagens menu/level3_sub.gif","imagens menu/level3_sub_round.gif") slideMenu.level[4] = new slideMenu_makeLevel(40,147,19,0,"clSlideMenu","clA4","imagens menu/level4_regular.gif","imagens menu/level4_round2.gif","imagens menu/level4_round.gif","imagens menu/level4_sub.gif","imagens menu/level4_sub_round.gif") //Image preload --- leave this for(var i=0;iLink To do the same for a slideMenu link you do like this: slideMenu.makeMenu('top','My link','mylink.html','myOtherFrameName') ------------------------------------------------------------ mySlideMenu.makeMenu('TYPE','TEXT','LINK','TARGET') ************************************************************************/ //Menu 1 ----------------------- //slideMenu.makeMenu('top','Principal','principal.htm','_corpo') slideMenu.makeMenu('top','Instituicão') slideMenu.makeMenu('sub','História','instituicao/historico.htm','_corpo') slideMenu.makeMenu('sub','Objetivos','instituicao/objetivos.htm','_corpo') slideMenu.makeMenu('sub','Registros de Títulos','instituicao/registroTitulos.htm','_corpo') slideMenu.makeMenu('sub','Estrutura Administrativa','instituicao/estruturaAdministrativa.htm','_corpo') slideMenu.makeMenu('sub','Equipe','instituicao/equipe.htm','_corpo') slideMenu.makeMenu('sub','Depoimentos','instituicao/depoimentos.htm','_corpo') slideMenu.makeMenu('sub','Atas das Assembléias','instituicao/ataAssembleia.htm','_corpo') slideMenu.makeMenu('sub','Estatuto','instituicao/Estatuto.htm','_corpo') slideMenu.makeMenu('top','Tipo de Deficiência') slideMenu.makeMenu('sub','Deficiência Mental','tipo de deficiencia/DeficienciaMental.htm','_corpo') slideMenu.makeMenu('sub','Deficiência Física','tipo de deficiencia/DeficienciaFisica.htm','_corpo') slideMenu.makeMenu('sub','Deficiência Visual','tipo de deficiencia/DeficienciaVisual.htm','_corpo') // slideMenu.makeMenu('sub','Espinha Bífida','tipo de deficiencia/espinhaBifida.htm','_corpo') slideMenu.makeMenu('sub','lesão medular','tipo de deficiencia/lesaoMedular.htm','_corpo') // slideMenu.makeMenu('sub','Lesado medular','tipo de deficiencia/lesadoMedular.htm','_corpo') slideMenu.makeMenu('sub','Atrofia muscular','tipo de deficiencia/atrofiaMuscular.htm','_corpo') slideMenu.makeMenu('sub','Paralisia celebral','tipo de deficiencia/paralisiaCelebral.htm','_corpo') slideMenu.makeMenu('sub','Doenças genéticas','tipo de deficiencia/doencasGeneticas.htm','_corpo') slideMenu.makeMenu('sub','Doenças metabolicas','tipo de deficiencia/doencasMetabolicas.htm','_corpo') slideMenu.makeMenu('sub','Paralisia facial','tipo de deficiencia/paralisiaFacial.htm','_corpo') // slideMenu.makeMenu('sub','Acidente vascular','tipo de deficiencia/acidenteVascular.htm','_corpo') slideMenu.makeMenu('sub','Paralisia braquial','tipo de deficiencia/paralisiaBraquial.htm','_corpo') slideMenu.makeMenu('sub','Traumatismo','tipo de deficiencia/traumatismo.htm','_corpo') slideMenu.makeMenu('top','Ações') slideMenu.makeMenu('sub','Projetos','acoes/projetos.htm','_corpo') slideMenu.makeMenu('sub','Eventos','acoes/eventos.htm','_corpo') slideMenu.makeMenu('sub','Serviços','acoes/servicos.htm','_corpo') slideMenu.makeMenu('sub','Campanhas','acoes/campanhas.htm','_corpo') slideMenu.makeMenu('top','Port.de Deficiência') slideMenu.makeMenu('sub','Mercado de trabalho','portador de deficiencia/mercadoTrabalho.htm','_corpo') slideMenu.makeMenu('sub','Previdência Social','portador de deficiencia/previdenciaSocial.htm','_corpo') slideMenu.makeMenu('sub','Transporte e locomoção','portador de deficiencia/transporteLocomocao.htm','_corpo') slideMenu.makeMenu('sub','Tratamento de saúde','portador de deficiencia/tratamentoSaude.htm','_corpo') slideMenu.makeMenu('sub','Educação Especializada','portador de deficiencia/educacaoEspecializada.htm','_corpo') slideMenu.makeMenu('sub','Locais Adaptados no DF','portador de deficiencia/locaisAdaptado.htm','_corpo') slideMenu.makeMenu('sub','Adapta seu veículo','portador de deficiencia/adaptaVeiculo.htm','_corpo') slideMenu.makeMenu('top','Benefícios') slideMenu.makeMenu('sub','Aquisição de órtese','beneficios/aquisicaoOrtese.htm','_corpo') slideMenu.makeMenu('sub','Aquisição de Veículos','beneficios/aquisicaoVeiculos.htm','_corpo') slideMenu.makeMenu('sub','Passe Livre') slideMenu.makeMenu('sub2','Distrito Federal','beneficios/passeDF.htm','_corpo') slideMenu.makeMenu('sub2','Interestadual','beneficios/passeInterestadual.htm','_corpo') slideMenu.makeMenu('sub2','Metro','beneficios/passeMetro.htm','_corpo') slideMenu.makeMenu('sub','Aposentadoria por invalidez','beneficios/aposentadoriaInvalidez.htm','_corpo') slideMenu.makeMenu('sub','Concurso Público','beneficios/concursoPublico.htm','_corpo') slideMenu.makeMenu('sub','Horário de Trabalho','beneficios/horarioTrabalho.htm','_corpo') slideMenu.makeMenu('sub','Deficiente Preso','beneficios/deficientePreso.htm','_corpo') slideMenu.makeMenu('top','Entidades') slideMenu.makeMenu('sub','Conselho de Assistência','entidade/conselhoAssistencia.htm','_corpo') slideMenu.makeMenu('sub','Utilidade Pública','entidade/utilidadePublica.htm','_corpo') slideMenu.makeMenu('sub','Entidade Filantrópica','entidade/entidadeFilantropica.htm','_corpo') slideMenu.makeMenu('sub','Registrar sua Entidade','entidade/ondeRegistrar.htm','_corpo') //slideMenu.makeMenu('top','Galeria de Fotos','Galeria de Fotos/galeria de fotos.htm','_corpo') //slideMenu.makeMenu('top','Associar-se','associar/associar.htm','_corpo') //slideMenu.makeMenu('top','Loja Virtual') //slideMenu.makeMenu('top','Parceiros') slideMenu.makeMenu('top','Endereços') slideMenu.makeMenu('sub','Associação no DF','enderecos/associacaoDF.htm','_corpo') slideMenu.makeMenu('sub','Entidades Nacionais','enderecos/entidadeNacional.htm','_corpo') slideMenu.makeMenu('sub','Centro Desenv. Social','enderecos/centroDesenvolvimento.htm','_corpo') slideMenu.makeMenu('sub','Agência Pública Emprego','enderecos/agenciaPublicaEmprego.htm','_corpo') slideMenu.makeMenu('sub','Centro de Ensino Especial','enderecos/centroEnsinoEspecial.htm','_corpo') slideMenu.makeMenu('sub','Conselhos do DF','enderecos/conselhosDF.htm','_corpo') slideMenu.makeMenu('sub','Hospitais da Rede Pública','enderecos/hospitaisRedePublica.htm','_corpo') //slideMenu.makeMenu('top','contato','contato.htm','_corpo') //slideMenu.makeMenu('top','mapa','mapa.htm','_corpo') //Initiating the menu !! slideMenu.init()