So, is this possible? I've searched for answers but all of the randomized html questions I've found are about the whole page. I just want a little part of the page to be randomized, similar to the random image I have in the same webpage.
The page I'm using for testing is this one: http://vannapruebas.jcink.net/ , I would like to use the toggle that says "búsquedas" for this. So, any help? thanks and exuse my poor english!
All you have to do is make a list of all your css, then you pick one randomly with -> Getting random value from an array
var listOfCSS = ["sample/your.css","sample/another.css"]; var css = listOfCSS[Math.floor(Math.random()*listOfCSS.length)]; document.getElementById('myChangingCSS').setAttribute('href',css);
<link id="myChangingCSS" href="sample/default.css" rel="stylesheet">