reflection.js and phpwcms
Posted: Thu 7. Dec 2006, 14:52
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:
3) now open config/phpwcms/conf.template_default.inc.php
find the line
and change it to
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
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>
find the line
Code: Select all
$template_default["article"]["image_imgclass"] = "image_img";
Code: Select all
$template_default["article"]["image_imgclass"] = "image_img reflect";
If you've done everything right, all images will have this cool apple like effect without changing anything else on your website.
Cheers
KiWiX