MenuCoranto Docs
Coranto LinksPmWiki Home |
Numbering headlines2005-02-20 by bozoka45, Parahead, smart On this page... (hide) Simple HTML Method (by smart)Step #1: Place a <ol> tag in the page/template containing your headlines before the headlines:Step #2: Change your headlines style to:<li><Field: Subject</li> Step #3: Place a </ol> tag in page/template containing your headlines after the headlines.Results: <ol> JavaScript Method (by bozoka45)Step #1:Insert this javascript code in the header section (<head></head>), of the page where you want your news to appear. <script language="JavaScript"> Step #2: Insert this where you want the number to appear in your news style.<script language="JavaScript"> To use an image file instead of plain text, change the document.write line in step 2 to: <script language="JavaScript"> PerlCode Method (by Parahead)Step #1: Insert this at the top of your news style.
<PerlCode> Step #2: Insert this where you want the number to appear in your news style.
<Field: NewsCounter>
For example, to use an image instead of text: <img src="h**p://www.example.com/images/<Field: NewsCounter>.gif" alt="newscounter">
|