Jump to content

[SOLVED] syntax


Michdd

Recommended Posts

try...

//Javascript:
setTimeout(setHeight('id ', 'dec', objHeight[id]),(timer * speed));

I suspect it was the quotes around the function....

That's what makes it work :s. It has to have that. Anyway I decided to solve it the lazy way and just set objHeight[id] to a separate variable and use that in the function.:

 

var objectH = objectHeight[id];
setTimeout("setHeight('" + id + "', 'dec', " + objectH + ")",(timer * speed));

Link to comment
https://forums.phpfreaks.com/topic/162164-solved-syntax/#findComment-855788
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.