Random Image Code Results in Unwanted Redirect

TnHikerTnHiker Registered Users Posts: 29 Big grins
edited April 2, 2008 in SmugMug Support
I'm a novice HTML programmer who often links to my SmugMug photos from a 100+ page website I operate as a hobby. Recently I inserted a bit of code gleaned from these pages to generate a random image. Everythilng works great except that when I click on the image I get redirected to the smugmug.com instead of my linked gallery. The URL generated by the click starts off as intended but before the display loads it redirects to the smugmug.com homepage. Here is the code I'm using (remove the *'s):

<*div class="right_image"><a href="*http*:*//tnhiker.smugmug.com/gallery/4473102" *target="_new"><*img src=*http*:*//tnhiker.smugmug.com/photos/random.mg?AlbumID=4473102&AlbumKey=dyamC&Size=250x200*img style="float: right;" *alt="Right Image" /><*/a></div>


Here is the link to the code I've customized: http://wiki.smugmug.com/display/SmugMug/Random+Photos+Code

I'd like to either have the action upon clicking to be a new window that loads the gallery indicated by my albumID, OR, I'd like no action at all (no new window, no redirect). Help please. Note that I'm a "standard account level" user.
Things are looking up. :thumb "Today is the first day of the rest of your life."

Click for Hike Journal website.

SmugMug acct: http://tnhiker.smugmug.com/

Comments

Sign In or Register to comment.