inherit
169267
0
Nov 23, 2024 18:59:51 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Dec 10, 2012 9:24:20 GMT -8
I have a code that Brian gave me to hide the shout box on custom pages but it seem to work with only one page.
Main footer code:
On layout template line 1 for shoutbox Add (delete original line) <div id="hideshoutbox" class="$[shoutbox_class] container full">
Main "footer" <script type="text/javascript"> var hideLocation = new Array();
// List of URLs to hide shoutbox on hideLocation[0] = "http://#####.freemessageboards.com/"; hideLocation[1] = "http://#####.freemessageboards.com/page/reg/";
for(i=0; i < hideLocation.length; i++) { if(window.location.href == hideLocation[i]) document.getElementById('hideshoutbox').style.display = "none"; } </script>
Can someone look this over and advise me to what maybe wrong. Thanks
Edit: This works now, have any questions pm.
|
|