www.webdeveloper.com
Results 1 to 2 of 2

Thread: Please Help...

  1. #1
    Join Date
    Jun 2012
    Posts
    1

    Question Please Help...

    Hi All,
    So I am pretty new with Javascript. I need help figuring out how to add padding to the loading.gif. I would like for it to be centered.

    click(function() { if (!at) { ap = "forward"; if (c.circular) { if (aG <= 0) { aG = af } } an() } }); J.click(function() { if (!at) { ap = "backward"; if (c.circular) { if (aG >= af - 1) { aG = -1 } } an() } }); aa.append(a("<img/>").css({ top: aa.height() / 2, left: aa.width() / 2 }).attr("src", "loading.gif")); var C = 0; for (var P = 0; P < ai.length; P++) { var Q = a("<img/>").attr("src", a(ai[P]).attr("href")); Q.load(function() { C++; if (C == ai.length) { aa.find("img").remove(); a.each(ai, function(i, aK) { aa.append(a("<img/>").css("display", "none").addClass(a(aK).attr("class")).attr("src", "" + a(aK).attr("href") + "").attr("alt", a(aK).attr("title"))) }); p = aa.find("img"); p.css("z-index", "98"); aa.find("img:eq(0)").css("z-index", "101"); aa.find("img:gt(0)").css("z-index", "98").css("display", ""); E.find("a").remove(); D = 0; av = p.length; ac() } }) } var ah = a("<div/>").addClass("gallery-nav-left");


    Here is the link....

    http://laureness.me/ironkettle/gallery.html

    Thank you so much!!

    -Lauren

  2. #2
    Join Date
    Mar 2009
    Posts
    430
    Why don't you do it with CSS? That would be simpler.

    --And by the way, and no offense intended, I don't think many people are going to be willing to take apart that code to help you.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles