2005-02-20 by bozoka45, Parahead, smart

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:
1. I brought my dog, Barky, to the zoo today.
2. Barky saw a pink elephant.
3. Barky tried to take a piece of the elephant's pie.
4. Elephant eats Barky.
5. Elephant capitalises Plushpuffin's name.
6. plushpuffin eats elephant.
7. Crys.

Source:

 <ol> 
<li>I brought my dog, Barky to th,e zoo today.</li>
<li>Barky saw a pink elephant.</li>
<li>Barky tried to take a piece of the elephant's pie.</li>
<li>Elephant eats Barky.</li>
<li>Elephant capitalises Plushpuffin's name.</li>
<li>plushpuffin eats elephant.</li>
<li>Crys.</li>
</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">
var number = 0;
</script>

Step #2: Insert this where you want the number to appear in your news style.

 <script language="JavaScript"> 
var number = number++;
document.write(number);
</script>

To use an image file instead of plain text, change the document.write line in step 2 to:

 <script language="JavaScript"> 
var number = number++;
document.write("http://www.example.com/images/" + number + ".gif");
</script>

PerlCode Method (by Parahead)

Step #1: Insert this at the top of your news style.

 <PerlCode> 
$NewsCounter = ++$countitems;
</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">

Categories:




Page last modified on February 02, 2009, at 07:27 PM