Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Embed Plugin - how to change the message

2 replies [Last post]

Hi,

The plugin works just fine. I was reading the documentation but I am not sure where to add the code to change the message in the pop up window

In other words the default message says embed this video on your website

Where or how can I change this

Thanks,

John

<script type='text/javascript'>
var s1 = new SWFObject('player.swf','ply','470','320','9','#ffffff');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('wmode','opaque');
var embedCode = escape('<embed src="http://www.somedomain.com/player.swf" width="470" height="320" bgcolor="000000" allowfullscreen="true" allowscriptaccess="always" flashvars="config=http://www.somedomain.com/config.xml"></embed>');
s1.addVariable('file', 'videl.flv');
s1.addVariable('plugins', 'embed-1');
s1.addVariable('skin', 'embedSkin.swf');
s1.addVariable('embed.code', embedCode);
s1.addVariable('embed.title', 'Put it on your site');
s1.write('preview');
</script>

Or in the original example change this line:

s1.addParam("flashvars",'file=video.flv&plugins=embed-1&skin=embedSkin.swf&embed.code='+embedCode);

To this:

s1.addParam("flashvars",'file=video.flv&plugins=embed-1&skin=embedSkin.swf&embed.code='+embedCode+'&embed.title=Put it on your site');

You should also change the embed code to something more standards conforming.

Thanks for the reply.

I did not need to add the s1.addVariables with the player that I am using.

I just added embed.title= to my flashvars

you can check out the code that I am using. I just downloaded the latest version of the JW player

<div id="container"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var s1 = new SWFObject("player-viral.swf","ply","500","400","9","#FFFFFF");
s1.addParam("allowfullscreen","true");
s1.addParam("allownetworking","all");
  var embedCode = escape('<embed src="http://www.longtailvideo.com/files/player.swf" width="470" height="320" bgcolor="#0080C0" allowfullscreen="true" allowscriptaccess="always" flashvars="file=http://www.yoursite.com/videos.flv&plugins=embed-1"></embed>');
s1.addParam("allowscriptaccess","always");
s1.addParam("flashvars","file=video.flvâ„‘=preview.jpg&plugins=embed-1&skin=embedSkin.swf&embed.code='+embedCode+'&embed.title=This is how we add the next line'&embed.instruction=This is the new Text'");
s1.write("container");

</script>