[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Webmasters] redirec em script
- Date: Tue, 7 Jul 1998 16:02:42 -0300
- From: "Cássio Fernando" <cassio@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: [Webmasters] redirec em script
eu posso lhe ajudar, mas o que eu tenho naum precisa de botco i ss
selecionar e clicar.
-----------------------------_______---------------codigo
<script language="JavaScript">
function goPage(){
var x=document.forms[0].elements[0].selectedIndex
if (x==0){ }
if (x==1){alert('Escolha alguma das opgues')}
if (x==2){parent.main.location.href="main.htm"}
if (x==3){parent.main.location.href="anuncios.htm"}
if (x==4){parent.main.location.href="entretenimento.htm"}
if (x==5){parent.main.location.href="mailto: cassio@televideonet.com.br"}
if (x==6){parent.main.location.href="servicos.htm"}
if
(x==7){parent.Frame11.location.href="http://www.wmasters.net/cgi/mail.htm"}
if (x==8){parent.Frame11.location.href="lista.htm"}
if (x==null){alert('Ocorreu um erro devido a versco de seu browser,
contacte o webmaster da pagina pelo e-mail:cassio@televideonet.com.br')}
}
function drawForm(){
document.write('<FORM><font face=arial size=-1><b><SELECT
onChange="goPage()" STYLE="color: maroon" STYLE="font-size=8pt"
STYLE="font-family=Verdana,Arial" STYLE="background-color=lightyellow">')
document.write('<OPTION SELECTED STYLE="color: red">SPOCK On-Line.')
document.write('<OPTION>')
document.write('<OPTION><-Pagina Principal')
document.write('<OPTION><-Anuncios')
document.write('<OPTION><-Entretenimento')
document.write('<OPTION><-E-mail')
document.write('<OPTION><-Servigos')
}
function selectForm(){
document.write('<INPUT TYPE=BUTTON VALUE="Acessar" onclick="goPage()">')
document.write('</SELECT></FORM>')
}
</script> <script
language="JavaScript">
function selectBrowser(){
document.write('</SELECT></FORM>')
}
</script> <script language="JavaScript">
drawForm()
selectBrowser()
</script>
---------fim--------------------
qualquer dzvida i ss falar.
-----Mensagem original-----
De: Alexandre Barreto <alexandre@abc.mre.gov.br>
Para: Lista Webmstr <webmasters@neting.com>; Lista Webmasters
<webmasters@virtualand.net>
Data: Terga-feira, 7 de Julho de 1998 12:22
Assunto: [Webmasters] redirec em script
Pessoal,
Estou com um problemao e preciso da ajuda de voces.
Situacao:
Tenho uma pagina com 3 formularios. Cada formulario tem um DropDownList
(combo) e um botao tipo button. Quando o usuario clica em algum botao, o
script pega o valor do combo (que eh uma url) e automaticamente redireciona
a pagina.
Alguem sabe como fazer em vbscript ou jscript?
Preciso com urgencia!!!!
Valeu,
Alexandre Barreto
WebDeveloper / WebDesign
ONU/ABC - Agjncia Brasileira de Cooperagco
alexandre@abc.mre.gov.br