Tipsy Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
3 posters

    Tipsy

    !_NICK_!
    !_NICK_!
    Active Poster


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

    Solved Tipsy

    Post by !_NICK_! 4/12/2012, 06:35

    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 5/12/2012, 12:16; edited 1 time in total
    nextlevelgaming
    nextlevelgaming
    Forumember


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

    Solved Re: Tipsy

    Post by nextlevelgaming 5/12/2012, 03:39

    $("#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
    !_NICK_!
    !_NICK_!
    Active Poster


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

    Solved Re: Tipsy

    Post by !_NICK_! 5/12/2012, 11:07

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


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

    Solved Re: Tipsy

    Post by nextlevelgaming 5/12/2012, 11:09

    My code? I only suggested fixings you fix everything in your code?
    !_NICK_!
    !_NICK_!
    Active Poster


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

    Solved Re: Tipsy

    Post by !_NICK_! 5/12/2012, 11:41

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


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

    Solved Re: Tipsy

    Post by Sanket 5/12/2012, 14:25

    Topic Solved & Locked