darkwing2k6
Joined: Jun 28, 2007
|
  Posted:
Jun 24, 2011 - 18:55 |
|
hey WhatBall, ive had a go at it, hope this helps-
Code: |
<input type="image" src="https://fumbbl.com/i/340148" value="Show Standings" onclick="x=document.getElementById('standings'); document.getElementById('stats').style.display = 'none'; if(x.style.display != 'none'){x.style.display = 'none';}else{x.style.display = 'block';}"><img src="https://fumbbl.com/i/340144"><input type="image" src="https://fumbbl.com/i/340147" value="Show Stats" onclick="x=document.getElementById('stats');document.getElementById('standings').style.display = 'none'; if(x.style.display != 'none'){x.style.display = 'none'}else{x.style.display = 'block'}"><img src="https://fumbbl.com/i/340144"> |
you need to copy/paste this over where you currently have your <input> tags and put it all on the same line like you had it before |
|
|
WhatBall
Joined: Aug 21, 2008
|
  Posted:
Jun 24, 2011 - 20:40 |
|
Thanks darkwing!
That makes sense. I assume I can add more display="none" lines as I add more divs?
Edit: answered my own question, got it working as desired. Thanks again. |
|
|
darkwing2k6
Joined: Jun 28, 2007
|
  Posted:
Jun 24, 2011 - 21:54 |
|
no worries, glad i could help |
|
|
Bob_Bifford
Joined: Feb 08, 2012
|
  Posted:
Apr 05, 2012 - 14:46 |
|
|
OenarLod
Joined: Jan 26, 2011
|
  Posted:
Apr 05, 2012 - 14:51 |
|
Here you are:
Code: |
<tr align="center"><td><br/><!--
--><div align="center"><span><input type="button" value="Show Team History" style='width:150px;font-size:12px;margin:0px;padding:0px;' onclick="if (this.value == 'Show Team History') { this.parentNode.parentNode.getElementsByTagName('span')[1].getElementsByTagName('span')[0].style.display = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('span')[1].getElementsByTagName('span')[0].style.display = 'none'; this.value = 'Show Team History';}"></span><span><span style='display: none;'><!--
--><style type="text/css"> pwbio{ border-collapse:collapse; border:1px solid black; } .pwbio td { border:1px solid black; }</style><!--
--><table class=pwbio ><td style='text-align:left;'><!--
--><table width="650px" border="1"><!--
|
put table rows here
BTW, proper credits go to Garion! |
|
|
Bob_Bifford
Joined: Feb 08, 2012
|
  Posted:
Apr 05, 2012 - 19:29 |
|
OenarLod wrote: | Here you are:
Code: |
<tr align="center"><td><br/><!--
--><div align="center"><span><input type="button" value="Show Team History" style='width:150px;font-size:12px;margin:0px;padding:0px;' onclick="if (this.value == 'Show Team History') { this.parentNode.parentNode.getElementsByTagName('span')[1].getElementsByTagName('span')[0].style.display = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('span')[1].getElementsByTagName('span')[0].style.display = 'none'; this.value = 'Show Team History';}"></span><span><span style='display: none;'><!--
--><style type="text/css"> pwbio{ border-collapse:collapse; border:1px solid black; } .pwbio td { border:1px solid black; }</style><!--
--><table class=pwbio ><td style='text-align:left;'><!--
--><table width="650px" border="1"><!--
|
put table rows here
BTW, proper credits go to Garion! |
Thanks but its not working properly and the coding looks all messy, i don't know alot about coding but im sure i have seen it neater than that |
|
|
Woodstock
Joined: Dec 11, 2004
|
  Posted:
Apr 05, 2012 - 19:49 |
|
On page 9 of this thread:
Code: | <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 /> |
|
|
|
Bob_Bifford
Joined: Feb 08, 2012
|
  Posted:
Apr 05, 2012 - 21:25 |
|
Woodstock wrote: | On page 9 of this thread:
Code: | <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 /> |
|
thank you woodstock didn't see it on page 9 maybe it should be added to the OP as that guide is very helpful |
|
|
KhorneliusPraxx
Joined: Jul 28, 2005
|
  Posted:
Apr 05, 2012 - 21:46 |
|
all of my html codes were fine and worked perfectly until some time this year when they ALL changed at the same time. What happened? I assume the site changed something? for example:
http://fumbbl.com/FUMBBL.php?page=group&op=view&group=2616
the tables on this page use to be surrounded by color lines and all of the info in it were centered in their columns.
one day I signed on and BAM! it looked like this. :-/ |
_________________ Hopefully my pulsating avatar will remind you to always take +1 Strength...ALWAYS! |
|
Woodstock
Joined: Dec 11, 2004
|
  Posted:
Apr 05, 2012 - 22:19 |
|
Site CSS changed yes, but don't worry too much, HTML will be disabled at some point and you will have to redo it again |
|
|
Dalfort
Joined: Jun 23, 2008
|
  Posted:
Apr 05, 2012 - 23:04 |
|
what will we be allowed to use then? BB code? |
_________________
|
|
Christer
Joined: Aug 02, 2003
|
|
Bob_Bifford
Joined: Feb 08, 2012
|
  Posted:
Apr 05, 2012 - 23:13 |
|
may as well wait then |
|
|
Dalfort
Joined: Jun 23, 2008
|
  Posted:
Apr 07, 2012 - 04:41 |
|
Thanks Christer, I will spend some time increasing my knowledge base |
_________________
|
|
Axtklinge
Joined: Feb 02, 2008
|
  Posted:
Apr 25, 2012 - 21:02 |
|
|
|