smordue Posted December 21, 2009 Share Posted December 21, 2009 I have a dropdown list for switching themes, right now it is just the names, but I would like the list to be thumbnail images of the themes with the name, here is the code for my dropdown: <select onchange="window.location.href=this.options[this.selectedIndex].value"> <option selected="selected" >Select Theme</option> <option id="Autumn" value="style-switcher.php?style=Autumn">Autumn</option> <option id="Winter" value="style-switcher.php?style=Winter">Winter</option> </select> Here is my style-switcher.php: <?php $style = $_GET['style']; setcookie("style", $style, time()+604800); if(isset($_GET['js'])) { echo $style; } else { header("Location: ".$_SERVER['HTTP_REFERER']); } ?> Attached is what I would like to do: [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
ChemicalBliss Posted December 21, 2009 Share Posted December 21, 2009 Frankly - this is a Javascript question. Since you will need to use some sort of javascript to modify the default behaviour of the drop-down box. Try asking in the javascript forum - You should get better results. -CB- Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.