46 coaches online • Server time: 10:43
Forum Chat
Log in
Recent Forum Topics goto Post Conceding v Goblins/...goto Post War Drums?goto Post Advice tabletop tour...
SearchSearch 
Post new topic   Reply to topic
View previous topic Log in to check your private messages View next topic
darkwing2k6



Joined: Jun 28, 2007

Post   Posted: Jun 24, 2011 - 18:55 Reply with quote Back to top

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

Post   Posted: Jun 24, 2011 - 20:40 Reply with quote Back to top

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

Post   Posted: Jun 24, 2011 - 21:54 Reply with quote Back to top

no worries, glad i could help Smile
Bob_Bifford



Joined: Feb 08, 2012

Post   Posted: Apr 05, 2012 - 14:46 Reply with quote Back to top

how do i do buttons like this team http://fumbbl.com/FUMBBL.php?page=team&op=view&team_id=609443

any one got the coding for it please.
OenarLod



Joined: Jan 26, 2011

Post   Posted: Apr 05, 2012 - 14:51 Reply with quote Back to top

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
Code:

--></table>


BTW, proper credits go to Garion!
Bob_Bifford



Joined: Feb 08, 2012

Post   Posted: Apr 05, 2012 - 19:29 Reply with quote Back to top

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
Code:

--></table>


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 Smile
Woodstock



Joined: Dec 11, 2004

Post   Posted: Apr 05, 2012 - 19:49 Reply with quote Back to top

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

Post   Posted: Apr 05, 2012 - 21:25 Reply with quote Back to top

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

Post   Posted: Apr 05, 2012 - 21:46 Reply with quote Back to top

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

Post   Posted: Apr 05, 2012 - 22:19 Reply with quote Back to top

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 Wink
Dalfort



Joined: Jun 23, 2008

Post   Posted: Apr 05, 2012 - 23:04 Reply with quote Back to top

what will we be allowed to use then? BB code?

_________________
Image
Christer



Joined: Aug 02, 2003

Post   Posted: Apr 05, 2012 - 23:12
FUMBBL Staff
Reply with quote Back to top

Most likely, yes.
Bob_Bifford



Joined: Feb 08, 2012

Post   Posted: Apr 05, 2012 - 23:13 Reply with quote Back to top

may as well wait then Smile
Dalfort



Joined: Jun 23, 2008

Post   Posted: Apr 07, 2012 - 04:41 Reply with quote Back to top

Thanks Christer, I will spend some time increasing my knowledge base Smile

_________________
Image
Axtklinge



Joined: Feb 02, 2008

Post   Posted: Apr 25, 2012 - 21:02 Reply with quote Back to top

Hi!
How difficult is it to have something like that in the bio of a team?
http://www.fumbbl.com/FUMBBL.php?page=team&op=view&showmatches=1&team_id=694790&quot

Unfortunatly I have 0 (zero) knowledge of html...
Thanks!
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