[pLog-svn] r5436 - plog/branches/lifetype-1.2/js/ui

oscar at devel.lifetype.net oscar at devel.lifetype.net
Wed May 23 17:35:25 EDT 2007


Author: oscar
Date: 2007-05-23 17:35:25 -0400 (Wed, 23 May 2007)
New Revision: 5436

Modified:
   plog/branches/lifetype-1.2/js/ui/common.js
Log:
I forgot this from the previous commit


Modified: plog/branches/lifetype-1.2/js/ui/common.js
===================================================================
--- plog/branches/lifetype-1.2/js/ui/common.js	2007-05-23 21:26:04 UTC (rev 5435)
+++ plog/branches/lifetype-1.2/js/ui/common.js	2007-05-23 21:35:25 UTC (rev 5436)
@@ -360,14 +360,14 @@
  * @param url
  * @return
  */
-function getFlashPlayerHTML( url ) 
+function getFlashPlayerHTML( url, height, width ) 
 {
     var playerUrl = plogBaseUrl + "/flash/mp3player/mp3player.swf";
-	var htmlCode = "<object data=\"" + playerUrl + "\" type=\"application/x-shockwave-flash\" width=\"320\" height=\"20\" class=\"ltPlayer\">"+
+	var htmlCode = "<object data=\"" + playerUrl + "\" type=\"application/x-shockwave-flash\" width=\"" + width +"\" height=\"" + height + "\" class=\"ltPlayer\">"+
 		"<param name=\"quality\" value=\"best\" />"+
 		"<param name=\"bgcolor\" value=\"#FFFFFF\" />" +
         "<param name=\"movie\" value=\"" + playerUrl + "\" />" +
-		"<param name=\"FlashVars\" value=\"&file="+ url + "&height=20&width=320\" />" +
+		"<param name=\"FlashVars\" value=\"&file="+ url + "&height=" + height + "&width=" + width + "\" />" +
     	"</object>";	
 
 	return htmlCode;



More information about the pLog-svn mailing list