...

View Full Version : Resolved php naming variables in function call



semiSkim
03-13-2010, 01:33 AM
In javascript you can call a function in the method shown below:



animate_JD({
objects: name+'Content |'+name+' |'+name+' |'+name+' |'+name,
properties: "opacity |height |left |top |width",
start: "1 |"+startHeight+" |"+startLeft+" |"+startTop+" |"+startWidth,
end: "0 |0 |"+endLeft+" |"+endTop+" |0",
extension: " |px |px |px |px",
interval: "40 |20 |20 |20 |20",
frames: "5 |15 |15 |15 |16",
effect: "speed",
wait: "0 |0 |-1 |-2 |-3",
onComplete: "document.getElementById('"+name+"Content').style.display = 'none';||||checkDestroy_JD(\'"+name+"\',\'"+destroy+"\')",
});

function animate_JD(params){
//stuff here
}


So how can you do this in php???

Thanks

P.S. sorry can't get the code to align properly....you get the idea though.

________________________
FIGURED IT OUT



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum