--- Kevin Switzer <Kevin.Switzer at Stamats.com> wrote: > document.write('<a href="Javascript:forward2()"><img > src="/images/home/random/R'+which+'.jpg" width="331" height="199" > border="0" id="photoslider" alt="Click to view next image"></a>'); use onclick on the image tag, like this: <img src="/images/home/random/R'+which+'.jpg" width="331" height="199" border="0" id="photoslider" alt="Click to view next image" onclick="forward2();" /> Eliminate the <a href tag Don't forget to close your image tag. ===== Chris Mahan 818.943.1850 cell chris_mahan at yahoo.com chris.mahan at gmail.com http://www.christophermahan.com/ _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com