界面部分代码:[XML] 纯文本查看 复制代码 <Button resid = "SplitButtonTemplate" id = "atom(SplitButtonTemplate)" sheet = "DUIToolbarButtonStyle" layoutpos = "left" layout = "BorderLayout()" accessible = "true" accrole = "splitbutton" accdefaction = "resstr(0x3710)" active = "keyboard"><Button id = "atom(SplitButton)" layout = "BorderLayout()" active = "mouse" tooltip = "true"><Element id = "atom(ActionButtonIcon)" layoutpos = "left" /><Element id = "atom(ActionButtonLabel)" shortcut = "-1" /></Button> <Button id = "atom(SplitButtonDropdown)" active = "mouse" tooltip = "true" accessible = "true" accrole = "buttondropdown" accdefaction = "resstr(0x3710)" /></Button> <Button resid = "PlainButtonTemplate" id = "atom(PlainButtonTemplate)" sheet = "DUIToolbarButtonStyle" layoutpos = "left" layout = "BorderLayout()" accessible = "true" accrole = "pushbutton" accdefaction = "resstr(0x3710)" active = "keyboard"><Button id = "atom(PlainButton)" layout = "BorderLayout()" active = "mouse" tooltip = "true"><Element id = "atom(ActionButtonIcon)" layoutpos = "left" /><Element id = "atom(ActionButtonLabel)" shortcut = "-1" /></Button> </Button> <Button resid = "WholeDropdownButtonTemplate" id = "atom(WholeDropdownButtonTemplate)" sheet = "DUIToolbarButtonStyle" layoutpos = "left" layout = "BorderLayout()" accessible = "true" accrole = "buttondropdown" accdefaction = "resstr(0x3710)" active = "keyboard"><Button id = "atom(PlainButton)" layout = "BorderLayout()" active = "mouse" tooltip = "true"><Element id = "atom(ActionButtonIcon)" layoutpos = "left" /><Element id = "atom(ActionButtonLabel)" layoutpos = "left" shortcut = "-1" /><Element id = "atom(WholeDropdownGlyph)" />
[C] 纯文本查看 复制代码 function clickRefresh()
{
var location = window.location.href;
var poundIndex = location.indexOf('#');
if (poundIndex != -1 && poundIndex+1 < location.length && isExternalUrlSafeForNavigation(location.substring(poundIndex+1)))
{
window.location.replace(location.substring(poundIndex+1));
}
}
function navCancelInit()
{
var location = window.location.href;
var poundIndex = location.indexOf('#');
if (poundIndex != -1 && poundIndex+1 < location.length && isExternalUrlSafeForNavigation(location.substring(poundIndex+1)))
{
var bElement = document.createElement("A");
bElement.innerText = L_REFRESH_TEXT;
bElement.href = 'javascript:clickRefresh()';
navCancelContainer.appendChild(bElement);
}
else
{
var textNode = document.createTextNode(L_RELOAD_TEXT);
navCancelContainer.appendChild(textNode);
}
}
function expandCollapse(elem, changeImage)
{
if (document.getElementById)
{
ecBlock = document.getElementById(elem);
if (ecBlock != undefined && ecBlock != null)
{
if (changeImage)
{
elemImage = document.getElementById(elem + "Image");
}
if (!changeImage || (elemImage != undefined && elemImage != null))
{
if (ecBlock.currentStyle.display == "none" || ecBlock.currentStyle.display == null || ecBlock.currentStyle.display == "")
{
ecBlock.style.display = "block";
if (changeImage)
{
elemImage.src = "up.png";
}
}
else if (ecBlock.currentStyle.display == "block")
{
ecBlock.style.display = "none";
if (changeImage)
{
elemImage.src = "down.png";
}
}
else
{
ecBlock.style.display = "block";
if (changeImage)
{
elemImage.src = "up.png";
}
}
}
}
}
} |