Include the content from other webpages: Difference between revisions
Jump to navigation
Jump to search
m (14個修訂) |
(→javascript: add Page Headers And Footers) |
||
| Line 16: | Line 16: | ||
== javascript == | == javascript == | ||
* general | * general ([http://www.netmechanic.com/news/vol4/javascript_no9.htm JavaScript Tip: Page Headers And Footers]) | ||
<script language="JavaScript" type="text/javascript" src="path/to.js"></script> | <script language="JavaScript" type="text/javascript" src="path/to.js"></script> | ||
Revision as of 18:29, 17 May 2010
usage
- seperate the navigation and content into two parts
- compare the content from two webpages
approach
frame or iframe
- frame or iframe tag, object tag
- 缺點是瀏覽器上的鏈結,非該篇網頁的靜態鏈結。
- cross frame layers
Apache
javascript
- general (JavaScript Tip: Page Headers And Footers)
<script language="JavaScript" type="text/javascript" src="path/to.js"></script> <noscript><a href="URL">Description</a><noscript>
PHP require / include function
PHP require_once(), include function ...
wiki softwares
- DokuWiki export
- Mediawiki: MediaWiki Template or transclude syntax(Mediawiki formatting rules)
- oddmuse wiki: Transclusion means to include a wiki page from elsewhere into your current page
other software
other software
- MovableType: template modules, or MultiBlog plugin