Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sk3pt1c

macrumors 6502a
Original poster
Nov 29, 2005
918
6
a simulacrum
so here's the deal, i have a page that contains a gallery that has a name for each slide, so you can link to index.html#cat for example.
i'm trying to add twitter buttons for each slide but since the slides are all on the one html page, when the first slide loads the javascript for the twitter button loads its button image, but when you click to see the next slide you just get the text.
is there a way to get this to work?

the same happens with the facebook share button btw...
 
UPDATE: been googling, could i do a onClick to the prev/next buttons of the slideshow and have that re-call the two scripts i need for twitter and facebook?

maybe i could place them both in an external file and call that?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.