2 Replies Latest reply on Jul 14, 2008 4:12 AM by (Algis_J)

    [JS} syntax question

      Hi,

      I have s cript like this:

      var style1="Healine";
      var style2="SubHead";
      var style2="Text";

      ...etc.

      Then I want to put those style variables into the loop like this:

      for (myCounter=0; myCounter < 11; myCounter++)
      {
      myStyleName=style+myCounter;
      ...some stuff to do with myStyleName
      }

      But for myStyleName, I get simple string "style1" instead of a variable
      "Style1" wicht stands for a string "Headline".
      Is there a way to pass a variable this way?