![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
|
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help. |
|
Thread Tools |
![]() |
#1 |
Registered User
Join Date: Oct 2005
Location: Brazil
Posts: 35
|
![]() I´m setting up a website and want to have multiple sample video trailers on each tour page. I´m using JW FLV Media Player. So far, I can only put one...
can someone tell me how to do it, or is it possible with what I´m using. thanks ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Nov 2008
Posts: 2,491
|
![]() First you have to place the external java script on the top of the page, do not include that in the loop when you display the results.
-------------------------------------------- <script type="text/javascript" src="swfobject.js"></script> -------------------------------------------- Secondary if you want to display multiple players on one page you have to make each div (<div id="container">) to be unique and each java script (s1.addParam , s1.write("container")......etc...) also unique, this way each java script that start the player by parsing the parameters must have his own value (and be unique) and must be correlated with the div where the player is loading. To implement that is very simple when you get the data from the database you should place the primary key near this parameters (<div id="container_$line['id']">) also in the java script lines (s$line['id'].addParam("flashvars","file=video.flv&image=previe w.jpg"); s$line['id'].write("container_$line['id']");) so this way you will have multiple different div's with multiple different values. Take a look at the examples below : -------------------------------------------------------- <div id="container_1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div> <script type="text/javascript"> var s1 = new SWFObject("player-viral.swf","ply","500","400","9","#FFFFFF"); s1.addParam("allowfullscreen","true"); s1.addParam("allownetworking","all"); s1.addParam("allowscriptaccess","always"); s1.addParam("flashvars","file=video.flv&image=prev iew.jpg"); s1.write("container_1"); </script> ----------------------------------------------------------------------------------- <div id="container_2"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div> <script type="text/javascript"> var s2 = new SWFObject("player-viral.swf","ply","500","400","9","#FFFFFF"); s2.addParam("allowfullscreen","true"); s2.addParam("allownetworking","all"); s2.addParam("allowscriptaccess","always"); s2.addParam("flashvars","file=video.flv&image=prev iew.jpg"); s2.write("container_2"); </script> ----------------------------------------------------------------------------------------- and so on..... Hit me up on ICQ if you need more info... Hope to be helpful! ![]()
__________________
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#3 |
Pay It Forward
Industry Role:
Join Date: Sep 2005
Location: Yo Mama House
Posts: 77,169
|
damn thats helpful
__________________
TRUMP 2025 KEKAW!!! - The Laken Riley Act Is Law! DACA ENDED - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.com |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Mar 2009
Posts: 193
|
well written Daniel
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Nov 2008
Posts: 2,491
|
Thanks guys...
__________________
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: May 2005
Posts: 912
|
Webcams.com affiliate reps are here to help
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Mar 2008
Location: Colorado Springs
Posts: 618
|
Nice tip daniel_webcams - basically what we did on our latest tour.
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#8 |
Registered User
Join Date: Oct 2005
Location: Brazil
Posts: 35
|
great help, thanks a lot
|
![]() |
![]() ![]() ![]() ![]() |