i’ve got a -maybe dumb- question since i’ve never had a single js lesson ?
i want to catch some divs in a page, at first i got all the names of them from a db, but now they are dynamicly generated.
so.. i couldnt use php anymore.. so.. this is what i came up with:
[CODE] if (obj.name.match(‘resize’))
{
instance = str.replace(/resize/,””);
elements.q+instance+.resizeTo(dd.obj.x-elements.q+instance+.x+12, ((obj.y+12)-dd.elements.q+instance+.y));
elements.opt+instance+.moveTo(dd.obj.x-24, dd.obj.y);
elements.movemove+instance+.moveTo(dd.obj.x-12, dd.obj.y);
}
well, this doesnt work.
example:
object name is “resize[B]1
i strip resize
and i want to get:
elements.movemove[B]1
you know what i mean ?