home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOKAN 55
/
DOKAN55.ISO
/
Extra
/
MPSetup.exe
/
1033
/
RCDATA
/
CABINET
/
wmploc.DLL
/
HTML
/
FOOTER.HTC
< prev
next >
Wrap
Text File
|
2002-12-14
|
3KB
|
87 lines
<PUBLIC:COMPONENT lightWeight=true>
<PUBLIC:ATTACH EVENT="oncontentready" ONEVENT="buildFooter()" />
<PUBLIC:METHOD NAME="enableWizard" />
<PUBLIC:METHOD NAME="reset" />
<PUBLIC:METHOD NAME="addProvider" />
<PUBLIC:METHOD NAME="getProviderLogoUrl" />
<PUBLIC:METHOD NAME="getProviderRedirUrl" />
<SCRIPT LANGUAGE="JScript">
function buildFooter()
{
var s = '<table border=0 cellpadding=0 bgcolor=white width=368 height=25 cellspacing=0><tr>';
s += '<td width=10></td><td id=footerWizard></td><td width=10></td>';
s += '<td align=' + (IsRTLPage() ? 'left' : 'right') + ' class=text>';
s += '<table border=0 cellpadding=0 cellspacing=0><tr><td id=footerLabel style="display:none" class=textGray>' + L_DataProvidedBy_Text + '</td><td width=8></td>';
s += '<td><a href="X" onclick="return visitLink(this, \'PLG0\');" id=partnerLink0><img style="display:none" border=0 src="X" id=partnerImg0></a></td><td width=5></td><td><a href="X" onclick="return visitLink(this, \'PLG1\');" id=partnerLink1><img style="display:none" border=0 src="X" id=partnerImg1></a></td>';
s += '<td><a id=footerPartnerLink href="http://windowsmedia.com/redir/partner_credits.asp" class=text onclick="return visitLink(this, \'PLT0\');" style="display:none">' + L_MultipleProviders_Text + '</a></td>';
s += '</tr></table></td></tr></table>';
element.innerHTML = s;
}
function enableWizard(fEnable)
{
var s = '<A href="X" onclick="trackIt(\'FAN0\'); window.external.EditMetadata(); return false;" class=text>' + L_EditTrackFooter_Text + '</a>', o;
o = element.document.all('footerWizard');
if (fEnable)
o.innerHTML = s;
else
o.innerHTML = '';
}
var aProviderList = new Array(), iProviders = 0;
function reset()
{
var a = element.document.all;
enableWizard(false);
aProviderList = new Array();
iProviders = 0;
a('partnerImg0').style.display = 'none';
a('partnerImg1').style.display = 'none';
a('footerPartnerLink').style.display = 'none';
a('footerLabel').style.display = 'none';
}
function addProvider(sProvider)
{
if (sProvider.length)
{
if (aProviderList[sProvider] != '1')
{
if (iProviders < 2)
{
var oProvider = element.document.all('partnerImg' + iProviders);
oProvider.style.display = 'inline';
oProvider.src = getProviderLogoUrl(sProvider);
element.document.all('partnerLink' + iProviders).href = getProviderRedirUrl(sProvider);
}
else
{
element.document.all('footerLabel').style.display = 'none';
element.document.all('partnerImg0').style.display = 'none';
element.document.all('partnerImg1').style.display = 'none';
element.document.all('footerPartnerLink').style.display = 'inline';
}
element.document.all('footerLabel').style.display = 'inline';
iProviders++;
aProviderList[sProvider] = '1';
}
}
}
function getProviderLogoUrl(sProvider)
{
return 'http://windowsmedia.com/redir/getprovider.asp?mode=logo&providername=' + fixText(sProvider);
}
function getProviderRedirUrl(sProvider)
{
return 'http://windowsmedia.com/redir/getprovider.asp?mode=redir&providername=' + fixText(sProvider);
}
</SCRIPT>
</PUBLIC:COMPONENT>