Hahah those random moments of enlightenment are really satisfying, a deep thanks for your time and patience.
In the meantime I've been struggling to get this working properly on my (non-tiddlywiki) home page first, and managed to make it work in my fairly simple landing page albeit with a slightly different solution I found here <http://stackoverflow.com/a/15231912/4660873>. Check it out at www.duarteramos.pt/ I find this code a bit cleaner to use because it is easier to maintain and add more images to, since all you have to do is change the "totalCount" number: <html> <head> <script type="text/javascript"> var totalCount = 10; function ChangeIt() { var num = Math.ceil( Math.random() * totalCount ); // Number padding function pad(n) { return (n < 10) ? ("0" + n) : n; }; var pnum = pad(num) document.body.background = 'path/to/image'+pnum+'.jpg'; } </script> </head> <body> Content </body> </body> <script type="text/javascript"> ChangeIt(); </script> </html> I changed it a bit from the original to account for numbers padding since I plan to have more than ten images. I wonder if something similar could be achieved inside tiddlywiki On Wednesday, 11 March 2015 18:22:57 UTC, Jed Carty wrote: > > Here is a better explanation of how to do it > <http://inmysocks.tiddlyspot.com/#Randomly%20Change%20the%20Background%20Image>. > > I haven't come up with a way to make this work with the startup actions in > the current tiddlywiki version. The changes to how invokeActions works in > the next version makes a lot of things much easier. > > And of course as soon as I say that I realize that what I could do to make > it work. I will post it when I have it set up. It isn't a very good > solution but it should work. > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.

