/* ================================== */
/* Idots 2 Based on SKIN && DESKTOP Linux KDE Standard */
/* ================================== */
function skin_IDOTS2(wName) {
//c85050//
var frame_bgcolor = "#CCCCCC"; //"#66A9C8";
var frame_titleclass = "xDT_wTitle";
var frame_borderwidth = 1;
var taskbar_style = 2;
var frame_topheight = 20;
var frame_bottomheight = 10;
var frame_contentbgcolor = '#CCCCCC';
var frame_dummypic = xDT.resPath() + 'images/blank.gif';
var iconpath = xDT.resPath() + 'skins/IDOTS2';
var frame_stylecolor = '#fff';
var frame_border = 1;
var frame_bordertype = "outset"; // solid, outset, inset
var frame_style = 'border-top: ' + frame_border + 'px ' + frame_stylecolor + ' ' + frame_bordertype + '; ' +
'border-bottom: ' + frame_border + 'px ' + frame_stylecolor + ' ' + frame_bordertype + '; ' +
'border-left: ' + frame_border + 'px ' + frame_stylecolor + ' ' + frame_bordertype + '; ' +
'border-right: ' + frame_border + 'px ' + frame_stylecolor + ' ' + frame_bordertype + '; ';
return (
'
'
);
}
var sd = true;
function desktop_IDOTS2() {
var iconpath = xDT.resPath() + 'skins/IDOTS2';
xDT.addSkin('IDOTS2',0,31);
xDT.taskbarColor("#D4D4D4","#000","#000");
xDT.cbe("dDesktop").resizeTo(document.cbe.width(),document.cbe.height());
/*if (clock_show == 'yes')
{
xDT.cbe("dDesktop").innerHtml('');
}
else
{
xDT.cbe("dDesktop").innerHtml('');
}
xDT.cbe("dDesktop").innerHtml('');
*/
xDT.cbe("dDesktop").zIndex(0);
xDT.show("dDesktop");
correctPNG();
if (clock_show =='yes')
{
makeTime();
}
notify();
}
function taskbar_IDOTS2() {
var iconpath = xDT.resPath() + 'skins/IDOTS2';
imgbegin = new Image();
imgend = new Image();
a = document.createElement('a');
span = document.createElement('span');
imgbegin.className = "taskbegin";
imgend.className = "taskend";
//tasks = document.getElementById("tasks");
if(document.getElementById("tasks")) {
var tasks = document.getElementById("tasks");
removeAllChilds(tasks);
//while(tasks.hasChildNodes() == true)
// {
// tasks.removeChild(tasks.childNodes[0]);
// }
var str = "";
var str2 = "";
var winName = "";
var winTitle = "";
for (var i=0;i<=xDT.maxWindow();i++) {
winName = xDT.wName(i);
str2 += winName;
if (typeof(winName) != "undefined" && i >= xDTwin.syswin && winName != "")
{
if (str == "") {
str = winName;
}
else
{
str += "," + winName;
}
}
}
if(str != "") {
var wins = str.split(",");
xDT.p_taskbar = true;
var lostSpace = 500;
var buttonWidth = (document.cbe.width() - lostSpace) / wins.length; // this needs to be corrected to the sizes of the clock
if(buttonWidth > 250) {
buttonWidth = 250;
}
var marginLeft = 50 / wins.length;
if(marginLeft > 10) {
marginLeft = 10;
}
var charSize = 12; //number of pixels one char prob. will fill
var charCount = (buttonWidth - 34) / charSize;
a.style.width = buttonWidth - 10 + "px";
a.style.marginLeft = marginLeft;
span.style.width = buttonWidth - 34 + "px";
for (var i=0;i charCount) {
winTitle = winTitle.substr(0,charCount-3) + "...";
}
a.innerHTML = "";
a.href = "javascript:xDT.taskbar('" + winName + "');";
span.innerHTML = winTitle;
a.appendChild(imgbegin.cloneNode(true));
a.appendChild(span.cloneNode(true));
a.appendChild(imgend.cloneNode(true));
tasks.appendChild(a.cloneNode(true));
}
}
}
}