home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Minami 40
/
MINAMI40.ISO
/
Extra
/
MPSetup.exe
/
1033
/
RCDATA
/
CABINET
/
wmploc.DLL
/
HTML
/
BUTTON.HTC
< prev
next >
Wrap
Text File
|
2002-12-14
|
1KB
|
43 lines
<PUBLIC:COMPONENT lightWeight=true>
<PUBLIC:ATTACH EVENT="oncontentready" ONEVENT="load()" />
<PUBLIC:ATTACH EVENT="onmouseout" ONEVENT="mouseout()" />
<PUBLIC:ATTACH EVENT="onmouseover" ONEVENT="mousemove()" />
<PUBLIC:ATTACH EVENT="onmousedown" ONEVENT="mousedown()" />
<PUBLIC:ATTACH EVENT="onmouseup" ONEVENT="mouseup()" />
<PUBLIC:PROPERTY NAME="direction" />
<SCRIPT LANGUAGE="JScript">
var aNormal = new Array(2);
aNormal[0] = 'next-normal.gif'
aNormal[1] = 'back-normal.gif';
var aOver = new Array(2);
aOver[0] = 'next-hover.gif'
aOver[1] = 'back-hover.gif';
var aClick = new Array(2);
aClick[0] = 'next-down.gif'
aClick[1] = 'back-down.gif';
var sId, iDir;
function load()
{
if (direction == '0')
iDir = 0;
else
iDir = 1;
sId = element.uniqueID + 'But';
element.href = element.alt;
element.innerHTML = '<IMG id="' + sId + '" border=0 title="' + element.alt + '" src="images\\' + aNormal[iDir] + '">';
}
function setImage(sImg) { element.document.all(sId).src = 'images\\' + sImg; }
function mouseout() { setImage(aNormal[iDir]); }
function mousemove() { setImage(aOver[iDir]); }
function mousedown() { setImage(aClick[iDir]); }
function mouseup() { setImage(aNormal[iDir]); }
</SCRIPT>
</PUBLIC:COMPONENT>