This one drives me loco...

wxdqz

New Member
This drag-n-drop script... I've got it to work fine and all, but I'm working on a function (function mixMolecule()) to mix the molecules selected. I'm including the .zip file because the page uses images to drag-n-drop. Anyone know how to work this one out? I've figured out how to find the ID of one layerNameArray, and then I can assing var j = 1 to get molecule45 to get layerNameArray[j]. layerNameArray where i = 0 will equal molecule0. It's the if() function that catches me then... if(layerName==layerNameArray && testObj) { alert() } This results in no problem, however, what can I do for.. if(layerName==layerNameArray && layerName==layerNameArray[j] && testObj) { alert() } This one will not alert, no matter what images are dropped into the central box. Any help would really be appreciated. Thanks,

Jona
 
Back
Top