Response title
This is preview!
- <script>
- var randomlinks=[];
- randomlinks[0]="page100"
- randomlinks[1]="page110"
- randomlinks[2]="page120"
- function randomlink(){
- var idx = Math.floor(Math.random()*randomlinks.length);
- window.location.hash ='#' + randomlinks[idx];
- }
- </script>
in the body section:
- <a href="javascript:randomlink()" class="slide"><img src="images/but_random.png" class="mybutton"></a>
thanks so much for help.
after the line where you add the hash...after this line(window.location.hash ='#' + randomlinks[idx];)
- window.location.reload( true );
- jQT.goTo('#' + randomlinks[idx], 'dissolve');
© 2013 jQuery Foundation
Sponsored by and others.