Coloring particular intervals

i want particular intervals to be coloured .I don’t want the whole day to coloured . Only the time intervals say 11-12 each day should be coloured.the should not be blocked.

You can use scheduler.addMarkedTimespan API


could you provide the entire link

im using the code
days: [0,1],
zones: [1200,1440],
// type: “dhx_time_block”,
css: “blue_section”,


but it doesnt apply to the current day

As you have defined days: [0,1] - it will be applied for all Sundays and Mondays

ya but if today is sunday it doesnt apply to it . the rest sundays are applied

Works correctly in local samples.
Which version of dhtmlxscheduler are you using?
Can you post exact css code for “blue_section” rule ?

.blue_section {
background-color: #2babf5;
opacity: 0.27;
filter: alpha(opacity = 27);

this is the css code

days: [0,1,2,3,4,5,6],
zones: [<?php echo $hst[$i]; ?>,<?php echo $hnd[$i]; ?>],
// type: “dhx_time_block”,
css: “blue_section”,

<?php $i++;} }?>