Hey all! I build a function that creates a string with some
informations. This is the structure:

1/17/52;2/283/-2;3/475/492;4/180/625;5/272/790;

looks a little bit confusion but it's really simple. The first letter/
number (1) is the ID of an Div. the second number (17) is it's Y
coordinate and the third number (52) is it's X coordinate. Then it
continues with the second div (ID 2) and so on.
My question now is: How do I split the informations into readable
pieces? After splitting it should be placed with the .css function:



$('#1').css( "left", 52 );
$('#1').css( "top", 17);

...

$('#5').css( "left", 790);
$('#5').css( "top", 272);

Reply via email to