source: BMXNET_RPMS_dotNET_UTILITIES-BMX/branch/IHS BMX Framework/IndianHealthService.BMXNet.GeneratedDocumentation/Help/Presentation/Shared/scripts/copycode.js@ 1146

Last change on this file since 1146 was 1146, checked in by Sam Habiel, 13 years ago

Initial Import of BMX4

File size: 765 bytes
Line 
1function CopyCode(key)
2{
3 var trElements = document.getElementsByTagName("tr");
4 var i;
5 for(i = 0; i < trElements.length; ++i)
6 {
7 if(key.parentNode.parentNode.parentNode == trElements[i].parentNode)
8 {
9 window.clipboardData.setData("Text", trElements[i].innerText);
10 }
11 }
12}
13
14function ChangeCopyCodeIcon(key)
15{
16 var i;
17 var imageElements = document.getElementsByName("ccImage")
18 for(i=0; i<imageElements.length; ++i)
19 {
20 if(imageElements[i].parentNode == key)
21 {
22 if(imageElements[i].src == copyImage.src)
23 {
24 imageElements[i].src = copyHoverImage.src;
25 imageElements[i].alt = copyHoverImage.alt;
26 }
27 else
28 {
29 imageElements[i].src = copyImage.src;
30 imageElements[i].alt = copyImage.alt;
31 }
32 }
33 }
34}
Note: See TracBrowser for help on using the repository browser.