\/script>') All geek questions in one placeSmarty {cycle} and three valueshow to use {loop} with three values? What is wrong with this code:<table> <tr bgcolor="{cycle values='#aaaaaa,#bbbbbb'}"> <td bgcolor="{cycle values='#1112233,#334455'}">value</td> <td bgcolor="{cycle values='#998811,#334466'}">value1</td> </tr> </table> +3smartyuser319854 Jul 12 '10 at 18:20source share1 answerI think you need to give them unique names:{cycle name='color1' values='#aaaaaa,#bbbbbb'} {cycle name='color2' values='#1112233,#334455'} {cycle name='color3' values='#998811,#334466'} +2serg Jul 12 '10 at 21:46source shareSource: https://habr.com/ru/post/1754277/More articles:API to find out which protobuf message is being sent to - protobuf-netJQuery page at the top of the page - javascriptWaiting for mocha when a build call fails - ruby-on-railsWhat is jquery noConflict, why do we need it? - jquerySchedule a routine to run at a specific time - vbaСоветы по индексу сервера Sql - sqlNeed help understanding Javascript.match method - javascriptHow do you check the calculator? - testingAndroid Eclipse, Dropbox, Windows and Linux - androidCreating Visual Studio code - how to deal with developers by editing class files - visual-studio-2010All Articles
how to use {loop} with three values? What is wrong with this code:
<table> <tr bgcolor="{cycle values='#aaaaaa,#bbbbbb'}"> <td bgcolor="{cycle values='#1112233,#334455'}">value</td> <td bgcolor="{cycle values='#998811,#334466'}">value1</td> </tr> </table>
I think you need to give them unique names:
{cycle name='color1' values='#aaaaaa,#bbbbbb'} {cycle name='color2' values='#1112233,#334455'} {cycle name='color3' values='#998811,#334466'}
Source: https://habr.com/ru/post/1754277/More articles:API to find out which protobuf message is being sent to - protobuf-netJQuery page at the top of the page - javascriptWaiting for mocha when a build call fails - ruby-on-railsWhat is jquery noConflict, why do we need it? - jquerySchedule a routine to run at a specific time - vbaСоветы по индексу сервера Sql - sqlNeed help understanding Javascript.match method - javascriptHow do you check the calculator? - testingAndroid Eclipse, Dropbox, Windows and Linux - androidCreating Visual Studio code - how to deal with developers by editing class files - visual-studio-2010All Articles