grazieee adesso niente errori ma scusa un altra domanda questo codice dovrebbe aprire un poup up di 900X500 px quando clicchi su chat, perche non funziona? conoscete un atro metodo per aprire una poup up da un link ( non automaticamente perche potrebbe infastidire )
EDIT: ho trovato un metodo che se fatto in una pagina a parte funziona
Codice HTML:
<script type="text/javascript" language="JavaScript">
<!--
function esempio(str) {
searchWin = window.open(str,'esempio','scrollbars=no,resizable=yes,width=150,height=170,status=no,location=no,toolbar=no');
// searchWin.refer = self;
}
//-->
</script>
</head>
<body >
<br /><br />
<div align="center">
<a href="javascript:esempio('java57_finestra.htm');"onmouseover="window.status='Clicca qui per visualizzare una finestra indipendente'; return true"><IMG SRC="click01.gif" WIDTH=75 HEIGHT=20 BORDER=0></A>
</div>
<br /><br /><br /><br /><br /><br />
</body>
</html>
mentre se lo metto qui:
Codice PHP:
<?php
session_start();
if(isset($_SESSION['passato'])){
echo 'Good you have authenticated [SIZE="7"]qui va il codice[/SIZE]';
}else{
echo 'you must authenticate';
}
?>
il risultato è
Codice PHP:
<?php
session_start();
if(isset($_SESSION['passato'])){
echo 'Good you have authenticated <script type="text/javascript" language="JavaScript">
<!--
function esempio(str) {
searchWin = window.open(str,'esempio','scrollbars=no,resizable=yes,width=150,height=170,status=no,location=no,toolbar=no');
// searchWin.refer = self;
}
//-->
</script>
</head>
<body >
<br /><br />
<div align="center">
<a href="javascript:esempio('java57_finestra.htm');"onmouseover="window.status='Clicca qui per visualizzare una finestra indipendente'; return true"><IMG SRC="click01.gif" WIDTH=75 HEIGHT=20 BORDER=0></A>
</div>
<br /><br /><br /><br /><br /><br />
</body>
</html>';
}else{
echo 'you must authenticate';
}
?>
mi da ancora errori P.S. ho provato a mettere \ prima di ogni ' ma niente..