Registered: June 9, 2007 | Posts: 1,208 |
| Posted: | | | | Could someone be so kind as to write some code for me that will only display the sort title when a tag called 'tv episode' is enabled? |
|
Registered: March 13, 2007 | Posts: 646 |
| Posted: | | | | Quoting MarEll: Quote: Could someone be so kind as to write some code for me that will only display the sort title when a tag called 'tv episode' is enabled? Sure can Quote:
<html> <head> <script type="text/javascript"> <!-- <DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False"> //--> </script> <style type="text/css"> body { margin: 0pt; padding: 0pt; background-color: rgb(0, 0, 83); background-repeat: repeat-x; background-image: url( $DPIMAGES.bgimage.jpg ); } .title { color: white; font-family: verdana; font-size: 12pt; font-weight: bold; margin-top: 15pt; text-align: center; } </style> </head> <body> <script type="text/javascript"> var sortTitle = '<DP NAME="SORTTITLE">'; for( i = 0; i < ( DP_Tags.length ); i++ ) { if ( DP_Tags[i] == 'tv episode' ) document.write( '<div class="title">Sort title: ' + sortTitle + "</div>\n" ); } </script> </body> </html>
| | | Last edited: by xyrano |
|
Registered: June 9, 2007 | Posts: 1,208 |
| Posted: | | | | perfect! Cheers X |
|