// there is NO difference between CON_TASK_DISPLAY_TYPE_VANILLA_GIF and CON_TASK_DISPLAY_TYPE_CHOCOLATE_GIF. The original intent was never implemented.
case CON_TASK_DISPLAY_TYPE_VANILLA_GIF: // transparent
case CON_TASK_DISPLAY_TYPE_CHOCOLATE_GIF: // transparent
case CON_TASK_DISPLAY_TYPE_BITMAP: // non-transparent raster image
Tasks.innerHTML = strTasksHTML; // add the tasks to the HTML
tempArray= document.all.item("TaskID"); //get the collection of all tasks on the page.
if(count==1)
{
// in this case tempArray is not an array at all, but a single object per the DHTML object model
tempArray.title =s_rgTasks[0].Help; // set the tooltip
tempArray.innerText =s_rgTasks[0].Text; // set the title
eval("Image0.title=s_rgTasks[0].Help;"); // set the tooltip for the image
}
else
{
if(tempArray.length != count) // sanity check
{
alert("Error!");
}
// set up the tasks - we do this here rather than expanding the variables in the strings above to
// prevent Escaping problems. Eg \ would need to be converted to \\ otherwise.
for(i=0; i<count; i++)
{
tempArray(i).title =s_rgTasks[i].Help; // set the tooltip
tempArray(i).innerText =s_rgTasks[i].Text; // set the title
eval("Image"+i+".title=s_rgTasks["+i+"].Help;"); // set the tooltip for the image
}
}
szScripts = '<span style="display:none">h</span><SCRIPT DEFER>' + szScripts +'</SCRIPT' + '>'; // see Q185140. The SPAN is needed because it causes the page to be reparsed.