You are here: Re: How do I put random quotes on my web site? « HTML « IT news, forums, messages
Re: How do I put random quotes on my web site?

Posted by Mitja Trampus on 03/11/06 01:22

Chris Ianson wrote:
> "Jim Moe" <jmm-list.AXSPAMGN@sohnen-moe.com> wrote in message
> news:0LudnSBOR9T5f4zZRVn-tw@giganews.com...
>> Chris Ianson wrote:
>>> Hi, I'm looking for a simple newbie way to put quotes into HTML code, and
>>> have them randomise each time the page is refreshed. What's the easy
>>> solution?
>>>
>> Client-side: use Javascript. Server-side: use PHP, JSP, perl, etc.
>> Open a file of quotes, use a random number generator to select a line of
>> text, print it.
>
> Sorry, can you show me an example in Java please, with say 2 quotes.

Java and JavaScript are two entirely different things. Java is in fact hidden in the "JSP"
above - Java Server Pages.

> I have
> no idea what any of that means :S

Then no example can help you (enough). The easiest (though shoddiest) way to go is
JavaScript; you can find a script on Google with instruction on how to put it on your
site, requiring no knowledge of what is actually going on.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация