The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Tipsy

3 posters

Go down

Solved Tipsy

Post by !_NICK_! 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_!
!_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 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
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_! December 5th 2012, 5:07 am

Your code disabled it, so I had to put my old code back in there.
!_NICK_!
!_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 December 5th 2012, 5:09 am

My code? I only suggested fixings you fix everything in your code?
nextlevelgaming
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_! December 5th 2012, 5:41 am

I finally figured it out after the time I spent working with it. Solved.
!_NICK_!
!_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 December 5th 2012, 8:25 am

Topic Solved & Locked
Sanket
Sanket
ForumGuru

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

Back to top Go down

Back to top

- Similar topics

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