home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
business-86-101-185-173.business.broadband.hu
/
business-86-101-185-173.business.broadband.hu.zip
/
business-86-101-185-173.business.broadband.hu
/
trans
/
sqlncli.msi
/
DP_sqlncli10_chm_32_1033
/
local
/
samples.js
< prev
next >
Wrap
Text File
|
2010-03-31
|
1KB
|
69 lines
function closeMe()
{
window.close();
}
function ChangeViewCodeIcon(key)
{
var i;
var imageElements = document.getElementsByName("vcImage");
for(i=0; i<imageElements.length; ++i)
{
if(imageElements[i].parentElement == key)
{
if(imageElements[i].src == viewImage.src)
imageElements[i].src = viewHoverImage.src;
else
imageElements[i].src = viewImage.src;
}
}
}
function ChangeDownloadCodeIcon(key)
{
var i;
var imageElements = document.getElementsByName("dcImage");
for(i=0; i<imageElements.length; ++i)
{
if(imageElements[i].parentElement == key)
{
if(imageElements[i].src == downloadImage.src)
imageElements[i].src = downloadHoverImage.src;
else
imageElements[i].src = downloadImage.src;
}
}
}
function ViewSampleSource(name)
{
// variables
var wConfig;
var wWindow;
var oSelectBox = document.all.item(name);
var url;
var sIndex;
// Get the selectedIndex
sIndex = oSelectBox.selectedIndex;
if (sIndex >= 0)
{
// Get the URL to the file
url = oSelectBox.options[sIndex].value;
// Set the configuration
wConfig += 'directories=0,';
wConfig += 'location=0,';
wConfig += 'menubar=0,';
wConfig += 'resizable=1,';
wConfig += 'scrollbars=1,';
wConfig += 'status=0,';
wConfig += 'toolbar=0';
// Launch the window
wWindow = window.open(url, 'ViewSampleSource', wConfig);
wWindow.focus();
}
}