How about adding add the top
Code:
<?php
$pageURL = $_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://';
$pageURL .= $_SERVER['SERVER_PORT'] != '80' ? $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"] : $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
?>
and then change
Code:
<a id="cctoggle" href="#" style="background-position-x: 0;">
to
Code:
<a id="cctoggle" href="<?php echo $pageURL ; ?>" style="background-position-x: 0;">
seems to build the correct URL for individual pages - but i am not an expert - so what does anyone think.
Allan
Bookmarks