我正在使用腳本在樣式表之間切換。它可以在主頁上正常工作(http://autisticadvocacy.uniongraphics.org)。styleswitcher腳本和相關URL
當我點擊「文字放大」按鈕(在輔助部件在側邊欄的頂部),它返回正確的網址,這是http://www.uniongraphics.org/asan/wp-content/themes/asan/css/switcher.php?style=zoom120.css
但在所有其他網頁返回404錯誤。因此,舉例來說,如果我從關於頁面(http://www.uniongraphics.org/asan/about-asan)
單擊相同的側邊欄鏈接,則它會嘗試找到http://www.uniongraphics.org/asan/about-asan/wp-content/themes/asan/css/switcher.php?style=zoom120.css,並返回404錯誤。
我知道這可能是相對URL或文件路徑的一些非常基本的問題,但我已經嘗試了所有我能想到的組合來獲得鏈接的工作,我不知道還有什麼可以嘗試的。
這裏的鏈接是怎麼寫的小工具:
<a href=wp-content/themes/asan/css/switcher.php?style=zoom120.css><img src="http://autisticadvocacy.uniongraphics.org/wp-content/uploads/2012/02/IncreaseTextSize.gif" alt="Increase text size"></a>
讓我知道如果你需要更多的信息。任何幫助非常感謝。