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

Forums

/

Is there a limit to the number of players on sites

6 replies [Last post]

Hi, I am building a website, and I can only get the code to work once, and NEVER again can I get the code to work when I put it on a another page, How do I fix that problem?

Post the code that you are using or a link to your test page so someone can help you without guessing.

<div align="left"> <script type='text/javascript' src='jw/swfobject.js'></script>

<p></p>
</div>
<div class="style2" id='preview'>Sorry, but the video is currently unavailable
<script type='text/javascript'>
var s1 = new SWFObject('jw/player-viral.swf','ply','600','381','9','#ffffff');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('wmode','opaque');
s1.addParam('flashvars','file=../vids/Gordon_Hinckley_-_Lessons_I_Learned_as_a_Boy_001.flv&backcolor=c0c0c0&frontcolor=000000&volume=100&logo=..\img\favicon.ico&controlbar=over&skin=../jw/snel.swf');
s1.write('preview');
</script>

As long as your URLs are correct, the code will work. There is no limit to the number of players on one site.

Now post the code and a link to a non-working page.

First, this line belongs in the head element of your HTML document, NOT wrapped in HTML in the body element.

<script type='text/javascript' src='jw/swfobject.js'></script>

Second, these are your links:

http://yourinspirationsource.org/videos/gbh.html

http://yourinspirationsource.org/videos/jw/player-viral.swf --------------------------------------- 404 Not found

http://yourinspirationsource.org/jw/../vids/Gordon_Hinckley_-_Lessons_I_Learned_as_a_Boy_001.flv
  resolves to:
http://yourinspirationsource.org/vids/Gordon_Hinckley_-_Lessons_I_Learned_as_a_Boy_001.flv -------- OK

http://yourinspirationsource.org/videos/..\img\favicon.ico
  resolves to:
http://yourinspirationsource.org\img\favicon.ico --------------------------------------------------  Incorrect separator symbol "\" and unsupported file type "ico"

http://yourinspirationsource.org/videos/../jw/snel.swf
  resolves to:
http://yourinspirationsource.org/jw/snel.swf ------------------------------------------------------ OK

Based upon this code in:  http://yourinspirationsource.org/videos/gbh.html

<script type='text/javascript'>
  var s1 = new SWFObject('jw/player-viral.swf', 'ply', '600', '381', '9', '#ffffff');
      s1.addParam('allowfullscreen',     'true');
      s1.addParam('allowscriptaccess',   'always');
      s1.addParam('wmode',               'opaque');
      s1.addParam('flashvars','file=../vids/Gordon_Hinckley_-_Lessons_I_Learned_as_a_Boy_001.flv&backcolor=c0c0c0&frontcolor=000000&volume=100&logo=..\img\favicon.ico&controlbar=over&skin=../jw/snel.swf');
s1.write('preview');
</script>

So...

1) fix the relative path to the Flash movie,

2) fix the incorrect separator symbols and use a supported image type for your logo.

All will be well...

Thanks for the help!