This repository has been archived on 2025-05-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
qemudb/scripts.js
Chris Morgan 4b380d37b3 Add a subtle highlight when mouse is over top X rows to provide better feedback to users that they may click anywhere
in the row to visit the application version.  Add underlining to the text in the test results table to provide similar
feedback.
2006-07-21 19:18:10 +00:00

43 lines
1.5 KiB
JavaScript

function openWin(fileToOpen,nameOfWindow,width,height) {
myWindow = window.open("",nameOfWindow,"menubar=no,scrollbars=yes,status=no,width="+width+",height="+height);
myWindow.document.open();
myWindow.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">');
myWindow.document.write('<html><head><title>Screenshot Viewer</title>')
myWindow.document.write('<style type="text/css">');
myWindow.document.write('body { margin: 0; padding: 0; background-color: lightgrey; }');
myWindow.document.write('img { border: 0; }');
myWindow.document.write('p { display: inline; }');
myWindow.document.write('</style></head><body>');
myWindow.document.write('<a onclick="self.close();" href=""><img src="'+ fileToOpen +'" alt="Screenshot"></a>');
myWindow.document.write('</body></html>');
myWindow.document.close();
}
function deleteURL(text, url) {
if (confirm(text)) {
self.location = url;
}
}
function ChangeTr(tableRow, bRowActive, sHighlightColor, sInactiveColor,
sTextDecorationHighlight, sTextDecorationInactive)
{
if (bRowActive)
{
tableRow.style.backgroundColor = sHighlightColor;
tableRow.style.cursor = "hand";
tableRow.style.textDecoration = sTextDecorationHighlight;
}
else
{
tableRow.style.backgroundColor = sInactiveColor;
tableRow.style.cursor = "pointer";
tableRow.style.textDecoration = sTextDecorationInactive;
}
}
function DoNav(sUrl)
{
document.location.href = sUrl;
}