3214 Posts in 848 Topics by 810 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1187 Views |
-
Add Image to Template with an ID

24 November 2009 at 6:51am
hello all,
i´m successfully adding an Image to my template using
<% control myStartImage %>
$Image
<% end_control %>I would like to give that image an ID for replacing it with the help of jquery. Is this possible?
many thanks for your help,
florian -
Re: Add Image to Template with an ID

25 November 2009 at 4:29pm Last edited: 25 November 2009 4:31pm
<% control myStartImage %>
<img src="$URL" id="image_{$ID}" />
<% end_control %>The id can be whatever you like of course. I just used a string with the $ID value as I knew it would definitely be there. The curly braces will seperate any string suffix or prefix from the template variable.
Aaron
-
Re: Add Image to Template with an ID

30 November 2009 at 10:09pm
Hey Aaron!
Thanks! I see there are serveral ways to include an image! Works great that way!
Greetz,
Florian
| 1187 Views | ||
|
Page:
1
|
Go to Top |


