No Mod Required

A Small Site Enhancement

I made the image in my gallery pages “hot” today. Each gallery image now points to the next image in the gallery flow. It’ll be interesting to see if that increases the average number of page views per user. I’m thinking it will as a lot of people use that technique so I’ll hopefully be leveraging that learned behavior. Logically it just makes sense as those back, home and next buttons are way too small. I’ll report the results in a couple of weeks…

Check it out here.

I’m actually in the process of recoding all the gallery pages (with the exception of the alphabet I posted yesterday, which was built that way from the beginning) to have an actual anchor tag wrapped around the image. For now I’m doing it with a little bit of JavaScript:


var imgs = $("artimg").getElementsByTagName("img");
for (var i=0; i< imgs.length; i++) {
    imgs[0].onclick= function() {
        document.location.href=$("next").href;
    }
}

where “next” is the existing ID applied to the next link in gallery pages. I love being able to use such simple JavaScript to enhance the user experience in such a (potentially) large way.

Leave a Reply

Note: Wrap all of your code blocks in <code>...</code> and replace < and > with &lt; and &gt;, respectively.