- Code:
$(function() {
var Rolltxt = '<div id="Rolled">ROLL MESSAGE</div>';
$('#quick_reply input[value="Send"]').after('<input id="Roll" class="mainoption" style="margin-left:6px;" type="submit" value="Roll" name="post"></input>');
$('#Roll').click(function() {
$('#quick_reply textarea').val(Rolltxt);
$('#quick_reply i-frame').contents().find('body').html(Rolltxt);
});
});
lets take this coding and change so it shows up as a button on the chatbox i tried by just changing a few lines
- Code:
$(function() {
var Rolltxt = '<div id="Rolled">ROLL MESSAGE</div>';
$('#chatbox input[value="Send"]').after('<input id="Roll" class="mainoption" style="margin-left:6px;" type="submit" value="Roll" name="post"></input>');
$('#Roll').click(function() {
$('#chatbox textarea').val(Rolltxt);
$('#chatbox i-frame').contents().find('body').html(Rolltxt);
});
});
where i want the button to show up http://prntscr.com/6reo7s
Last edited by niquon715 on April 9th 2015, 11:34 am; edited 1 time in total