Wordpress randomizing portrait using PHP parsed text box

From SnOwy - Ed's Wiki Notebook

Jump to: navigation, search
<div style = "text-align: center">
<?php
    switch(rand(0,3)) {
        case 0:
            
            print "<img width=120px src=\"http://eddiema.ca/wp-content/uploads/2009/06/n120804396_37288202_4465.jpg\" /> <p>Somewhere in Guelph.</p>";
            break;
            
        case 1:
            
            print "<img width=120px src=\"http://eddiema.ca/wp-content/uploads/2009/06/n120804396_38697258_8082.jpg\" /> <p>Graduate lounge, Guelph.</p>";
            break;
            
        case 2:
            
            print "<img width=120px src=\"http://eddiema.ca/wp-content/uploads/2009/10/Photo231_fix.png\" /> <p>Now with headphones.</p>";
            break;
            
        case 3:
            
            print "<img width=120px src=\"http://eddiema.ca/wp-content/uploads/2010/04/jeanjacketup.png\" /> <p>Jean jacket, Guelph.</p>";
            break;
    }
    ?>
Ed's Big Plans - <a href="http://eddiema.ca/feed">RSS 2.0</a> | <a href="http://eddiema.ca/feed/atom">Atom</a></div>
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox