3 Replies Latest reply on Nov 4, 2013 12:13 AM by oliverS

    how to use a var as a string

    oliverS

      hello, sorry for my question,

       

      but I want to use a var as a string:

       

      I know it is a completely beginners-question, but I didn´t need it until now:

       

      var zahl = Math.floor((Math.random()*99)+1);

       

      sym.$("frame")

                .css(

                                    {'background-image':'url("images/zahl.jpg")'

                                    }

                            );

       

       

      I tried it with {zahl} and [zahl] but it does not work.

       

      Help would be great

       

       

      Oliver