Kod
<script>
function user(kto)
{
window.open('user.php?user_id=' + kto + '', 'user', 'width=500, height=500, menubar=no, scrollbars=yes')
}
function msg(kto,komu)
{
window.open('msg.php?user_id=' + kto + '&sendto=' + komu + '', 'msg' , 'width=500, height=500, menubar=no, scrollbars=yes')
}
</script>
function user(kto)
{
window.open('user.php?user_id=' + kto + '', 'user', 'width=500, height=500, menubar=no, scrollbars=yes')
}
function msg(kto,komu)
{
window.open('msg.php?user_id=' + kto + '&sendto=' + komu + '', 'msg' , 'width=500, height=500, menubar=no, scrollbars=yes')
}
</script>
Mam taki kod i mam problem, jesli tworze link wykozystujac piersa funcje otwiera mi sie nowe okno tak jak trzeba, problem jest z funkcja 'msg' ktora poprostu nie reaguje. Gdzie zrobilem blad?
[php:1:13400e640f]
...
<?php
echo ';<td ' . $css_lewy[$x] . '><a href="java script: user(' . $mlody_id[$a] . ');">' . $mlody_login[$a] . '</a></td>
<td ' . $css_prawy[$x] . '><a href="java script: msg(' . $_GET['user_id'] . ',' . $mlody_id[$a] . ');"><img src="/img/koperta.gif" border=0></a></td>';
?>
...
[/php:1:13400e640f]