Mtwo
Junior Member   Posts: 36 Registered: 8/28/2004 Status: Offline
|
posted on 12/28/2006 at 09:53 PM |
Hello,
I was wondering where or how to set the class attribute for topic images?
I wanted to set up the image reflection script on the topic images and to
make it work you need to set the class attribute to class="reflect".
Currently my AutoTheme just uses the call for the topic image. How do I
set the class attribute for this image to make the reflections script
work?
Reflection.js script: http://cow.neondragon.net/stuff/reflection/
|
| |
| |
Shawn
Administrator   Posts: 4549 Registered: 10/7/2002 Status: Online
|
posted on 12/28/2006 at 10:41 PM |
1. You can try wrapping it in a DIV with that class but I don't know about
your application.
2. You can edit the topic-image command in
modules/AutoTheme/includes/postnuke/atCommands.php
3. You can look at the command in #2 and use the code to define a Custom
Command and add the class attribute.
4. You can build the image tag in the template using other news commands
from the User Guide instead of using the topic-image command, for
example:
<a href="{news:url:searchtopic}"> <img
src="{news:text:topicimage}" class="reflect" /> </a>
-Shawn |
| |
|
|
|
|
Page created in 0.106995 Seconds
|