如何使这段代码工作?有这么多的引号,我不知道如何把它们放对。帮我解决这个问题。
<script type="text/javascript">
function eventWindow(url) {
event_popupWin = window.open(url, 'event', 'resizable=yes,scrollbars=yes,toolbar=no,width=400,height=400');
event_popupWin.opener = self;
}
</script>
$calendar.= '<div class="day-number"><a href="javascript:eventWindow(event.php?&d='.$list_day.'&m='.$month.'&y='.$year.')">'.$list_day.'</a></div>';
我想这会解决你的问题。
function eventWindow(url) {
event_popupWin = window.open(url, 'event', 'resizable=yes,scrollbars=yes,toolbar=no,width=400,height=400');
event_popupWin.opener = self;
}
<div class="day-number">
<a href="javascript:eventWindow('event.php?&d=<?php echo $list_day; ?>&m=<?php echo $month; ?>&y=<?php echo $year; ?>')"><?php echo $list_day; ?></a>
</div>