home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 September (Special)
/
Chip-Special_2002-09_Digitalni-Video.bin
/
servis
/
wm9
/
mpsetupXP.exe
/
RCDATA
/
CABINET
/
wmploc.DLL
/
HTML
/
NAVBAR.HTC
< prev
next >
Wrap
Text File
|
2002-08-19
|
3KB
|
84 lines
<PUBLIC:COMPONENT lightWeight=true>
<PUBLIC:ATTACH EVENT="oncontentready" ONEVENT="load()" />
<PUBLIC:METHOD NAME="visitPage" />
<PUBLIC:METHOD NAME="goBack" />
<PUBLIC:METHOD NAME="goForward" />
<PUBLIC:METHOD NAME="hide" />
<PUBLIC:METHOD NAME="show" />
<SCRIPT LANGUAGE="JScript">
var aPages = new Array();
var o = new Object();
o.page = 0;
o.left = -774;
aPages[0] = o;
var iCurrentPage = 0, iMaxPage = 0;
function load()
{
var s = '<span class=navbar><table border=0 height=26 cellpadding=0 cellspacing=0><tr>';
s += '<td id="' + element.uniqueID + 'back" class=navbutton enabled=0 style="padding:2" image="back" text="' + L_BackNav_Text + '" onclick="if (this.enabled==1) ' + element.uniqueID + '.goBack()"></td>';
s += '<td id="' + element.uniqueID + 'forward" class=navbutton enabled=0 style="padding:2" image="forward" text="' + L_ForwardNav_Text + '" onclick="if (this.enabled==1) ' + element.uniqueID + '.goForward()"></td>';
s += '<td id="' + element.uniqueID + 'stop" class=navbutton enabled=1 style="padding:2" image="stop" text="' + L_StopNav_Text + '"></td>';
s += '<td id="' + element.uniqueID + 'reload" class=navbutton enabled=1 style="padding:2" image="reload" text="' + L_RefreshNav_Text + '" onclick="refreshPage()"></td>';
s += '<td id="' + element.uniqueID + 'home" class=navbutton enabled=1 style="padding:2" image="home" text="' + L_HomeNav_Text + '" onclick="goHome()"></td>';
element.innerHTML = s + '</tr></table></span>';
}
function checkButtons()
{
var iBack = 1, iForward = 1;
if (iCurrentPage == 0)
iBack = 0;
if (iCurrentPage == iMaxPage)
iForward = 0;
element.document.all(uniqueID + 'back').enabled = iBack;
element.document.all(uniqueID + 'forward').enabled = iForward;
}
function goBack()
{
if (iCurrentPage > 0)
{
iCurrentPage--;
switchToPage(aPages[iCurrentPage].page, aPages[iCurrentPage].left);
}
checkButtons();
}
function goForward()
{
if (iCurrentPage < iMaxPage)
{
iCurrentPage++;
switchToPage(aPages[iCurrentPage].page, aPages[iCurrentPage].left);
}
checkButtons();
}
function visitPage(i, sBG)
{
var o = new Object();
o.page = i;
o.left = element.document.all(sBG).style.posLeft;
aPages[++iCurrentPage] = o;
iMaxPage = iCurrentPage;
checkButtons();
}
function hide()
{
element.innerHTML = '<span class=navbar><table border=0 height=26 cellpadding=0 cellspacing=0><tr><td height=26></td></tr></table></span>';
}
function show()
{
load();
}
</SCRIPT>
</PUBLIC:COMPONENT>