JS sliding gallery

Out of context: Reply #5

  • Started
  • Last post
  • 13 Responses
  • ismith0

    Okay really quick– how do I make this work for each element? It's fucking up with multiple elements and I'm not sure where/how to tell it to apply to each element.

    jQuery.fn.valign = function() {
    $(this)
    .wrapInner('<div class="valign-box"></div>')
    .css("position", "relative");

    xH = $(this).children('.valign-box...
    $(this).children('.valign-box')
    .css({
    "position" : "absolute",
    "height" : xH,
    "top" : "50%",
    "margin-top" : 0-(xH/2)
    });
    };

    • shit I forgot about the truncating on QBN...ismith
    • and fucking google docs keeps fucking it up too this is really pissing me off STOP FUCKING WITH MY FORMATTINGismith
    • Pastebin dude.dMullins

View thread