문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top