inherit
58740
0
Aug 20, 2024 7:29:21 GMT -8
®i©hie
I'm not very active here anymore thanks to my full-time job. - 12/27/23
14,036
September 2005
soe
|
Post by ®i©hie on Jul 22, 2014 8:09:12 GMT -8
®i©hieI don't know why but it seems to be working now! Oo... Thanks!! ok, let me know if you have any further problems
|
|
Former Member
inherit
guest@proboards.com
177794
0
Nov 24, 2024 4:31:08 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Mar 23, 2015 19:56:47 GMT -8
Hiya ®i©hie! Is there anyway I can change the word attack on the button to something else? Thanks!
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Mar 23, 2015 21:38:11 GMT -8
Hiya ®i©hie! Is there anyway I can change the word attack on the button to something else? Thanks! <script> $(document).ready(function() { var tempbut = $('a.button') for(zz=0;zz<tempbut.length;zz++) {if($(tempbut[zz]).html()=='Attack'){$(tempbut[zz]).html('Whatever You Want')} } }); </script> Adding that script to your global head and footer would replace attack with Whatever You Want
|
|
Former Member
inherit
guest@proboards.com
177794
0
Nov 24, 2024 4:31:08 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Mar 23, 2015 22:06:16 GMT -8
Hiya ®i©hie! Is there anyway I can change the word attack on the button to something else? Thanks! <script> $(document).ready(function() { var tempbut = $('a.button') for(zz=0;zz<tempbut.length;zz++) {if($(tempbut[zz]).html()=='Attack'){$(tempbut[zz]).html('Whatever You Want')} } }); </script> Adding that script to your global head and footer would replace attack with Whatever You Want Thanks that was a big help! ^^
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Mar 23, 2015 22:57:47 GMT -8
<script> $(document).ready(function() { var tempbut = $('a.button') for(zz=0;zz<tempbut.length;zz++) {if($(tempbut[zz]).html()=='Attack'){$(tempbut[zz]).html('Whatever You Want')} } }); </script> Adding that script to your global head and footer would replace attack with Whatever You Want Thanks that was a big help! ^^ I thought you knew where to put it. Some people are confused.
|
|
Former Member
inherit
guest@proboards.com
177794
0
Nov 24, 2024 4:31:08 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Mar 24, 2015 23:43:09 GMT -8
Hiya ®i©hie! If you have time would there be a way to toggle on and off the Damage Dealt to this plug in so it just uses the random text?
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Mar 25, 2015 13:27:36 GMT -8
Hiya ®i©hie! If you have time would there be a way to toggle on and off the Damage Dealt to this plug in so it just uses the random text? Modified Script: Just change 'Random Text' and 'Whatever I want' <script> $(document).ready(function() { var tempbut = $('a.button')
for(zz=0;zz<tempbut.length;zz++)
{if($(tempbut[zz]).html()=='Attack'){
$(tempbut[zz]).clone().html('Random Text').attr('href','javascript:rpgdamage2()').insertAfter($(tempbut[zz]))
$(tempbut[zz]).html('Whatever I want')}
} }); <!-- function rpgdamage2(){ var plugin=proboards.plugin.get("rpg_random_damage_generator"); var msg=plugin.settings.random_messages; var msgarea=document.getElementsByName("message")[0]; var damage=Math.floor(Math.random()*(100-20+1))+20; var fail=Math.floor(Math.random()*100)+1; var ranmes=Math.floor(Math.random()*msg.length); var miss="No"; if(fail<=plugin.settings.chance_of_a_miss){ miss="Yes"; } if(miss=="No"){ msgarea.value+='\n\n'+msg[ranmes].messages+''; }else{ msgarea.value+='\n\n'+msg[ranmes].messages+''; } $(".form_post_quick_reply").submit(); } // --> </script>
|
|
Former Member
inherit
guest@proboards.com
177794
0
Nov 24, 2024 4:31:08 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Mar 27, 2015 9:39:54 GMT -8
Hiya ®i©hie! If you have time would there be a way to toggle on and off the Damage Dealt to this plug in so it just uses the random text? Modified Script: Just change 'Random Text' and 'Whatever I want' <script> $(document).ready(function() { var tempbut = $('a.button')
for(zz=0;zz<tempbut.length;zz++)
{if($(tempbut[zz]).html()=='Attack'){
$(tempbut[zz]).clone().html('Random Text').attr('href','javascript:rpgdamage2()').insertAfter($(tempbut[zz]))
$(tempbut[zz]).html('Whatever I want')}
} }); <!-- function rpgdamage2(){ var plugin=proboards.plugin.get("rpg_random_damage_generator"); var msg=plugin.settings.random_messages; var msgarea=document.getElementsByName("message")[0]; var damage=Math.floor(Math.random()*(100-20+1))+20; var fail=Math.floor(Math.random()*100)+1; var ranmes=Math.floor(Math.random()*msg.length); var miss="No"; if(fail<=plugin.settings.chance_of_a_miss){ miss="Yes"; } if(miss=="No"){ msgarea.value+='\n\n'+msg[ranmes].messages+''; }else{ msgarea.value+='\n\n'+msg[ranmes].messages+''; } $(".form_post_quick_reply").submit(); } // --> </script> Oh thanks! Global header and footer as well?
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Mar 27, 2015 11:01:27 GMT -8
Modified Script: Just change 'Random Text' and 'Whatever I want' <script> $(document).ready(function() { var tempbut = $('a.button')
for(zz=0;zz<tempbut.length;zz++)
{if($(tempbut[zz]).html()=='Attack'){
$(tempbut[zz]).clone().html('Random Text').attr('href','javascript:rpgdamage2()').insertAfter($(tempbut[zz]))
$(tempbut[zz]).html('Whatever I want')}
} }); <!-- function rpgdamage2(){ var plugin=proboards.plugin.get("rpg_random_damage_generator"); var msg=plugin.settings.random_messages; var msgarea=document.getElementsByName("message")[0]; var damage=Math.floor(Math.random()*(100-20+1))+20; var fail=Math.floor(Math.random()*100)+1; var ranmes=Math.floor(Math.random()*msg.length); var miss="No"; if(fail<=plugin.settings.chance_of_a_miss){ miss="Yes"; } if(miss=="No"){ msgarea.value+='\n\n'+msg[ranmes].messages+''; }else{ msgarea.value+='\n\n'+msg[ranmes].messages+''; } $(".form_post_quick_reply").submit(); } // --> </script> Oh thanks! Global header and footer as well? Yeah I think either or would work. Just replace the code I gave you with this one.
|
|
Former Member
inherit
guest@proboards.com
177794
0
Nov 24, 2024 4:31:08 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Mar 29, 2015 18:10:33 GMT -8
Thanks!
|
|