<style>#one, #two, #three {display: none}</style> <script> document.write( '<style>#', ['one', 'two', 'three'][Math.floor(Math.random()*3)], '{display: block}</style>' ); </script>