Question

I have created a demo for showing Picasa albums and images using this link.

Its working fine, but now I want to change cover image of album in Picasa from our site.

Can we do this using javascript and by modifying the code. Please help.

Was it helpful?

Solution

It seems the chosen image is hardcoded as the first picture of the result set from picasa and cannot be changed via an option.

You will need to dive into JS programming to change the library according to your needs. Adding an option to control which of the items of media$content instead of 0 is chosen might be a first start.

Maybe something like

var img_src = json.feed.entry[i].media$group.media$content[data.albumcover_number].url.split('/');

instead of the code line I linked above, and adding the default option here

'albumcover_number': 0

does the trick.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top