Popup Abertos Onde Eu Quero
#1
Posted 11/06/2003, 10:14
Como eu defino a área em qua eu quero que um popup abra?
é que eu preciso fazer exatamente isto.. abrir 3 pop ups um em baixo do outro.
Como fazer?
[]s
Leng
#2
Posted 11/06/2003, 11:05
onde x é a distância em pixels do canto esquerdo da tela e y é a ditancia do topo da tela.<html>
<head>
...
<script>
window.moveTo(x,y);
</script>
</head>
...
</html>
their tears become the tempest..
Visite:
Draco
Come with me....
Future World
#3
Posted 11/06/2003, 14:33
Saca só.... eu tenho uma função que abre 3 popips:
<script language=javascript>
function anuncio(){
windom.open('pagina1.htm','anuncio','width=400,heidth=250');
windom.open('pagina2.htm','anuncio','width=400,heidth=250');
windom.open('pagina3.htm','anuncio','width=400,heidth=250');
}
</script>
Como é que eu encaixo esse
window.move(x,y)
para cada janela, no código ?
[]s
Leng
#4
Posted 11/06/2003, 15:03
na pagina1.htm vc põe no head
<script>
window.moveTo(0,0);
</script>
na pagina2.htm vc põe no head
<script>
window.moveTo(0,275);
</script>
na pagina3.htm vc põe no head
<script>
window.moveTo(0,525);
</script>
their tears become the tempest..
Visite:
Draco
Come with me....
Future World
#5
Posted 12/06/2003, 01:52
Vc pode definir a posição das janelas no próprio window.open .. É só vc definir, o top e o left..
Veja o exemplo no code que vc passou:
Ps.: Eu arrumei o seu heidth que tá errado, o correto é height!!!<script language=javascript>
function anuncio(){
windom.open('pagina1.htm','anuncio','width=400,height=250, top=0, left=0');
windom.open('pagina2.htm','anuncio','width=400,height=250, top=250, left=0');
windom.open('pagina3.htm','anuncio','width=400,height=250, top=500, left=0');
}
</script>
E já coloquei de um geito que fique uma embaixo da outra..
Se ainda naum entendeu, o top define a distância que a janela vai ficar do topo da tela, e o left, a distância que a janela vai ficar do lado esquerda da tela.. Agora entendeu neh?
Fui..
chinello at gmail dot com
System > Athlon 64 3200+ Mobile | Kubuntu 7.04 Fesity Fawn AMD64 | Kernel 2.6.20-16
Coding @ KDE 3.5.7 | PHP 5.2.1 | Apache 2.2.3 | MySQL 5.0.38
#6
Posted 12/06/2003, 02:21
Acho que o certo é assim:Um geito mais simples Lengrat..
Vc pode definir a posição das janelas no próprio window.open .. É só vc definir, o top e o left..
Veja o exemplo no code que vc passou:Ps.: Eu arrumei o seu heidth que tá errado, o correto é height!!!<script language=javascript>
function anuncio(){
windom.open('pagina1.htm','anuncio','width=400,height=250, top=0, left=0');
windom.open('pagina2.htm','anuncio','width=400,height=250, top=250, left=0');
windom.open('pagina3.htm','anuncio','width=400,height=250, top=500, left=0');
}
</script>
E já coloquei de um geito que fique uma embaixo da outra..
Se ainda naum entendeu, o top define a distância que a janela vai ficar do topo da tela, e o left, a distância que a janela vai ficar do lado esquerda da tela.. Agora entendeu neh?
Fui..
<script language=javascript>
function anuncio(){
window.open('pagina1.htm','anuncio','width=400,height=250, top=0, left=0');
window.open('pagina2.htm','anuncio','width=400,height=250, top=250, left=0');
window.open('pagina3.htm','anuncio','width=400,height=250, top=500, left=0');
}
</script>
Esse windom de vcs..
#7
Posted 12/06/2003, 02:31
Boa Cristiano..Esse windom de vcs..
Eu cheguei a reparar no heidth mas naum reparei no windom.. hauauahuahahuauua.. É tudo culpa do Lengrat..
hehe
Fui..
chinello at gmail dot com
System > Athlon 64 3200+ Mobile | Kubuntu 7.04 Fesity Fawn AMD64 | Kernel 2.6.20-16
Coding @ KDE 3.5.7 | PHP 5.2.1 | Apache 2.2.3 | MySQL 5.0.38
#9
Posted 13/06/2003, 14:02
Valeu galera.
[]s ae
0 user(s) are reading this topic
0 membro(s), 0 visitante(s) e 0 membros anônimo(s)