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
Improved IMDB html preview window
Author Message
johnsmith90210
Registered: April 21, 2009
Posts: 1
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Heres improved search code to Gadgeteer's IMDB html window. Just Copy + Paste to a new HTML Segment:
--->

<HTML>
<HEAD>
<SCRIPT TYPE="text/javascript">
<!--
<DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False">

function imdb() {
if (DP_OriginalTitle) {
var title = DP_OriginalTitle;
} else {
var title = DP_Title;
}
var year = DP_ProductionYear
var matchErg = DP_Notes.match(/imdb:\s*(tt\d+)/i);
if (matchErg) {
var imdbLink = "http://imdb.com/title/" + matchErg[1];
} else {
var imdbLink = "http://imdb.com/Title?" + title + " (" + year + ")";
}
window.location.href= imdbLink;
}

//-->
</SCRIPT>
</HEAD>
<BODY onload="imdb();">
</BODY>
</HTML>

-----------------------------------------------------------------------------------

Thanks Gadgeteer! 
I'm curious if this helps anyone - didn't wanna submit a hole new layout.


JS9
    Invelos Forums->DVD Profiler: Layouts and Reports Page: 1  Previous   Next