Jump to content
Fórum Script Brasil
  • 0

Pop Up Para Menu Dropdown


shoda
 Share

Question

tenho o seguinte codigo:

<select class="menudropdown" size="1" name="URL" onChange="if(options[selectedIndex].value) parent.frames.location.href= (options[selectedIndex].value)">

<option class="menu2" value="#" selected>Busca rápida de fotos</option>

<option class="menu1" value="ambientes.htm">Ambientes</option>

<option class="menu1" value="closet.htm">Closet</option>

<option class="menu1" value="escritorio.htm">Escritório</option>

<option class="menu1" value="h_teather.htm">Home Theather</option>

</select>

Como faço para que as páginas que estão sendo chamadas neste menu dropdown abram mas em forma de pop up, ou seja, em uma nova janela e com o width e heigth definidos por mim?

quem souber eu agradeço!!

abs

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

<script>
function popup(url){
    window.open(url);//da uma olhana  en tutos sobre o window.open pra ver os outros atributos!
}
</script>
<select class="menudropdown" size="1" id="ur"name="URL" onChange="popup(document.getElementById('ur').value)">
<option class="menu2" value="#" selected>Busca rápida de fotos</option>
<option class="menu1" value="frente.html">frente.html</option>
<option class="menu1" value="closet.htm">Closet</option>
<option class="menu1" value="escritorio.htm">Escritório</option>
<option class="menu1" value="h_teather.htm">Home Theather</option>
</select>

ve se isso serve para oque você quer?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Forum Statistics

    • Total Topics
      150.2k
    • Total Posts
      647.5k
×
×
  • Create New...