I want my webpage to randomly display 100 articles, what is the easiest way to do? Anyone can help me? Thank you.
I found this one in the internet, but I don't know how to install it, anyone can help? http://www.sitepoint.com/article/random-content-rotation-made/
OH HEH. TEXT ROTATION IN CSS! http://snook.ca/archives/html_and_css/css-text-rotation edit: i just saw you want to display random articles, not _rotate_ text. silly me. good luck!
Use this http://www.justin-cook.com/wp/2007/09/07/how-to-rotate-an-image-or-text-with-javascript-dhtml/
I don't think that it's possible to do it in just html. I see just two methods - use PHP or Javascript. (Javascript example in post above this)
I'd have to agree with the others on this one. Some sort of script to rotate the content would be best. And it's not the hardest to do either.
I want to display a random article about 500 words but not just a few simple text. However, I don't want to change my webpage from .html to .php, can u do it?
You can use mod rewrite so that 1 html page is interpreted as PHP. The only solution you currently have is through javascript, and that would mean the content wouldn't be indexed by google.
no need to mod rewrite it, you can just set a content handler for .html to go through to php (in httpd.conf) - but this can have a negative performance effect as it would invoke the php parser for each static .html page you have - and most of them won't have any PHP in them. you can load contents of articles dynamically via js of course (ajax etc) - but this wont help much in your SEO - need to be very careful in how you structure it so all articles are spidered.
dimitar, I meant using mod_rewrite to rewrite 1 specific .html to be parsed by PHP. This would not have the negative performance effect you describe.
why not Javascript? I believe you could locate a directory on your server where the articles are based and just add the random method to show them.
But how can I do that? Any script you can recommend? I'm not a programmer and I expect a free script or I can hire somebody who can do the job for me, please help.
Mate its better u do this in php and using mod rewrite make it html if u dont know how to do it i can do it for a small fee
Can u show me how your script work? Would u please install your php script at a webpage and show me how it work? I also need the random article to be indexed by Google and look fresh every time Google crawl my site, can u do that? Please also tell me how much for your services, thank you.