Registered: March 15, 2007 | Posts: 14 |
| Posted: | | | | I'm using a little html-window with some information about the movie.
I want to see only one director, but when the crew starts with a divider the window shows the divider instead of a director.
I avoided this problem by moving one director to the top, but I don't think that is a good solution. I'm also using goodguy's Credits Plus, so the first credit entry must be a divider.
Anywone who can help me with this problem?
This is what I'm using now:
<font size = 5pt> <DP NAME="TITLE"> (<DP NAME="PRODYEAR"> )
<br> <font size = 4pt> <font color="#CCCCCC"> <DP NAME="CREW_DIRECTION" Detailed="NO" ColorNames="NO" MaxList="1"> (<DP NAME="COUNTRY_OF_ORIGIN"> ) <font size = 3pt> <DP NAME="RUNTIME"> |
|
Registered: March 14, 2007 | Reputation: | Posts: 1,029 |
| Posted: | | | | Replace your <DP NAME="CREW_DIRECTION"> line with the following:
<SPAN id=idCrew><DP NAME="CREW_DIRECTION" Detailed="False" ColorNames="False" MaxList="3"></SPAN> <SCRIPT language=javascript> var oElem = idCrew.all.tags("A")[0]; if (oElem != null) idCrew.innerHTML = oElem.outerHTML; else idCrew.innerText = ""; </SCRIPT>
This uses MaxList=3 to account for at most two leading dividers and picks the first real entry in the directors list. | | | Matthias |
|
Registered: March 15, 2007 | Posts: 14 |
| |