It bothered me that regardless of what page you were on this would redirect you to index.php when you change the color so I wrote up a simple javascript so when a user selects a different color they stay on the page they were viewing.
Place this above your color images:
Quote:
<script type="text/javascript">
<!--
//<![CDATA[
function updatestyle(styleid){
location.href = location.href + "?styleid=" + styleid;
}
//]]>
// -->
</script>
|
Then the color image/link would change to:
Quote:
<a href="#" onclick="updatestyle(5);"><img src="http://www.ukbusinesslive.co.uk/forum/images/misc/green.png"></a>
|
onclick="updatestyle(5);" 5 represents the style id, change this to whatever.
Enjoy