But i am stuck with with the javascript code that will randomize the background images that i set then insert it into a jQuery script that will fade the randomized image in to my website background .
Here's my idea map :
Javascript:randomly pick a image > insert into jQuery fade in script > jQuery fades in the image .
User will get to see different image when the refresh or each time they visit my website .
Here's the jQuery image fade in script
<!DOCTYPE html>
<html>
<head>
<style>
div { width:1680px; height:1050px; display:none;}
div#image { background:url(image.jpg); }
</style>
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
</head>
<body>
<div id="image"></div>
<script>
$(document.div).ready(function () {
$("div#image").fadeIn(1500);
});
</script>
</body>
</html>
I just want to know anybody knows how to random pick and insert the image into a jQuery script .
Thanks .
Have a wonderful day !

New Topic/Question
Reply



MultiQuote




|