Advanced:
Add a Random Quote to Your Page
How
would you like your site to be slightly different every
time a visitor comes to your page? It's fairly simple to
insert a random quote or joke on your page.
The
key is a special Freeservers.com HTML tag, the ISML tag.
First,
create a text file with each quote that you want to use
on a separate line. To see a sample text file, click
here.
In your
HTML file, find the place you want the random quote to appear,
and insert the following code (use the name of your text
file instead of quotes.txt):
<ISML
type=file src=quotes.txt line=random>
Save
your work and upload the necessary files to your site. Now,
each time you view the page, a random quote will be displayed,
such as this:
"I'll be back." -- Arnold Schwarzenegger
Refresh
the page to see a different quote.
You
can put text formatting around the ISML tag and it will
apply to the text brought in by the tag. If you want to
get a bit more ambitious, you can include HTML formatting
in your text file to format the quotes, or even include
an image. Remember, though, that each one must be on a separate
line.
|