Javascript within themes?

Hi there,

I've just started using Zenphoto and have found I've had a lot more luck with it so far than any other photo galleries.

I have however reached a bit of a dead point. I created a template using standard xhtml and tableless CSS, then went through the process of making it work for Zenphoto.

Everything works fine except the javascript image rollovers. I'm not sure why this is, though I think it's to do with image locations and the bit of "<?php echo $_zp_themeroot ?>" script.

The URL is currently www.conquestdesign.co.uk/moran

I have never worked with javascript and php further than copying and pasting it so if any help could be in 'dumass terms', it would be appreciated.

Comments

  • What are you intending to rollover, as the menuing items seem to be working OK in firefox, but if you are intending for the images themselves to be the rollovers, generated from within zenphoto's loop, then you have a bit more work to be done.

    Here's the code from your rollovers.js:

    ``

    This code looks like it was generated from Dreamweaver. You won't necessarily be able to use this same functionality for the images, as it's not going to work with Zenphoto's loop that displays the images.

    I could suggest using CSS to handle the image rollovers, but you'd have to use a custom function (the name of which escapes me at the moment - but I think one already exists) to place an id or class for each image, and then use css hover to change the images out.

    Does that make sense?
Sign In or Register to comment.