ページの読み込み時に div コンテンツがランダムに変化するソリューションを探しています。ページ読み込み時の JavaScript 画像によく似ています。以下のコードでさらにメモを取りました。
ページの読み込み時に JavaScript を使用して画像のようなコンテンツをランダム化できますが、ここでは div であり、その中のコンテンツを変更する方法がわかりません。
<div class="row BSlots">
<div class="Grid_4 fl">
/* This would be the code which would change */
/* For example once it would be <div class="hello"><p>Hi</p></div> and the other <iframe="Link"/> */
</div>
<div class="Grid_4 fr">
<script>Widget2(); /* Don't mind this, loading an actual JS image randomizer here */</script>
</div>
</div>
JSを使わずにこれを達成できますか?そうでない場合は、いじることができる基本的な例をいただければ幸いです:)