Hi, I was wondering if there was a html code where you can put a selection of pictures into it, and each time someone navigates to a differnt page on your site a random picture is shown.
You cant do this with just HTML, you need to use other programming languages such as Javascript, jQuery, or Ajax. But those aren't too difficult to incorporate into your code. Here are some online tutorials that will help you do this: http://javascript.internet.com/miscellaneous/random-image.html http://www.web-source.net/web_development/random_images.htm If you need any help just ask
you can make it it PHP very easily here is the trick . name your pic 1.jpeg,2.jpeg .... n.jpeg create a PHP code using the Rand(1,n) function , it will generate a random number . Use that and append .jpeg and you can display random image very easily .
var quotes = new Array; quotes.push("1"); quotes.push("2"); quotes.push("3"); document.write(quotes[(Math.floor(Math.random() * quotes.length))]); Code (markup): here... use this js..