Tipsy
3 posters
Page 1 of 1
Tipsy
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
- Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.
Re: Tipsy
$("#tipsy-w, ").tipsy({gravity: 'w'}); take out the comma.
You could just probably change this
to this
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
- 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
Re: Tipsy
Your code disabled it, so I had to put my old code back in there.
!_NICK_!- Active Poster
- Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.
Re: Tipsy
I finally figured it out after the time I spent working with it. Solved.
!_NICK_!- Active Poster
- Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.
Re: Tipsy
Topic Solved & Locked |
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum