Contributions
Reflection On Images Like Apple.com
Have you seen reflections on all images on apple.com?
Do you wan that?
Simple now example on http://www.e-xcessories.com
Upload reflection.js and include them into your webpage.
Add this into Header.php
<script type="text/javascript" src="reflection.js"></script>
Now Add this into html_output.php inside functions
To add a reflection just add a class="reflect" to the image.
1.Find tep_image function
now Find
$image = '<img src="product_thumb.php?img='.$src.'&w='.
tep_output_string($width).'&h='.tep_output_string($height).'"';
Now replace with
$image = '<img class="reflect" src="product_thumb.php?img='.$src.'&w='.
tep_output_string($width).'&h='.tep_output_string($height).'"';
If you like this email me at graphics@e-xcessories.com
From: Harinder
Expand All / Collapse All
As requested on forums i have fixed the link now working IE on images also. you can click on images now its works fine
If you face any error please email me at graphics@e-xcessories.com or
send repyl on forums
http://forums.oscommerce.com/index.php?showtopic=228223
From: Harinder
nice idea however i get this
Parse error: parse error, unexpected '<' in /home/sites/simplysensuous.co.uk/public_html/includes/header.php on line 12
any ideas ?
Tim
Have you seen reflections on all images on apple.com?
Do you wan that?
Simple now example on http://www.e-xcessories.com
Upload reflection.js and include them into your webpage.
Add this into Header.php
<script type="text/javascript" src="reflection.js"></script>
Now Add this into html_output.php inside functions
To add a reflection just add a class="reflect" to the image.
1.Find tep_image function
now Find
$image = '<img src="product_thumb.php?img='.$src.'&w='.
tep_output_string($width).'&h='.tep_output_string($height).'"';
Now replace with
$image = '<img class="reflect" src="product_thumb.php?img='.$src.'&w='.
tep_output_string($width).'&h='.tep_output_string($height).'"';
If you like this email me at graphics@e-xcessories.com
From: Harinder
Note: Contributions are used at own risk.