PDA

View Full Version : setTimeout "quotes"


CIAwallst
03-27-2001, 05:48 AM
When using double"" and single'' quotes for the setTimeout
method what is the representation of each. Foe example:
setTimeout('slideLogo(' + from + ',' + to + ')',75).
Do the single quotes represent these?
'slideLogo(' ',' ')' Or these:

"slideLogo('+from+','+to+')",75)

kdjoergensen
03-27-2001, 02:24 PM
var param = "slideLogo("+from+","+to+")";

setTimeout(param,75);

The above is the easiest way to do it.
Kenneth