DJ W 0 Denunciar post Postado Novembro 1, 2006 Olá pessoal, Preciso muito da ajuda e paciência de todos...necessito entender e posteriormente fazer alterações no código abaixo. Isso é uma animação que recebe por querystring os dados de alguns textos e imagens e dinamicamente seta os textos de outra parte. Por favor , se alguém tiver paciência e principalmente tempo para me explicar o código abaixo agradeço function setupTab(tab) { tab1Text.text = tabText[0]; tab2Text.text = tabText[1]; tab3Text.text = tabText[2]; if (tab != null) { buttons = tab.Split(","); var i = 0; while (i < 11) { if (buttons.Split("|")[0] != null && buttons.Split("|")[0] != "") { eval("buttons.inv" + (i + 1))._visible = true; } else { eval("buttons.inv" + (i + 1))._visible = false; } // end if i++; } // end while var i = 0; while (i < buttons.length) { eval("buttons.b" + (i + 1)).text = buttons.Split("|")[0]; if (buttons.Split("|")[2] != null && buttons.Split("|")[2] != "") { eval("buttons.i" + (i + 1)).loadMovie(dataDir + buttons.Split("|")[2]); } // end if _level0["id" + (i + 1)] = buttons.Split("|")[1]; i++; } // end while } // end if } // End of the function tabText = new Array("PRODUTOS", "APLICAÇÕES DE MERCADO", "TECNOLOGIA"); if (siteRoot.indexOf("/eu/en/") >= 0) { tabText = new Array("PRODUCTS", "MARKET APPLICATIONS", "TECHNOLOGY"); } else if (siteRoot.indexOf("/eu/fr/") >= 0) { tabText = new Array("PRODUITS", "APPLICATIONS MÉTIER", "TECHNOLOGIE"); } else if (siteRoot.indexOf("/eu/de/") >= 0) { tabText = new Array("PRODUKTE", "ANWENDUNGEN", "TECHNOLOGIE"); } else if (siteRoot.indexOf("/la/en/") >= 0) { tabText = new Array("PRODUCTS", "MARKET APPLICATIONS", "TECHNOLOGY"); } else if (siteRoot.indexOf("/la/es/") >= 0) { tabText = new Array("Productos", "Aplicaciones de Mercado", "Tecnología"); } else if (siteRoot.indexOf("/ap/en/") >= 0) { tabText = new Array("PRODUCTS", "MARKET APPLICATIONS", "TECHNOLOGY"); } // end if Compartilhar este post Link para o post Compartilhar em outros sites
DJ W 0 Denunciar post Postado Novembro 1, 2006 Bom pessoal, consegui entender o funcionamento, mas agora só falta uma coisa...exibir os textos.... esses texto passo por querystring da seguinte forma ao chamar o swf tab1=Coletores+de+Dados%7c2%7ccoletores.jpg%2cLeitores%7c1%7cleitores.jpg%2cTerminais+de+Transação+%26+Kiosks%7c4%7cttk.jpg%2cSoluções+de+Verificação%7c3%7cverificacao.jpg%2cOEM%7c17%7coem.jpgEssa variável tab1 é capturada por uma função SetupTab(tab) que vai indicar os textos a serem exibidos.Mas não exibi nada :( Alguém tem alguma dica? Agradeço desde já. Olá pessoal, Preciso muito da ajuda e paciência de todos...necessito entender e posteriormente fazer alterações no código abaixo. Isso é uma animação que recebe por querystring os dados de alguns textos e imagens e dinamicamente seta os textos de outra parte. Por favor , se alguém tiver paciência e principalmente tempo para me explicar o código abaixo agradeço function setupTab(tab) { tab1Text.text = tabText[0]; tab2Text.text = tabText[1]; tab3Text.text = tabText[2]; if (tab != null) { buttons = tab.Split(","); var i = 0; while (i < 11) { if (buttons.Split("|")[0] != null && buttons.Split("|")[0] != "") { eval("buttons.inv" + (i + 1))._visible = true; } else { eval("buttons.inv" + (i + 1))._visible = false; } // end if i++; } // end while var i = 0; while (i < buttons.length) { eval("buttons.b" + (i + 1)).text = buttons.Split("|")[0]; if (buttons.Split("|")[2] != null && buttons.Split("|")[2] != "") { eval("buttons.i" + (i + 1)).loadMovie(dataDir + buttons.Split("|")[2]); } // end if _level0["id" + (i + 1)] = buttons.Split("|")[1]; i++; } // end while } // end if } // End of the function tabText = new Array("PRODUTOS", "APLICAÇÕES DE MERCADO", "TECNOLOGIA"); if (siteRoot.indexOf("/eu/en/") >= 0) { tabText = new Array("PRODUCTS", "MARKET APPLICATIONS", "TECHNOLOGY"); } else if (siteRoot.indexOf("/eu/fr/") >= 0) { tabText = new Array("PRODUITS", "APPLICATIONS MÉTIER", "TECHNOLOGIE"); } else if (siteRoot.indexOf("/eu/de/") >= 0) { tabText = new Array("PRODUKTE", "ANWENDUNGEN", "TECHNOLOGIE"); } else if (siteRoot.indexOf("/la/en/") >= 0) { tabText = new Array("PRODUCTS", "MARKET APPLICATIONS", "TECHNOLOGY"); } else if (siteRoot.indexOf("/la/es/") >= 0) { tabText = new Array("Productos", "Aplicaciones de Mercado", "Tecnología"); } else if (siteRoot.indexOf("/ap/en/") >= 0) { tabText = new Array("PRODUCTS", "MARKET APPLICATIONS", "TECHNOLOGY"); } // end if Compartilhar este post Link para o post Compartilhar em outros sites