PDA

View Full Version : Using "reflection.js" on thumbnail browse


elek
04-26-2007, 03:29 PM
Hi...

Does anyone know a way to implement the "reflection.js" script from http://cow.neondragon.net/stuff/reflection/ ??

I want to display every thumbnail in the browse template with a reflection, but my problem is that the thumbnails are called by a <THUMBNAIL> tag, and in order for the script to work i need to assign a "class:reflect" to the image tag of the image thumbnails...

Perhaps by altering the functions_browse.php file in the includes folder??

jaywilliams
04-26-2007, 03:56 PM
You would have to modify the php file.
But It would probably be unwise to apply a JavaScript reflection to a large number of images, as it will slow down the page loading time considerably.

So I would only recommend doing that if you have your browse template setup to only show only a small number of thumbnails per page.

Dkozikowski
04-26-2007, 04:00 PM
That would be correct.

You would need to edit functions_browse.php

Find and edit the following line,

$thumb_output .= "<a href=\"$showprefix$id\"><img src=\"$thumbnail\" alt=\"$title\" title=\"$title\" class=\"thumbnails\" /></a>";

elek
04-29-2007, 01:52 PM
Thx - I'll try it out!