jarvis_pants
Joined: Oct 30, 2008
|
http://www.pvv.ntnu.no/~brill/fumbbl/
put ur team number in
copy and paste the code
team number can be found in the address bar when looking at your team |
_________________ "May Nuffle have mercy on your rolls." - St.Basher |
|
Axtklinge
Joined: Feb 02, 2008
|
Posted:
Apr 27, 2012 - 11:44 |
|
Cool, thanks!
I'll try it out and come back to bug you guys more if it doesn't work.
Cheers!
A.
Edit: It worked! Thanks a lot! |
|
|
Bob_Bifford
Joined: Feb 08, 2012
|
  Posted:
May 10, 2012 - 11:17 |
|
JanMattys wrote: | Buttons:
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 /> |
|
This button is messed up it shows the txt first and then hides it when clicking, i want the txt to be hidden when i first go onto the page and the click to see it.
Edit found the one Woodstock got me thanks. |
|
|
hale
Joined: Apr 05, 2008
|
  Posted:
May 11, 2012 - 14:32 |
|
I was trying to do the same thing to show/hide my team history, could you post the working code for it here? |
|
|
Shraaaag
Joined: Feb 15, 2004
|
  Posted:
May 11, 2012 - 14:38 |
|
add style='display:none;' to the <div> you wish to hide:
Code: | <input type="button" value="Show text" onclick="x=document.getElementById('divID');if(x.style.display != 'none'){x.style.display = 'none';this.value='Show text'}else{x.style.display = 'block';this.value='Hide text';}">
<div id='divID' style='display:none;'>YOUR TEXT</div> |
|
_________________
|
|
OenarLod
Joined: Jan 26, 2011
|
  Posted:
May 11, 2012 - 14:40 |
|
Ok, I will post it again even if my first try was refused due to lack of elegance...
The html for the Genetic Replicants is the following:
Code: |
<div align="center"><!--
--><table align="center" border="0"><tr align="center"><td><table border="0" cellspacing="0" cellpadding="5"><!--
--><!-- TEAM MOTTO --><!--
--><tr align="center"><td><!--
--><div align="center"><font color="#000000" size="4"><b>Time to die!</b></font></div><!--
--></td></tr><!--
--><!-- TEAM HISTORY --><!--
--><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"><!--
--><tr valign="middle" bordercolor="#999999"><td width="20%" height="40" ><div align="center"><strong><font color="#000000">Date</font></strong></div></td><td width="60%" height="40"><div align="center"><strong><font color="#000000">Event</font></strong></div></td><td width="20%" height="40"><div align="center"><strong><font color="#000000">Notes</font></strong></div></td></tr><!--
--><tr valign="middle" bordercolor="#999999"><td width="20%" height="40"><div align="center"><strong>December 2011</br>January 2012</strong></div></td><td width="60%" height="40"><div align="center"><a href="https://fumbbl.com/FUMBBL.php?page=group&op=view&at=1&group=2294&p=tournaments&show=30504">Royal Rookie Rumble CCIV</a></div></td><td width="20%" height="40"><div align="center">winner</div></td></tr><!--
--><tr valign="middle" bordercolor="#999999"><td width="20%" height="40"><div align="center"><strong>January 2012<br />February 2012</strong></div></td><td width="60%" height="40"><div align="center"><a href="https://fumbbl.com/FUMBBL.php?page=group&op=view&at=1&group=4945&p=tournaments&show=30827">SMACK Sched VET CXXI</a></div></td><td width="20%" height="40"><div align="center">runner up</div></td></tr><!--
--><tr valign="middle" bordercolor="#999999"><td width="20%" height="40"><div align="center"><strong>March 2012</strong></div></td><td width="60%" height="40"><div align="center"><a href="https://fumbbl.com/FUMBBL.php?page=group&op=view&at=1&group=4945&p=tournaments&show=31126">SMACK Sched PRO CXLI</a></div></td><td width="20%" height="40"><div align="center">runner up</div></td></tr><!--
--><tr valign="middle" bordercolor="#999999"><td width="20%" height="40"><div align="center"><strong>April 2012</strong></div></td><td width="60%" height="40"><div align="center"><a href="https://fumbbl.com/FUMBBL.php?page=group&op=view&at=1&group=4945&p=tournaments&show=31353">SMACK Sched PRO CXLII</a></div></td><td width="20%" height="40"><div align="center">winner</div></td></tr><!--
--><tr valign="middle" bordercolor="#999999"><td width="20%" height="40"><div align="center"><strong>May 2012</strong></div></td><td width="60%" height="40"><div align="center"><a href="https://fumbbl.com/FUMBBL.php?page=group&op=view&at=1&group=4945&p=tournaments&show=31500">SMACK Sched PRO CXLIII</a></div></td><td width="20%" height="40"><div align="center">tbd</div></td></tr><!--
--></table></td></table></td></tr></div><!--
-><!-- TROPHY ROOM --><!--
--><tr align="center"><td><br/><!--
--><div align="center"><span><input type="button" value="Show Trophy Room" style='width:150px;font-size:12px;margin:0px;padding:0px;' onclick="if (this.value == 'Show Trophy Room') { 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 Trophy Room';}"></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"><!--
--><tr valign="middle" bordercolor="#999999"><td width="100%" height="40"><div align="center"><img src="https://fumbbl.com/files/banners/RRRBanner.png"/></br><a href="https://fumbbl.com/FUMBBL.php?page=group&op=view&at=1&group=2294&p=tournaments&show=30504">Royal Rookie Rumble CCIV</a></div></td></tr><!--
--><tr valign="middle" bordercolor="#999999"><td width="100%" height="40"><div align="center"><img src="http://i62.photobucket.com/albums/h116/Mbuur/Fumbbl-smackSched.png"/></br><a href="https://fumbbl.com/FUMBBL.php?page=group&op=view&at=1&group=4945&p=tournaments&show=31353">FUMBBL SMACK Sched PRO CXLII</a></div></td></tr><!--
--></table></td></table></td></tr></div><!--
--><!-- FRANCHISE RECORDS --><!--
--><tr align="center"><td><br/><!--
--><div align="center"><span><input type="button" value="Show Franchise Records" style='width:150px;font-size:12px;margin:0px;padding:0px;' onclick="if (this.value == 'Show Franchise Records') { 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 Franchise Records';}"></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"><!--
--><tr valign="middle" bordercolor="#999999"><td width="20%" height="40"><div align="center"><strong><font color="#000000">Category</font></strong></div></td><td height="40" colspan="2"><div align="center"><strong><font color="#000000">Player</font></strong></div></td><td width="15%" height="40"><div align="center"><strong><font color="#000000">Record</font></strong></div></td></tr><!--
--><tr valign="middle" bordercolor="#999999"><td height="40"><div align="center">Touchdowns</div></td><td width="10%" height="40"><div align="center"><strong><img src="https://fumbbl.com/FUMBBL/Images/PlayerIcons/hthrower1.gif"></strong></div></td><td width="60%" height="40"><div align="center"><a href="https://fumbbl.com/FUMBBL.php?page=player&op=view&player_id=8370106">Eldon Tyrell 1</a></div></td><td height="40"><div align="center">5</div></td></tr><!--
--><tr valign="middle" bordercolor="#999999"><td height="40"><div align="center">Completions</div></td><td width="10%" height="40"><div align="center"><strong><img src="https://fumbbl.com/FUMBBL/Images/PlayerIcons/hthrower1.gif"></strong></div></td><td width="60%" height="40"><div align="center"><a href="https://fumbbl.com/FUMBBL.php?page=player&op=view&player_id=8370106">Eldon Tyrell 1</a></div></td><td height="40"><div align="center">4</div></td></tr><!--
--><tr valign="middle" bordercolor="#999999"><td height="40"><div align="center">Casualties</div></td><td width="10%" height="40"><div align="center"><strong><img src="https://fumbbl.com/FUMBBL/Images/PlayerIcons/hblitzer1.gif"></strong></div></td><td width="60%" height="40"><div align="center"><a href="https://fumbbl.com/FUMBBL.php?page=player&op=view&player_id=8370103">Leon Kowalski 1</a></div></td><td height="40"><div align="center">6</div></td></tr><!--
--><tr valign="middle" bordercolor="#999999"><td height="40"><div align="center">Interceptions</div></td><td width="10%" height="40"><div align="center"><strong><img src="https://fumbbl.com/FUMBBL/Images/PlayerIcons/hlineman1.gif"></strong></div></td><td width="60%" height="40"><div align="center"><a href="https://fumbbl.com/FUMBBL.php?page=player&op=view&player_id=...">xxx</a></div></td><td height="40"><div align="center">0</div></td></tr><!--
--><tr valign="middle" bordercolor="#999999"><td height="40"><div align="center">Pass Yards</div></td><td width="10%" height="40"><div align="center"><strong><img src="https://fumbbl.com/FUMBBL/Images/PlayerIcons/hthrower1.gif"></strong></div></td><td width="60%" height="40"><div align="center"><a href="https://fumbbl.com/FUMBBL.php?page=player&op=view&player_id=8370106">Eldon Tyrell 1</a></div></td><td height="40"><div align="center">11</div></td></tr><!--
--><tr valign="middle" bordercolor="#999999"><td height="40"><div align="center">Rush Yards</div></td><td width="10%" height="40"><div align="center"><strong><img src="https://fumbbl.com/FUMBBL/Images/PlayerIcons/hthrower1.gif"></strong></div></td><td width="60%" height="40"><div align="center"><a href="https://fumbbl.com/FUMBBL.php?page=player&op=view&player_id=8370106">Eldon Tyrell 1</a></div></td><td height="40"><div align="center">207</div></td></tr><!--
--></table></td></table></td></tr></div><!--
--></table></td></tr></table><!--
--></div> |
|
_________________
Join the Human League Premiership!
Last edited by OenarLod on %b %11, %2012 - %17:%May; edited 1 time in total |
|
hale
Joined: Apr 05, 2008
|
  Posted:
May 11, 2012 - 16:27 |
|
thanks dudes this is awesome! |
|
|
Nelphine
Joined: Apr 01, 2011
|
  Posted:
May 11, 2012 - 17:50 |
|
You guys are awesome! One comment; my buttons wouldn't work until I refreshed my browser, which led me to believe they weren't working at all for a good 15 minutes. Is that normal?
And for those who have been scarred for life by Shrieking Bloodstorm's 2 billion page bio, it has BUTTONS NOW! |
|
|
OenarLod
Joined: Jan 26, 2011
|
  Posted:
May 11, 2012 - 17:57 |
|
I have the same behaviour using Chrome as a browser. In IE the buttons work fine even before the refresh. I don't know on Firefox/Safari, I don't have them installed. |
_________________
Join the Human League Premiership! |
|
ClayInfinity
Joined: Aug 15, 2003
|
  Posted:
Jun 18, 2012 - 08:18 |
|
jarvis_pants wrote: | http://www.pvv.ntnu.no/~brill/fumbbl/
put ur team number in
copy and paste the code
team number can be found in the address bar when looking at your team |
Is there a way for the results of these scripts to auto-update when the team changes rather than manually doing it from the pw.ntnu website?
e.g. here is my team: https://fumbbl.com/FUMBBL.php?page=team&op=view&team_id=656412 |
|
|
jarvis_pants
Joined: Oct 30, 2008
|
Hey clay.
Unfortunately not as it dosent just link to something outside the site which then compiles.
So im afraid its manualy.
My suggestion add some other fluff to your team and as your updating that you will remind yourself to re run your scripts. |
_________________ "May Nuffle have mercy on your rolls." - St.Basher |
|
Shraaaag
Joined: Feb 15, 2004
|
  Posted:
Jun 18, 2012 - 08:34 |
|
ClayInfinity wrote: |
Is there a way for the results of these scripts to auto-update when the team changes rather than manually doing it from the pw.ntnu website? |
Nope, sorry. Reason: <insert web-security technobabble> |
_________________
|
|
ClayInfinity
Joined: Aug 15, 2003
|
  Posted:
Jun 18, 2012 - 08:51 |
|
No worries... thought I was missing something.
Great site Shraaag. Thanks for putting it together! |
|
|
jarvis_pants
Joined: Oct 30, 2008
|
Hey shraaaag
i LOVE the scripts. I have no idea how much effort it is to get these working but a few extras that would be cool would be
Most fouls in a match/most touchdowns/most cas/most passes could be in a different section any other stuff like that if its easy to compile. If its not then dont worry.
If im making a wishlist then also take a look at my players i dont suppose theres any way to automate those casualities?
http://www.fumbbl.com/FUMBBL.php?page=team&op=view&team_id=683627
The fling mafia loves shraaaaaag |
_________________ "May Nuffle have mercy on your rolls." - St.Basher |
|
dementor42
Joined: Oct 27, 2017
|
  Posted:
Jan 04, 2024 - 02:57 |
|
|
|