How do I add two buttons to the window transmission
2 posters
Page 1 of 1
How do I add two buttons to the window transmission
How do I add two buttons to the window transmission ?
As the picture
As in this forum
ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
Re: How do I add two buttons to the window transmission
Hello ane taa,
You can write new buttons by adding the following script :
Administration Panel > Modules > JavaScript codes management > Create a new script
Title : Your choice
Placement : In all the pages
Paste the code below :
To add a new button write newButton(); between the parenthesis you must fill out the following information in order :
Title : the tooltip for the button i.e. a description of what it does
Image : the image URL of the button
Opening Tags : The open bbtags for your button i.e. [b ]
Closing Tags : The closing bbtags for your button i.e. [/b ]
It should look like the default buttons I have in the code for example :
You can write new buttons by adding the following script :
Administration Panel > Modules > JavaScript codes management > Create a new script
Title : Your choice
Placement : In all the pages
Paste the code below :
- Code:
$(function(){$(function() {
newButton('Insert colored bold tags','http://i57.servimg.com/u/f57/18/21/41/30/b10.png','[color=blue][b]','[/b][/color]');
newButton('Insert colored italic tags','http://i57.servimg.com/u/f57/18/21/41/30/i10.png','[color=blue][i]','[/i][/color]');
newButton('Insert colored underline tags','http://i57.servimg.com/u/f57/18/21/41/30/u10.png','[color=blue][u]','[/u][/color]');
newButton('Insert colored strike tags','http://i57.servimg.com/u/f57/18/21/41/30/s10.png','[color=blue][strike]','[/strike][/color]');
function newButton(title, image, tagOpen, tagClose) {$('.sceditor-group:has(.sceditor-button-quote)').append('<a title="'+title+'" class="sceditor-button sceditor-button-custom" unselectable="on"><div unselectable="on" style="background-image:url('+image+');"><span id="tagOpen">'+tagOpen+'</span><span id="tagClose">'+tagClose+'</span></div></a>')}
$('.sceditor-button-custom').click(function() {$('#text_editor_textarea').sceditor('instance').insertText($(this).find('#tagOpen').text(),$(this).find('#tagClose').text())});
})});
To add a new button write newButton(); between the parenthesis you must fill out the following information in order :
Title : the tooltip for the button i.e. a description of what it does
Image : the image URL of the button
Opening Tags : The open bbtags for your button i.e. [b ]
Closing Tags : The closing bbtags for your button i.e. [/b ]
It should look like the default buttons I have in the code for example :
- Code:
newButton('Insert colored bold tags','http://i57.servimg.com/u/f57/18/21/41/30/b10.png','[color=blue][b]','[/b][/color]');
Re: How do I add two buttons to the window transmission
Thank you, but I want these buttons because they are carrying out a bid for the chess board
I can also review the role of chess
As in this forum
Re: How do I add two buttons to the window transmission
Please stick to the default font, you're allowed to highlight certain parts however, writing in colored font is reserved for staff moderation.
I would not know the function of the button, perhaps you could ask the owner of that site for permission to use their buttons.
I would not know the function of the button, perhaps you could ask the owner of that site for permission to use their buttons.
Similar topics
» Window
» Open links in new window or same window?
» How would I change the "visitor messages" "post" or "reply" buttons from the private message buttons?
» pm pop up window
» Pop-up window Log in
» Open links in new window or same window?
» How would I change the "visitor messages" "post" or "reply" buttons from the private message buttons?
» pm pop up window
» Pop-up window Log in
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum