home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Joystick Magazine 2003 November
/
CD1_JOY_153.iso
/
demos
/
NHL2004Demo.exe
/
fe
/
nhl
/
htc
/
conset
/
team.htc
< prev
Wrap
Text File
|
2003-08-20
|
2KB
|
63 lines
<!-- Copyright (c) 2002 Electronic Arts Inc. All rights reserved. -->
<PUBLIC:COMPONENT>
<PROPERTY NAME="teamId" />
<PROPERTY NAME="properties" />
<PROPERTY NAME="name" />
<PROPERTY NAME="overall" />
<PROPERTY NAME="scoring" />
<PROPERTY NAME="defense" />
<PROPERTY NAME="checking" />
<PROPERTY NAME="powerPlay" />
<PROPERTY NAME="goalTending" />
<PUBLIC:METHOD NAME="chngTeamId" />
<ATTACH EVENT="onpropertychange" HANDLER="chngProperties" />
<script language="javascript">
function chngProperties()
{
var oOverall;
var oScoring;
var oDefense;
var oChecking;
var oPowerPlay;
var oGoalTending;
var oFullName;
var oImage;
var imgPath ="../../NHL/images/logos/";
if(element.id.indexOf('faceHomeTeam') != -1 )
{
oOverall = window.document.all.homeTeamOverall;
oScoring = window.document.all.homeTeamScoring;
oDefense = window.document.all.homeTeamDefense;
oChecking = window.document.all.homeTeamChecking;
oPowerPlay = window.document.all.homeTeamPowerPlay;
oGoalTending = window.document.all.homeTeamGoalTending;
oFullName = window.document.all.homeTeamFullName;
oImage = window.document.all.homeTeamImage;
}
else
{
oOverall = window.document.all.awayTeamOverall;
oScoring = window.document.all.awayTeamScoring;
oDefense = window.document.all.awayTeamDefense;
oChecking = window.document.all.awayTeamChecking;
oPowerPlay = window.document.all.awayTeamPowerPlay;
oGoalTending = window.document.all.awayTeamGoalTending;
oFullName = window.document.all.awayTeamFullName;
oImage = window.document.all.awayTeamImage;
}
oOverall.innerText = properties.Overall;
oScoring.innerText = properties.Scoring;
oDefense.innerText = properties.Defense;
oChecking.innerText = properties.Checking;
oPowerPlay.innerText = properties.Powerplay;
oGoalTending.innerText = properties.Goaltending;
oFullName.innerText = properties.FullName;
oImage.src = imgPath + properties.Image;
}
</script>
</PUBLIC:COMPONENT>