echo "<span onClick=\"window.open('noticedetail.php?noticesid=$noticeid','$noticetitle','width=500
height=300 fullscreen=0 channelmode=0 toolbar=0 menubar=0 scrollbars=0 left=0 top=0 resizable=0');\"
style='CURSOR: hand'><span>$noticetitle</span></span>"

解决方案 »

  1.   

    <?php
    ....
    ?><span onClick="window.open('noticedetail.php?noticesid=<?php echo $noticeid;?>','<?php echo $noticetitle;?>','width=500 height=300 fullscreen=0 channelmode=0 toolbar=0 menubar=0 scrollbars=0 left=0 top=0 resizable=0')" style='CURSOR: hand'><span><?php echo $noticetitle;?></span></span><?php
    ....
    ?>
      

  2.   

    function aaa(){
    ...
    echo "<span onClick=\"window.open('noticedetail.php?noticesid=".$noticeid."','".$noticetitle."','width=500 height=300 fullscreen=0 channelmode=0 toolbar=0 menubar=0 scrollbars=0 left=0 top=0 resizable=0')\" style='CURSOR: hand'><span>".$noticetitle."</span></span>";
    ...
    }
      

  3.   

    谢谢,不好意思,搞错了。
    我是要执行它的功能,而不是显示它。
    运行的结果如下:
    <span 
    onClick="window.open('noticedetail.php?noticesid=5','','width=500 height=300 fullscreen=0 channelmode=0 toolbar=0 menubar=0 scrollbars=0 left=0 top=0 resizable=0') 
    style='CURSOR: hand'><span></span></span>
    可无法实现它的功能啊?!