random text with html+css only (without PHP, javascript, java or any other language)

it is possible just with HTML + CSS to make such thing?
Lets say i give text "aaa", "bbb", "ccc".
And it should one time write "aaa", another time "ccc', and so on random. :)
This should be done with CSS + HTML only.
Is that possible? :)
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

No it isn't

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
>>This should be done with CSS + HTML only. Is that possible? :)
No. Neither of them are able "manipulate" elements. You need to use scripting for that.
fikitifikitifakAuthor Commented:
hm, will wait for more answers, maybe someone knows :D
and if not possible, maybe with css3 will be possible?
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

>>hm, will wait for more answers,
In the mean time, I suggest you rething your strategy :)
I meant:
.. rethink ...
Mark StegglesWeb DeveloperCommented:
Not possible
not possible without scripting i think you should use javascript
David S.Commented:
You would have to use JavaScript or a server-side language, e.g. PHP, to do that.
Why "just" HTML and CSS?  With only a little Javascript you can do it, and I can't imagine a situation where Javascripting is not possible while CSS3 is.  Modern browsers are capable of JS, and yes, theoretically someone might switch it off but no, practically no one will.

So, are you SURE you need a solution without even Javascript?
HTML and CSS3 are not for that.  If you could get just one random number somehow, you could position a very long random string with CSS to only show a (random) part of it, which would look like "wow, it's another text every time" - but obviously it's not. If you can find a calculated value in CSS3 that represents milliseconds (I'm not aware of anything like that) then maybe, MAYBE, after p*ssing some blood, you could achieve the desired effect.  Worth it? :) Probably not.

So how'bout a good <script> ... </script> tag in body, which makes it a breeze to do it?
I think the original poster maybe does not realize that javascript code can be placed inside html, so that he can get his desired result easily.

Here's some code, try pasting it into your html.

<script language="JavaScript">
var r_text = new Array ();
r_text[0] = "All the leaves are brown";
r_text[1] = "And the sky is grey";
r_text[2] = "I've been for a walk";
r_text[3] = "On a winter's day";
r_text[4] = "I'd be safe and warm";
r_text[5] = "If I was in L.A.";
r_text[6] = "California dreaming, On such a winter's day";
var i = Math.floor(7*Math.random())



Open in new window

However, if you are trying to do something fancy on a site like facebook.com which disables javascript, then you can forget it.
The javascript is disabled so that people can't hack your account... its a good thing.
Forget about random text with just html and css, it can't be done.
Jason C. LevineDon't talk to me.Commented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.