mchasal
Feb-22-2009, 01:59 PM
Hi all,
Through searching and reading here, I've managed to get a couple of lines of Javascript together that create a link to a custom sized image (480 wide) that I need to make available. Here's a gallery that shows it:
http://chasal.smugmug.com/gallery/7405059_fG2Xe/1/477082343_z8JVA#477082343_z8JVA
Down at the bottom there is a link, "Blog Image..." that will point to the appropriate size image. The problem I'm having is that in the SmugMug style, that link always points to the first image and not the one that is displayed. It works fine in Traditional, and I'll just use that if I need to, but the SmugMug style is much nicer.
Is there a, not terribly complicated, way to get it to update on image load, perhaps by embedding it up where the "Keywords" are?
Here's the Javascript I have now:
ImageUrl = webServer + "/photos/" + ImageID + "_" + ImageKey;
document.write('<center><a href='+ImageUrl+'-480x10000.jpg>Blog image(480 wide)</a></center>');
Thanks for any help.
Through searching and reading here, I've managed to get a couple of lines of Javascript together that create a link to a custom sized image (480 wide) that I need to make available. Here's a gallery that shows it:
http://chasal.smugmug.com/gallery/7405059_fG2Xe/1/477082343_z8JVA#477082343_z8JVA
Down at the bottom there is a link, "Blog Image..." that will point to the appropriate size image. The problem I'm having is that in the SmugMug style, that link always points to the first image and not the one that is displayed. It works fine in Traditional, and I'll just use that if I need to, but the SmugMug style is much nicer.
Is there a, not terribly complicated, way to get it to update on image load, perhaps by embedding it up where the "Keywords" are?
Here's the Javascript I have now:
ImageUrl = webServer + "/photos/" + ImageID + "_" + ImageKey;
document.write('<center><a href='+ImageUrl+'-480x10000.jpg>Blog image(480 wide)</a></center>');
Thanks for any help.