From: ScottDowne Date: Fri, 2 Jul 2010 03:23:32 +0000 (-0700) Subject: overlaylink xml attribute support X-Git-Tag: v0.1~45^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=42b917753af8babe1bcff797720b35a185b3d68b;p=popcorn-js.git overlaylink xml attribute support --- diff --git a/popcorn.js b/popcorn.js index 82da292..2e507ea 100644 --- a/popcorn.js +++ b/popcorn.js @@ -149,9 +149,13 @@ // Checks for a url of an image to overlay onto the video if (this.params.overlay) { this.image = document.createElement('img'); - this.image.setAttribute('src', this.params.overlay); - this.image.setAttribute('style', 'display:none'); - VideoManager.overlayDiv.appendChild(this.image); + var that = this; + $('') + .attr("target", that.params.overlaylink ? "_blank" : "") + .append($(that.image) + .attr("src",that.params.overlay) + .attr("style", "display:none")).appendTo(VideoManager.overlayDiv); + this.displayOverlay = function() { this.image.setAttribute('style', 'display:inline'); }; diff --git a/xml/webMadeMovies.xml b/xml/webMadeMovies.xml index b0452b5..5096dd2 100644 --- a/xml/webMadeMovies.xml +++ b/xml/webMadeMovies.xml @@ -69,7 +69,7 @@ A Shared Culture, Jesse Dylan - +