86 coaches online
Index Search Usergroups Profile
Log in
Recent Forum Topics goto Post New Orc Strategy Gui...goto Post An interesting skill...goto Post International League...
 
FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   ProfileProfile 
Post new topic   Reply to topic
View previous topic Log in to check your private messages View next topic
Prez



Joined: Aug 02, 2003
Location: Fareham

Post   Posted: Jul 17, 2010 - 11:59 Reply with quote Back to top

Is it possible to put "Show/Hide" buttons in your profile, I can get it to work in a team Bio but not in my own profile. What am I doing wrong or how do I do it?

The code I'm presently trying to use, taken from Html for Beginners

<div><span><input type="button" value="SHOW TEXT" style='width:150px;font-size:10px;margin:0px;padding:0px;' onclick="if (this.value == 'SHOW TEXT') { this.parentNode.parentNode.getElementsByTagName('span')[1].getElementsByTagName('span')[0].style.display = ''; this.value = 'HIDE TEXT'; } else { this.parentNode.parentNode.getElementsByTagName('span')[1].getElementsByTagName('span')[0].style.display = 'none'; this.value = 'SHOW TEXT';}"></span><span><div class="alt2" style='margin: 0px; width:400px; border: 0px solid;'><span style='display: none;'><br>TEXT</b></div><br />


Thanks for any help in advance

_________________
Prez
Display posts from previous:     
 Jump to:   
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Log in to check your private messages View next topic
Powered by PNphpBB2 1.2 © 2003 PNphpBB Group
Credits