Thanks to Mithi help and mediadogg's javascript example from Aug 2012, I was able to create a simple HTML Window which can be added to an existing layout. For anyone who hasn't played around with creating an HTML Window, it's under View / HTML Windows / Edit. Click on Section / New and type in a name for your window. Then just paste the code in red below (the rest of the code is created automatically): <HTML> <HEAD> <SCRIPT TYPE="text/javascript"> <!-- <DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False"> //--> </SCRIPT> </HEAD> <BODY> <FONT FACE="ARIAL" SIZE="2"> <P> <STRONG>Collection:</STRONG> <SCRIPT TYPE="text/javascript"> if (DP_CollectionTypeOwned) { document.write("Owned"); } if (DP_CollectionTypeOrdered) { document.write("Ordered"); } if (DP_CollectionTypeWishList) { document.write("Wish List"); } if (DP_CollectionTypeCustom) { document.write(DP_CustomCollectionTypeName); } </SCRIPT> </P> </FONT>
</BODY> </HTML> Thanks |