A
A
Alexander Wolf2015-08-08 17:08:36
PHP
Alexander Wolf, 2015-08-08 17:08:36

Different page content on refresh. Realizable?

Hello. There is such an idea:
Make a different design on the page when it is updated. Or rather, not the design, but the content.
I found an ascii generator, made a drawing there, placed it in the center of the page, so that when it was updated, it would change to a new one.
It seems that he correctly formulated the idea with:
I haven’t slept for several days, I just can’t gather my thoughts.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
7
7rulnik, 2015-08-08
@7rulnik

Well you can use sessionStorage for that.

M
Maxim Timofeev, 2015-08-08
@webinar

When contacting the server, generate a random number from 1 to 10, for example.
Make 10 pictures with the name opana_1.jpg, opana_2.jpg, etc.
Output

echo '<img src="путь_к_папке/opana_"'.$rand.'.jpg" >';

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question