Welcome Guest [Log In] [Register]
This board has been archived and is no longer accepting new questions. If you have a support question for your ZetaBoard, please visit us at the new support board. Registration is free and easy.


Visit the NEW ZetaBoards Support forum!

Username:   Password:
Add Reply
WebMaker Page only?
Topic Started: Aug 25 2008, 03:13 PM (295 Views)
MERCJ
Member
[ * ]
I found a script for Index only which I used. But now im wondering if theres a script for the wbmaker only. The script im talking about I found here http://support.zetaboards.com/topic/422/1/

Quote:
 
<div class="indexonly">Index Only Code</div>
<script>
if(!location.href.match('/index')){document.write('<style>.indexonly\{display:none;\}</style>');}
</script>



So i was thinking you could just change the word index to pages. NOPE i was wrong.

The reason i chose the word pages is because the webmaker website is
http://s1.zetaboards.com/XXXXXXXXX/pages/XXXXXXXX/
But then theres the part after the wsord pages. Does that need to be included too. IDK Someone help. Thanks

Quote:
 
<div class="pagesonly">Pages Only Code</div>
<script>
if(!location.href.match('/pages')){document.write('<style>.pagesonly\{display:none;\}</style>');}
</script>
Offline Profile Quote Post Goto Top
 
Chris
Member Avatar
Member
[ *  *  *  * ]
try this instead..
Where-ever: (Must be before the script below)
Code:
 
<span class='pages_only'>{{{Content Here}}}</span>


Below Board / Above Copyright:
Code:
 
<script type="text/javascript">
if (!location.href.match(main_url+"pages/")) {$(".pages_only").remove();}
</script>
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · jQuery Help · Next Topic »
Add Reply