I need Dev's help...again :(

brandofamilybrandofamily Registered Users Posts: 2,013 Major grins
you provided this code to add the return to index of thumbs w/o having to back out...
/*========================================*/
/*== Return to Thumb (Single Image Page)==*/
/*========================================*/
function fixPhotoNav()
{
  oPhotoNav = YD.getElementsByClassName("photoNav", "div");

  for (i=0; i < oPhotoNav.length; i++)
  {
    re = /gallery\/([\d]+)\//;
    oTitle = YD.getElementsByClassName("title", "span", oPhotoNav[i]);
    if (re.test(window.location))
    oTitle[0].innerHTML = "|&nbsp;" + oTitle[0].innerHTML + "&nbsp;|";
    re.exec(window.location);
    oPhotoNav[i].innerHTML = oPhotoNav[i].innerHTML + "<span ><a href=\"/gallery/" + RegExp.$1 + "\">Return to Index</a></span>";
  }
}

I am trying to implement it into this site... www.onbroadwaydancers.com
here's a single image page
http://www.onbroadwaydancers.com/gallery/1763422/1/87461856/Medium

It was working, but now it isn't... I was working on the nav bar... I've re-added the JS and footer code, but no go... I'd appreciate it if you could take a look...

Comments

  • brandofamilybrandofamily Registered Users Posts: 2,013 Major grins
    edited July 24, 2007
    forget it Dev... I must have had a goof in the JS section. Luckily I saved the post "me-working" copy...
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited July 25, 2007
    g'day brando :D

    glad you got it working clap.gif
    David Parry
    SmugMug API Developer
    My Photos
Sign In or Register to comment.