The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

topic buttons nodification

View previous topic View next topic Go down

Solved topic buttons nodification

Post by mmägi on December 1st 2014, 3:33 pm

Code:
        $(function(){
          $(function(){
            $('<a class="sceditor-button sceditor-button-sucesso" unselectable="on" title="Solved"><div unselectable="on" style="background-image:url(http://i.imgur.com/EISZPwN.png)">Solved</div></a>').insertBefore('.sceditor-button-size').click(function(){
                    $('#text_editor_textarea').sceditor("instance").insertText("[table class=solved][tr][td]","[/td][/tr][/table]");
             });
        
            $('<a class="sceditor-button sceditor-button-aviso" unselectable="on" title="Lock"><div unselectable="on" style="background-image:url(http://i.imgur.com/cI8SnOI.png)">Locked</div></a>').insertAfter('.sceditor-button-sucesso').click(function(){
                    $('#text_editor_textarea').sceditor("instance").insertText("[table class=lock][tr][td]","[/td][/tr][/table]");
             });
             $('<a class="sceditor-button sceditor-button-info" unselectable="on" title="Info"><div unselectable="on" style="background-image:url(http://i.imgur.com/40zM1qS.png)">Info</div></a>').insertAfter('.sceditor-button-aviso').click(function(){
                    $('#text_editor_textarea').sceditor("instance").insertText("[table class=info][tr][td]","[/td][/tr][/table]");
             });
             });
              });

i have question what is wrong with the 2 first code parts last one working fine but the first 2 codes not working :S


Last edited by mmägi on December 1st 2014, 7:35 pm; edited 1 time in total

mmägi
Forumember

Male Posts : 402
Reputation : 3
Language : Estonia

http://royal.forumc.net/

Back to top Go down

Solved Re: topic buttons nodification

Post by Mati on December 1st 2014, 5:39 pm

I tried and working fine for me so what problem you have with it.

Mati
Active Poster

Posts : 1873
Reputation : 281
Language : || HTML || CSS || jQuery ||
Location : At the Gym

http://elite-gaming.forumotion.net/

Back to top Go down

Solved Re: topic buttons nodification

Post by mmägi on December 1st 2014, 5:55 pm

the first 2 of them dose not work when i click locked icon or and wrote text there then the img wont show up only the text i wroted into the teble thing there is showing with no colors etc...

mmägi
Forumember

Male Posts : 402
Reputation : 3
Language : Estonia

http://royal.forumc.net/

Back to top Go down

Solved Re: topic buttons nodification

Post by Mati on December 1st 2014, 6:19 pm

To have background-image, background-color and color you need to style it with CSS

Mati
Active Poster

Posts : 1873
Reputation : 281
Language : || HTML || CSS || jQuery ||
Location : At the Gym

http://elite-gaming.forumotion.net/

Back to top Go down

Solved Re: topic buttons nodification

Post by mmägi on December 1st 2014, 7:08 pm

but the last one got img there and background

mmägi
Forumember

Male Posts : 402
Reputation : 3
Language : Estonia

http://royal.forumc.net/

Back to top Go down

Solved Re: topic buttons nodification

Post by Mati on December 1st 2014, 7:11 pm

Post the CSS you use for them.

Mati
Active Poster

Posts : 1873
Reputation : 281
Language : || HTML || CSS || jQuery ||
Location : At the Gym

http://elite-gaming.forumotion.net/

Back to top Go down

Solved Re: topic buttons nodification

Post by mmägi on December 1st 2014, 7:14 pm

at there where i got that thing there was no css code only that javascript but i maybe know whats the problem then i got some other that kind thing javascript got 1 of the ones what i had in css but that lock thing and etc it didnt get hmm


____________________-

ohh i fixed it myself it was so yes that in javascript there was solved table name but in my css was success Very Happy and changed javascript codes and done Very Happy

mmägi
Forumember

Male Posts : 402
Reputation : 3
Language : Estonia

http://royal.forumc.net/

Back to top Go down

Solved Re: topic buttons nodification

Post by SLGray on December 1st 2014, 8:31 pm

Topic solved and archived


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35668
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum