k Posted October 29, 2010 Share Posted October 29, 2010 請問怎樣可能把footer.tpl 使用script等語法???另外在header.tpl內我一加script的語法就不能進入頁面,變成全白希望能盡快得到解決方法吧~謝謝 Link to comment Share on other sites More sharing options...
21846657 Posted October 29, 2010 Share Posted October 29, 2010 在tpl里加入JavaScript或CSS,你需要用下面的代码告诉smarty以JavaScript或CSS的方式来处理: {literal} <script type="text/javascript"> 你的JavaScript代码 </script> {/literal} Good luck! Link to comment Share on other sites More sharing options...
k Posted November 1, 2010 Author Share Posted November 1, 2010 感謝了!!應該沒問題 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now