Welcome to the Invelos forums. Please read the forum rules before posting.

Read access to our public forums is open to everyone. To post messages, a free registration is required.

If you have an Invelos account, sign in to post.

    Invelos Forums->DVD Profiler: Layouts and Reports Page: 1  Previous   Next
Help needed with code
Author Message
DVD Profiler Desktop and Mobile RegistrantMarEll
Registered: June 9, 2007
United Kingdom Posts: 1,208
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with 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?
DVD Profiler Unlimited Registrantxyrano
41215.reg 70320.urk
Registered: March 13, 2007
Sweden Posts: 646
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
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
DVD Profiler Desktop and Mobile RegistrantMarEll
Registered: June 9, 2007
United Kingdom Posts: 1,208
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
perfect! Cheers X 
    Invelos Forums->DVD Profiler: Layouts and Reports Page: 1  Previous   Next