codecomputerlove/PhotoSwipe — Issue #202: How to put close button on caption bar
Author: nabbo
Created: 2011-11-26 10:41:03+00:00
State: open

Hi,

I'm trying to change the "close" button, in order to set it on the top left of the screen (and not bottom left).

So I ued the getImageCaption function, in order to create my button :

getImageCaption: function(el){

var captionBack;

captionBack = document.createElement('a');
captionBack.innerHTML="Back";
captionBack.setAttribute("onClick", );

return captionBack;
}

How can I achieve this ?
Is there any cleaner way ?
I have been looking at the examples, and the addEventHandler functions, but unsuccessfully so far.

After this button, I will have other buttons, with custom functions, to set up, on the caption bar.

Any help much appreciated, and thanks for all the work :)