In the future, please post about Dynamic Drive Scripts in the Dynamic Drive Scripts Help section here where I've moved this thread, and:
Warning: Please include a link to the DD script(s) in question in your post. See
this post for more information.
At the bottom of the page, where you have something like:
Code:
<script type="text/javascript">
//randomize order of contents with DIV class="group1"
randomizeContent("group1")
</script>
Make it like so:
Code:
<script type="text/javascript">
(function(){
function getQval(n) {
if(typeof n !== 'string'){
return null;
}
var r = new RegExp('[?&;]' + n + '=([^&;#]*)'), m = location.search;
return (m = r.exec(m))? unescape(m[1]) : null;
}
if(getQval('orig') === 'true'){
//randomize order of contents with DIV class="group1"
randomizeContent("group1")
}
})();
</script>
Now you can have a link on the page to the page - let's say the name of the page is content.html, then like so:
Code:
<a href="content.html?orig=true">See Content in its Original Order</a>
Any other link to the page will show the random content again, like:
Code:
<a href="content.html">See Content in Random Order</a>
However, once ?orig=true is in the address bar, refreshing the page will not randomize.
Bookmarks