mouse over image swap

cognac

Joined: 2007-09-16
Posts: 19
Posted: Tue, 2007-09-18 10:38

Hi!
I want to be able to put a PNG image on a gallery thumbnail, and that the PNG image changes when mouse-over.
I found a script which worked pretty well (but on html or far simple php pages). The tutorial where I found the script is here:
http://www.photoshoplab.com/fun-with-transparent-png-images.html

The script itself with examples to it can be downloaded here:
[img]http://www.photoshoplab.com/downloads/PNG_fun.zip[/img]

The thing is I don't know where to put these parts (I thought it would be theme.tpl):

Quote:
* <script type="text/javascript">
* var png_overlay = 'http://www.cognac.ihost7.pl/cognac.art/themes/carbon/images/rollover.png';
* var suffix = '_over';
* </script>
* <script type="text/javascript" src="http://www.cognac.ihost7.pl/cognac.art/themes/carbon/images/png.js"></script>

And more importantly where I can find the file where I can add the
class="frame rollover" to the images.
I thought it would be 'gallery.tpl' or 'theme.tpl', or actually any of the theme .tpl files, but I just can't find the part responsible for the images.

I am using the carbon theme and I want have the mouse over on each of the thumbnails here (or anywhere else in galleries on the page): http://www.cognac.ihost7.pl/cognac.art/v/bieszczady07-01/

Sorry, I know it might be very simple to solve and I am just overlooking some lines in the .tpl files...

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2007-09-18 10:53

Is this a G1 question?

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
cognac

Joined: 2007-09-16
Posts: 19
Posted: Tue, 2007-09-18 13:45

Sorry.
G2, oh, sorry. I guess I'm wrong here...
Didn't see it was G1... :/
Could you delete my posts?

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2007-09-18 14:00

I'll move this to G2-Forum.

No problem.

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6