can't embed two flv files in one page

hi, I have this code on a web page:
<script type="text/javascript" src="/tools/flowplayer/flowplayer-3.1.2.min.js"></script>   <script type="text/javascript">

document.writeln('<p><a style="display:block;width:600px;height:381px" id="player" href="/siteimages/cfs/adding-link.flv"></a></p>');

flowplayer("player", "/tools/flowplayer/flowplayer-3.1.2.swf",{clip:{autoPlay:false}});

</script>

and then this one:
<script type="text/javascript" src="/tools/flowplayer/flowplayer-3.1.2.min.js"></script>   <script type="text/javascript">

document.writeln('<p><a style="display:block;width:600px;height:381px" id="player" href="/siteimages/cfs/paste.flv"></a></p>');

flowplayer("player", "/tools/flowplayer/flowplayer-3.1.2.swf",{clip:{autoPlay:false}});

</script>

both work individually on the page, but if I have both, only the first one appears. I must need to change a parameter within the second snippet, but I'm not sure what to change. Can you help? Thanks.
mel200Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

zappafan2k2Commented:
For starters, you can't have two elements with the same ID tag.  Change one of them to something other than 'player'.  Possibly:
<script type="text/javascript" src="/tools/flowplayer/flowplayer-3.1.2.min.js"></script>
<script type="text/javascript">
document.writeln('<p><a style="display:block;width:600px;height:381px" id="player1" href="/siteimages/cfs/adding-link.flv"></a></p>');
flowplayer("player1", "/tools/flowplayer/flowplayer-3.1.2.swf",{clip:{autoPlay:false}});

document.writeln('<p><a style="display:block;width:600px;height:381px" id="player2" href="/siteimages/cfs/paste.flv"></a></p>');
flowplayer("player2", "/tools/flowplayer/flowplayer-3.1.2.swf",{clip:{autoPlay:false}}); 
</script>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mel200Author Commented:
That's it, that's what I was looking for, thanks- I'll try that now.
0
mel200Author Commented:
Bingo, thanks!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.