jack_lord1 Posted October 29, 2009 Share Posted October 29, 2009 <p>Hi everyone,<br /> can someone tell how you make this homepage <a href="http://www.emmeclausi.it/">http://www.emmeclausi.it/</a> ?<br /> To have beautiful random images as a background, seems pretty cool and professional</p><p>Thanks!</p> Link to comment Share on other sites More sharing options...
john tonai Posted October 29, 2009 Share Posted October 29, 2009 <p>First you need beautiful random images then look at the page source for the code</p> Link to comment Share on other sites More sharing options...
jack_lord1 Posted October 29, 2009 Author Share Posted October 29, 2009 <p>Did it but can't work it out!</p> Link to comment Share on other sites More sharing options...
mike_stemberg Posted October 29, 2009 Share Posted October 29, 2009 <p>Try Googling 'display random image' or 'simple slideshow' for innumerable examples and even examples of the code itself.</p> Link to comment Share on other sites More sharing options...
sknowles Posted October 29, 2009 Share Posted October 29, 2009 <p>He uses a php script which we can't see, and used <a href="http://www.emmeclausi.it/public/wordpress_2/intro.php">here</a> where you can view the source. This one uses another php script to select the images. It's likely some order in a file or filename sequence. The guy is trying to protect his images from the right click, but if you keep working through the scripts you can overcome that and get to the image to download, which you can see <a href="http://www.emmeclausi.it/public/wordpress_2/wp-content/themes/photojournalist_2/intro_imgs/rotate.php">here</a> where the right click works. You still can't see the script, but as noted, you can find examples in php and javascript on the Web.</p> Link to comment Share on other sites More sharing options...
Matt Laur Posted October 29, 2009 Share Posted October 29, 2009 <p>There are two places where scripts/executables can run. On the browser, or on the server. Server-side scripts (like PHP) are executed before the HTML is ever handed over to you... all you get is the OUTPUT of the script, which happens to include the image tag for the layout you're seeing there. It could be choosing from a list, using a cookie handed to your browser as a possible way of reducing the odds of showing you a repeated image ... or it could be using a random number generator to pick from a substantial enough list of images that the results are essentially the same.<br /><br />Server-side scripts do all SORTS of things that you'll never see when looking at the code that actually makes its way over to the browser. Some sites will use PHP, some ASP/ASPx... others will use ColdFusion or even server-side Java or JavaScript. Doesn't matter ... it's being parsed when you request the page, and the logic is already in the past by the time your browser sees it.<br /><br />Server side scripting is easy, but you're getting into a much more intimiate relationship with the server at that point. Operating system versions, scripting language versions, server-side execution permissions ... all of that starts to come into play when you ask the web server to be something more than essentially a file server that just hands over requested hunks of text and image files. When the web server can execute code before rendering the page, you get MUCH more interesting web sites. But you also increase the complexity of the beast.</p> Link to comment Share on other sites More sharing options...
phule Posted October 29, 2009 Share Posted October 29, 2009 <p>The site is running WordPress.</p> Link to comment Share on other sites More sharing options...
csafdari Posted October 29, 2009 Share Posted October 29, 2009 <p><a href="http://www.alistapart.com/articles/randomizer/">http://www.alistapart.com/articles/randomizer/</a></p> Link to comment Share on other sites More sharing options...
charlessalomons Posted October 29, 2009 Share Posted October 29, 2009 Why don't you drop a note to the site owner ? Link to comment Share on other sites More sharing options...
jack_lord1 Posted October 30, 2009 Author Share Posted October 30, 2009 <p>Thanks everyone for your much appreciated responses. It truly seems a wordpress related page. I was hoping to find some semi auto template doing this, instead of get myself into trouble with coding, or hassling the website's guy for his..<br> Anyway, fhanks again!</p> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now