I needed a slideshow that would load (in a way, asynchronously) after the page has been loaded and would show something without JavaScript. This solution requires jQuery and jQuery Cycle plugin (lite version will do). <div id="slideshow"> <img src="default-image.jpg" alt="" /><!--defaults to this image without javascript --> </div> <script type="text/javascript"> $(document).ready(function() { //// random slides […]
Tag Archives: php
301 Redirect [PHP]
03-Feb-10<?php header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.example.com/new-url/"); Done. PHP 301 redirect is now rolling in given directory once you put that, say, in a file named index.php.
PHP strip single tag
18-May-09Strip Single Tag