View Single Post
Old 01-28-2013, 04:56 PM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,396
Thanks: 18
Thanked 352 Times in 351 Posts
sunfighter is on a distinguished road
Code:
<script type="text/javascript">
this.randomtip = function(){
var length = $("#tips li").length;
for($i = 0; $i < 3; $i++)
{
	var ran = Math.floor(Math.random()*length) + 1;
	$("#tips li:nth-child(" + ran + ")").show();
}
};
$(document).ready(function(){
	randomtip();
});
</script>
I didn't check this, but you see what I did right?
sunfighter is offline   Reply With Quote
Users who have thanked sunfighter for this post:
snarf1974 (02-05-2013)