-
Posts
5 -
Joined
-
Last visited
Content Type
Forums
Gallery
Blogs
Events
Store
Downloads
Profiles
Posts posted by piranesi
-
-
Just the single word 'magic' is the password
If the randomly generated URL is attached to a button then I can use it in several places within a page if necessary. I hope this makes sense.
-
Thanks for your observation bangank36. The 100 pages containing contributors images on the theme 'A Picture of Health' are not yet in place. I am presently required to produce just a prototype with 5 pages only. (One landing page and 4 contributor's image pages). I intend to put the random link in the video you see at the top of my test page.
Password. it is now magic
The site is not yet published and is presently a free 14 day trial which has another 5 days to run.
-
Site URL: https://watermelon-eagle-9jge.squarespace.com/config/pages
I am trying to code a button on the header of each page of my SquareSpace site. When clicked the idea is to send the viewer to any one of 100 pages on the site randomly. The reason for this is because the project for the UK's Medical Research Council consists of 100 contributors commenting on the theme 'A Picture of Health'. Rather than provide 100 separate links I'd like the viewer to discover the pages randomly. Rather like flipping the pages of a picture book. So the code would generate a random number from 1 to 100 then concatenate the number with text and send the viewer to a SquareSpace page. For example the user may go to 'page_001.html' or 'page_100.html' or any page within this range. I'm familiar with coding although by no means an expert. Does anyone have any suggestions?
Go to a random page from a list of 100
in Customize with code
Posted
Thanks Creedon. I will give that a try. I'm so grateful for your suggestion.