reflection.js and phpwcms

Post non-phpwcms related topics here - but I don't want to see "hey check this or that other cms". Post if you have a point or worthwhile comment, don't post just to increase you post count!
Post Reply
kiwix
Posts: 65
Joined: Fri 25. Feb 2005, 09:40

reflection.js and phpwcms

Post by kiwix »

Hello,

some time ago i stumbled over the reflection.js script here:
http://cow.neondragon.net/stuff/reflection/

I've just tried this with phpwcms and it really works fine. This is a simple how-to:

1) download the reflection.js and put it to the include/inc_js path
2) open your template in the administration are and put the following code to the <head> section:

Code: Select all

<script type="text/javascript" src="include/inc_js/reflection.js"></script>
3) now open config/phpwcms/conf.template_default.inc.php
find the line

Code: Select all

$template_default["article"]["image_imgclass"]			= "image_img";
and change it to

Code: Select all

$template_default["article"]["image_imgclass"]			= "image_img reflect";
Here we make use of the fact, that you can add mutliple classes to a html tag.

If you've done everything right, all images will have this cool apple like effect without changing anything else on your website.

Cheers
KiWiX
Post Reply