|
function CopyCode(key)
{
var trElements = document.getElementsByTagName("tr");
var i;
for(i = 0; i < trElements.length; ++i)
{
if(key.parentNode.parentNode.parentNode == trElements[i].parentNode)
{
window.clipboardData.setData("Text", trElements[i].innerText);
}
}
}
function ChangeCopyCodeIcon(key)
{
var i;
var imageElements = document.getElementsByName("ccImage")
for(i=0; i<imageElements.length; ++i)
{
if(imageElements[i].parentNode == key)
{
if(imageElements[i].src == copyImage.src)
{
imageElements[i].src = copyHoverImage.src;
imageElements[i].alt = copyHoverImage.alt;
}
else
{
imageElements[i].src = copyImage.src;
imageElements[i].alt = copyImage.alt;
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.