to use javasript variable to find out path of a image using ezimage in javascript file

Author Message

Romeo Antony

Wednesday 23 June 2010 2:58:45 am

var id = this.id;
this.getElementsByTagName('IMG')[0].src = 'images/' + this.id + '_over.gif';

i need to get this like this.id._over.gif|ezimage anyone have an idea

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 11:35:55
Script start
Timing: Jan 18 2025 11:35:55
Module start 'layout'
Timing: Jan 18 2025 11:35:55
Module start 'content'
Timing: Jan 18 2025 11:35:55
Module end 'content'
Timing: Jan 18 2025 11:35:55
Script end

Main resources:

Total runtime0.0284 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 588.4063152.6875
Module start 'layout' 0.00650.0042 741.093839.5859
Module start 'content' 0.01070.0148 780.679785.3984
Module end 'content' 0.02550.0029 866.078130.3047
Script end 0.0284  896.3828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003010.5010140.0002
Check MTime0.00124.3616140.0001
Mysql Total
Database connection0.00124.126510.0012
Mysqli_queries0.004315.051530.0014
Looping result0.00000.067210.0000
Template Total0.00248.410.0024
Template load0.00093.197310.0009
Template processing0.00155.164910.0015
Override
Cache load0.00072.398210.0007
General
dbfile0.00020.838680.0000
String conversion0.00000.032740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs