[問題]版面修改增加Java的問題
發表於 : 2004-02-15 23:58
請教各位,我欲修改版面,在overall_header.tpl中,尋找到\r
[php]<?php
<span class="gen">{SITE_DESCRIPTION}<br /> </span>
?>[/php]
在他後面增加以下這一段程式碼(隨機廣告),目的是使隨機廣告(使用iframe語法)出現在各網頁最右上方\r
[php]<?php
<script language="JavaScript">
<!--
tips = new Array(2) // 定義矩陣,其中 Array 中的數字代表共有幾則廣告
// 寫入每則廣告的路徑,注意 tips 是從 0 開始
tips[0] = "<iframe marginwidth=0 marginheight=0 src='http://廣告網頁位址' frameborder=0 width=468 scrolling=no height=60>
</iframe>"
tips[1] = ""<iframe marginwidth=0 marginheight=0 src='http://廣告網頁位址' frameborder=0 width=468 scrolling=no height=60>"
index = Math.floor(Math.random() * tips.length)
document.write(tips[index])
//-->
</script>
?>[/php]
之所以這樣做主要是因為我有二個網站,一個網站上有掛上廣告,我要在另一個網站(PhpBB 2.0.6架設)上抓出那個網站上網頁的廣告(必須如此,被迫的),修改版面後,雖然iframe成功了,但是常見問題、搜尋、會員列表....這些全不見了,而且下面討論區的talbe內容也全部無法顯示出來,請各位幫幫忙教我一下!我已經爬文二三個小時了都找不出有效方法!
謝謝大家!
[php]<?php
<span class="gen">{SITE_DESCRIPTION}<br /> </span>
?>[/php]
在他後面增加以下這一段程式碼(隨機廣告),目的是使隨機廣告(使用iframe語法)出現在各網頁最右上方\r
[php]<?php
<script language="JavaScript">
<!--
tips = new Array(2) // 定義矩陣,其中 Array 中的數字代表共有幾則廣告
// 寫入每則廣告的路徑,注意 tips 是從 0 開始
tips[0] = "<iframe marginwidth=0 marginheight=0 src='http://廣告網頁位址' frameborder=0 width=468 scrolling=no height=60>
</iframe>"
tips[1] = ""<iframe marginwidth=0 marginheight=0 src='http://廣告網頁位址' frameborder=0 width=468 scrolling=no height=60>"
index = Math.floor(Math.random() * tips.length)
document.write(tips[index])
//-->
</script>
?>[/php]
之所以這樣做主要是因為我有二個網站,一個網站上有掛上廣告,我要在另一個網站(PhpBB 2.0.6架設)上抓出那個網站上網頁的廣告(必須如此,被迫的),修改版面後,雖然iframe成功了,但是常見問題、搜尋、會員列表....這些全不見了,而且下面討論區的talbe內容也全部無法顯示出來,請各位幫幫忙教我一下!我已經爬文二三個小時了都找不出有效方法!
謝謝大家!