blacknight Posted July 13, 2011 Share Posted July 13, 2011 ok we at wowroster have been using a showhide script to hide dev sontent it works great .. if your not doing what im doing... i have a list ial just post my axual code <div id="m92" class="selected" style="display:block"> <a href="#" rel="92" onclick=" showHide('92'); showHide('mm92'); return false;">General</a></div> <div id="m95" style="display:block"> <a href="#" rel="95" onclick=" showHide('95s');showHide('m95'); showHide('95');return false;">Player vs. Player</a></div> <div id="95s" style="display:none;"> <div ><a href="#" class="selected" rel="95" onclick="return false;">Player vs. Player</a></div> <div ><a href="#" rel="s165" >--Arena</a></div> <div ><a href="#" rel="s14801" >--Alterac Valley</a></div> <div ><a href="#" rel="s14802" >--Arathi Basin</a></div> <div ><a href="#" rel="s14803" >--Eye of the Storm</a></div> <div ><a href="#" rel="s14804" >--Warsong Gulch</a></div> <div ><a href="#" rel="s14881" >--Strand of the Ancients</a></div> <div ><a href="#" rel="s14901" >--Wintergrasp</a></div> <div ><a href="#" rel="s15003" >--Isle of Conquest</a></div> <div ><a href="#" rel="s15073" >--Battle for Gilneas</a></div> <div ><a href="#" rel="s15074" >--Twin Peaks</a></div> <div ><a href="#" rel="s15075" >--Tol Barad</a></div> <div ><a href="#" rel="s15092" >--Rated Battleground</a></div> </div> <div id="m96" style="display:block"> <a href="#" rel="sub96" onclick=" showHide('sub96'); showHide('m96'); showHide('mm96'); return false;">Quests</a></div> <div id="sub96" style="display:none;"> <div><a href="#" rel="96" class="selected" onclick="return false;">Quests</a></div> <div><a href="#" rel="s14861" >--Eastern Kingdoms</a></div> <div><a href="#" rel="s14862" >--Outland</a></div> <div><a href="#" rel="s14863" >--Northrend</a></div> <div><a href="#" rel="s15070" >--Cataclysm</a></div> <div><a href="#" rel="s15081" >--Kalimdor</a></div> </div> <div id="m97" style="display:block"> <a href="#" rel="sub97" onclick=" showHide('sub97'); showHide('m97'); showHide('mm97'); return false;">Exploration</a></div> <div id="sub97" style="display:none;"> <div id="rp_menu3"> <div><a href="#" rel="97" onclick="return false;">Exploration</a></div> <div><a href="#" rel="s14777" >--Eastern Kingdoms</a></div> <div><a href="#" rel="s14778" >--Kalimdor</a></div> <div><a href="#" rel="s14779" >--Outland</a></div> <div><a href="#" rel="s14780" >--Northrend</a></div> <div><a href="#" rel="s15069" >--Cataclysm</a></div> </div> </div> <div id="m155" style="display:block"> <a href="#" rel="sub155" onclick=" showHide('sub155'); showHide('m155'); showHide('mm155'); return false;">World Events</a></div> <div id="sub155" style="display:none;"> <div id="rp_menu4"> <div><a href="#" rel="155" onclick="return false;">World Events</a></div> <div><a href="#" rel="s156" >--Winter Veil</a></div> <div><a href="#" rel="s158" >--Hallow's End</a></div> <div><a href="#" rel="s159" >--Noblegarden</a></div> <div><a href="#" rel="s160" >--Lunar Festival</a></div> <div><a href="#" rel="s161" >--Midsummer</a></div> <div><a href="#" rel="s162" >--Brewfest</a></div> <div><a href="#" rel="s163" >--Children's Week</a></div> <div><a href="#" rel="s187" >--Love is in the Air</a></div> <div><a href="#" rel="s14941" >--Argent Tournament</a></div> <div><a href="#" rel="s14981" >--Pilgrim's Bounty</a></div> </div> </div> <div id="m168" style="display:block"> <a href="#" rel="sub168" onclick=" showHide('sub168'); showHide('m168'); showHide('mm168'); return false;">Dungeons & Raids</a></div> <div id="sub168" style="display:none;"> <div id="rp_menu5"> <div><a href="#" rel="168" onclick="return false;">Dungeons & Raids</a></div> <div><a href="#" rel="s14805" >--The Burning Crusade</a></div> <div><a href="#" rel="s14806" >--Lich King Dungeon</a></div> <div><a href="#" rel="s14808" >--Classic</a></div> <div><a href="#" rel="s14922" >--Lich King Raid</a></div> <div><a href="#" rel="s15067" >--Cataclysm Dungeon</a></div> <div><a href="#" rel="s15068" >--Cataclysm Raid</a></div> </div> </div> <div id="m169" style="display:block"> <a href="#" rel="sub169" onclick=" showHide('sub169'); showHide('m169'); showHide('mm169'); return false;">Professions</a></div> <div id="sub169" style="display:none;"> <div id="rp_menu6"> <div><a href="#" rel="169" onclick="return false;">Professions</a></div> <div><a href="#" rel="s170" >--Cooking</a></div> <div><a href="#" rel="s171" >--Fishing</a></div> <div><a href="#" rel="s172" >--First Aid</a></div> <div><a href="#" rel="s15071" >--Archaeology</a></div> </div> </div> <div id="m201" style="display:block"> <a href="#" rel="sub201" onclick=" showHide('sub201'); showHide('m201'); showHide('mm201'); return false;">Reputation</a> </div> <div id="sub201" style="display:none;"> <div id="rp_menu7"> <div><a href="#" rel="201" onclick="return false;">Reputation</a></div> <div><a href="#" rel="s14864" >--Classic</a></div> <div><a href="#" rel="s14865" >--The Burning Crusade</a></div> <div><a href="#" rel="s14866" >--Wrath of the Lich King</a></div> <div><a href="#" rel="s15072" >--Cataclysm</a></div> </div> </div> <div id="m81" style="display:block"> <a href="#" rel="sub81" onclick=" showHide('sub81'); showHide('m81'); showHide('mm81'); return false;">Feats of Strength</a> </div> <div id="sub81" style="display:none;"> <div id="rp_menu8"> <div><a href="#" rel="81" onclick="return false;">Feats of Strength</a></div> </div> </div> now say if some one was to click"Player vs. Player" it should hide its self and how s95 but also display a nother cont6ainer with the id of 95 but the big problem is i need s95 to stay open untill a nother main catagory like Quests is clicked.. any one have any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/241912-show-hide-issue-im-so-lost/ 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.