I create a website on the Tilda constructor, where you can add a script in HTML, JavaScript. It is necessary for me that in the main unit there was a picture below I attach a sample of the code that I used in this constructor for another task, it may be useful. Each block has an id, if I create a block for the Image and the Block in which the script will work. I attach screenshots - back http://prntscr.com/kglk3p front http://prntscr.com/kglkiw

It is necessary that the picture changed every Monday. Only 4 pictures and next month this cycle began again.

(example script that works on adding a form)

<script type="text/javascript"> $(document).ready(function(){ //ДобавляСм класс ΠΊ ZeroBlock $("#rec61541110").addClass("zerosformoy"); //ДобавляСм класс ΠΊ Ρ„ΠΎΡ€ΠΌΠ΅ $("#rec61544759").addClass("formavzero"); //ΠΊΠ»ΠΎΠ½ΠΈΡ€ΡƒΠ΅ΠΌ Π½Π°ΡˆΡƒ Ρ„ΠΎΡ€ΠΌΡƒ Π² ZeroBlock $(".formavzero").appendTo(".zeroformvert"); //Π‘ΠΊΡ€Ρ‹Π²Π°Π΅Ρ‚ Ρ‚Π°Π±Π»ΠΈΡ‡ΠΊΡƒ с ошибкой заполнСния $(".formavzero .t-form__errorbox-bottom").hide(); $(".formavzero .t-form__errorbox-middle").hide(); //Π‘ΠΊΡ€Ρ‹Π²Π°Π΅Ρ‚ надписи ΠΎΠ± ошибкС заполнСния $(".formavzero .t-input-error").hide(); }); </script> <style type="text/css"> /*Π—Π°Π΄Π°Ρ‘ΠΌ Ρ†Π²Π΅Ρ‚ ΠΈ отступы Ρ‚Π°Π±Π»ΠΈΡ‡ΠΊΠΈ ΠΎΠ± ΡƒΡΠΏΠ΅ΡˆΠ½ΠΎΠΉ ΠΎΡ‚ΠΏΡ€Π°Π²ΠΊΠ΅ Π΄Π°Π½Π½Ρ‹Ρ… */ .formavzero .t-form__successbox{ background:#4bbf15 !important; padding: 5px; margin-bottom: 5px; } /*Высота ΠΏΠΎΠ»Π΅ΠΉ Π²Π²ΠΎΠ΄Π° */ .formavzero input{ height: 40px !important; } /*ΠžΡ‚ΡΡ‚ΡƒΠΏ ΠΌΠ΅ΠΆΠ΄Ρƒ полями */ .formavzero .t-input-group{ margin-bottom: 10px !important; } /*Π—Π°Π΄Π°Ρ‘ΠΌ высоту ΠΈ ΠΏΠ»Π°Π²Π½Ρ‹ΠΉ ΠΏΠ΅Ρ€Π΅Ρ…ΠΎΠ΄ для ΠΊΠ½ΠΎΠΏΠΊΠΈ Π² Zero */ .formavzero .t-submit{ height: 50px !important; width: 100%; } /*Π—Π°Π΄Π°Ρ‘ΠΌ отступ тСкста ΠΏΠΎΠ΄ Ρ„ΠΎΡ€ΠΌΠΎΠΉ */ .formavzero .t-form__bottom-text{ margin-top: 20px !important; font-size: 10px !important; } /*Π Π°Π·ΠΌΠ΅Ρ€ ΡˆΡ€ΠΈΡ„Ρ‚Π° ΠΏΠΎΠ»ΠΈΡ‚ΠΈΠΊΠΈ*/ .formavzero .t678__form-bottom-text{ font-size: 10px !important; margin-top: 10px !important; } /*Π Π°Π·ΠΌΠ΅Ρ€ ΡˆΡ€ΠΈΡ„Ρ‚Π° подписи ΠΏΠΎΠ»Π΅ΠΉ Π²Π²ΠΎΠ΄Π°*/ .formavzero .t-input-subtitle{ color:#ffffff; opacity: 0.90 !important; font-size:16px !important; } /*Π¨ΠΈΡ€ΠΈΠ½Π° Π²Ρ‹Π±ΠΎΡ€Π° ΠΏΠΎΠ»Π΅ΠΉ Π²Π²ΠΎΠ΄Π° Π”Π°Ρ‚Π° ΠΈ ВрСмя*/ .t39 .t-inputtime, .t678 .t-datepicker__wrapper { max-width: none !important; } </style> 
  • Probably need to request different pictures depending on the client time? Is not it so? - Stranger in the Q
  • You can do this using PHP. It is done there as simply as possible. - Eldar Gasymov

0