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.

Tipsy

View previous topic View next topic Go down

Solved Tipsy

Post by !_NICK_! on December 4th 2012, 12:35 am

Okay, so I've installed Tipsy. I've got my CSS & other main Javascript code in there. I'll provide all the code in a spoiler. My question is, how do I add more classes and elements? Like '.user-contact' and some more things. I know though my Tipsy_classes work for some, but I'll try and add Classes or ID's, but it don't work. I'll include and example of how I've tried also.


Last edited by !_NICK_! on December 5th 2012, 6:16 am; edited 1 time in total

!_NICK_!
Active Poster

Male Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.

Back to top Go down

Solved Re: Tipsy

Post by nextlevelgaming on December 4th 2012, 9:39 pm

$("#tipsy-w, ").tipsy({gravity: 'w'}); take out the comma.


Code:
$(document).ready(function(){
    $("a.gensmall, .example-tipsy a").tipsy({gravity:'sw'});
    $("a.gensmall, .tipsy-n a").tipsy({gravity: 'n'});
    $("a.gensmall, .tipsy-s a").tipsy({gravity: 's'});
    $("a.gensmall, .tipsy-e a").tipsy({gravity: 'e'});
    $("a.gensmall, .tipsy-w a").tipsy({gravity: 'w'});
    $("a.gensmall, .tipsy-nw a").tipsy({gravity: 'nw'});
    $("a.gensmall, .tipsy-ne a").tipsy({gravity: 'ne'});
    $("a.gensmall, .tipsy-sw a").tipsy({gravity: 'sw'});
    $("a.gensmall, .tipsy-se a").tipsy({gravity: 'se'});
});


You could just probably change this

Code:
$(function() {
$("a.button2, body:last-child a.button1, button.button2, input.button1, input.button2, #example-1, .lastpostbox a, .pun fieldset, .pun img, .tcr a, .group-legend, .pun .main .paged-head.clearfix a, .i_post, .options, .post-options, .user-contact,  ").tipsy({gravity: 's'});
});
$(function() {
$("#tipsy-w,  ").tipsy({gravity: 'w'});
});

to this

Code:
$(function() {
$(".button2,.button1,#example-1, .lastpostbox a, .pun fieldset, .pun img, .tcr a, .group-legend, .pun .main .paged-head.clearfix a, .i_post, .options, .post-options, .user-contact").tipsy({gravity: 's'});
});
$(function() {
$("#tipsy-w").tipsy({gravity: 'w'});
});

Also when ever you can't specifically enter a class or id type in $('.form-frm input').tipsy({gravity:'w'});

hope those fixes bring you closer

nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Solved Re: Tipsy

Post by !_NICK_! on December 5th 2012, 5:07 am

Your code disabled it, so I had to put my old code back in there.

!_NICK_!
Active Poster

Male Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.

Back to top Go down

Solved Re: Tipsy

Post by nextlevelgaming on December 5th 2012, 5:09 am

My code? I only suggested fixings you fix everything in your code?

nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Solved Re: Tipsy

Post by !_NICK_! on December 5th 2012, 5:41 am

I finally figured it out after the time I spent working with it. Solved.

!_NICK_!
Active Poster

Male Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.

Back to top Go down

Solved Re: Tipsy

Post by Sanket on December 5th 2012, 8:25 am

Topic Solved & Locked

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.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