公司網站左上角的"新業務專區"按鈕想要做兩個連結輪替
www.tabc.com.tw以下是我寫的,我是PHP新手...不知道是哪裡出問題...
<?PHP
$arr = array("
http://tw.yahoo.com/", "
http://google.com/");
?>
<td bgcolor="#000000">
<img src="../../images/index/index_login0102.jpg" alt="" onclick="window.open('<?=array_rand($arr, 1)?>', 'mywindow')" " style="cursor:pointer" />
當我在網頁上次測試後她顯示卻是輪替www.tabc.com.tw/0
www.tabc.com.tw/1是我少了少麼嗎...~_~"