javascript - Changing div content on page load -
i'm looking solution, in div content changes on page load, randomly. javascript image on page load. have made further notes in code below.
i randomize content images javascript on page load, here it's divs , i'm not sure how change content inside them.
<div class="row bslots"> <div class="grid_4 fl"> /* code change */ /* example once <div class="hello"><p>hi</p></div> , other <iframe="link"/> */ </div> <div class="grid_4 fr"> <script>widget2(); /* don't mind this, loading actual js image randomizer here */</script> </div> </div>
can achieved without using js? if not, i'd appreciate basic example fiddle :)
yes achieved without javascript. depends on serverside-technology use. create template , insert serverside ransom image-tags. possible too, via javascript. if want use jquery, like:
$(function(){ $(".grid_4 fl").html(generaterandomimagehtml()); });
Comments
Post a Comment