Jump to content
Fórum Script Brasil
  • 0

Popup Dinamico


Guest Carlos Eduardo

Question

Guest Carlos Eduardo

pessoa,

tenho o seguinte código

<script>
function abre(musica) {
var pag = '<html><head><title>Música</title></head><body background=black>';
pag = pag + '<table border=0 width=100% height=100%><tr ><td>';
pag = pag + '<center>+ musica +<br><embed src="mp3/"+ musica +".mp3" width="68" height="25" AUTOSTART="false"></center>';
pag = pag + '</td></tr></table></body></html>';
var win = window.open("","agradece","width=300,height=300");
win.document.write(pag);
}
</script>
...
<table>
     <tr class=font_linha>
        <td>Candeeiro Encantado(Lenine)</td>
        <td><a class=a href="mp3/candeeiro_encantado(lenine).mp3">Download</a></td>
        <td><a class=a href="javascript:abre('candeeiro_encantado(lenine)');">Ouvir On-line</td>
     </tr>
</table>

Preciso tocar a musica que passo por paremetro... sei que posso gerar uma página para cada aquivo q tenho a tocar. Mas preciso gerar, somente, uma página atraves de Java Script. Sendo q comig ota dando o erro de object expected

se alguém puder me ajudar...:-)))

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

<td><a class=a href="javascript:abre('candeeiro_encantado(lenine)');">Ouvir On-line</td>

não usa as aspas dentro do parenteses............

<td><a class=a href="javascript:abre(candeeiro_encantado(lenine));">Ouvir On-line</td>
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.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      651.8k
×
×
  • Create New...