Activity Stream
48,167 MEMBERS
6625 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 5 of 5
  1.     
    #1
    Member

    Default JavaScript help

    hi all,
    i have plan to create streaming site. All is Ok but when I want load video link to player , i dont know how to do it (reason : i'm noob of javascript)
    here is My Embed Player :
    PHP Code: 
    <div id="usplayer">
        <
    object id="jwplayer786" classid="jwplayer0786" width="590" height="300" bgcolor="#000000">
        <
    param name="movie" value="player.swf" />
        <
    param name="allowFullScreen" value="true" />
        <
    param name="allowScriptAccess" value="always" />
        <
    param name="FlashVars" value="$link_will_load/>
        <
    embed name="jwplayer786" src="player.swf"  flashvars="$link_will_loadtype="application/x-shockwave-flash"  allowfullscreen="true" allowscriptaccess="always" width="590"  height="300" bgcolor="#000000" />
        </
    object>
    </
    div
    Here is my link to load to player, i want to click to 1 link , it will load to player and play.
    PHP Code: 
    <div class="links">
    <
    a href="">Link1</a>, <a href="">Link2</a>,<a href="">Link3</a>,...
    <
    a href="">Linkn</a>
    </
    div
    it is html page so i think javascript can do it, but i dont know how to do that .
    Hope anyone can help me.
    Thanks All For Reading.
    Keosoft90 Reviewed by Keosoft90 on . JavaScript help hi all, i have plan to create streaming site. All is Ok but when I want load video link to player , i dont know how to do it (reason : i'm noob of javascript) here is My Embed Player : <div id="usplayer"> <object id="jwplayer786" classid="jwplayer0786" width="590" height="300" bgcolor="#000000"> <param name="movie" value="player.swf" /> <param name="allowFullScreen" value="true" /> <param name="allowScriptAccess" value="always" /> <param name="FlashVars" value="$link_will_load" Rating: 5
    Yahoo: Keosoft90 | ICQ : 570-630-903| MSN : [email protected] | AIM : Keosoft90
    KWWH

  2.   Sponsored Links

  3.     
    #2
    Respected Member

  4.     
    #3
    Probation
    You can use readymade players.Try searching on Google!

  5.     
    #4
    Probation
    Or you can use the simple HTML5 code


    Code: 
    <video width="320" height="240" controls="controls">
      <source src="movie.mp4" type="video/mp4" />
      <source src="movie.ogg" type="video/ogg" />
      Your browser does not support the video tag.
    	</video>

  6.     
    #5
    Member
    Website's:
    HD-Streaming.org
    You can delete the div "usplayer" content and rewrite the embedding code with new link, with jQuery it's very easy:

    PHP Code: 
    $(".links a").click(function(){
    embed = $('<object id="jwplayer786" class....>....<param name="FlashVars" value="'+$(this).href()+'" />'); //the same embedding code with just changin the FlashVars value with the clicked link...
    $("#usplayer").html(embed);
    return 
    false//to stop the a click event
    }); 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [WordPress] How to do this in javascript/php?
    By thizzladen in forum Web Application/Script Support
    Replies: 0
    Last Post: 16th Mar 2012, 12:05 AM
  2. JavaScript Kit
    By Daniel in forum Useful Sites
    Replies: 0
    Last Post: 7th Mar 2011, 06:48 PM
  3. javascript help
    By jokerhacker in forum Web Development Area
    Replies: 4
    Last Post: 27th Dec 2010, 11:02 AM
  4. Help About JavaScript
    By macypro in forum Technical Help Desk Support
    Replies: 1
    Last Post: 7th Dec 2010, 12:23 AM
  5. help with some javascript
    By bumilad20 in forum Web Application/Script Support
    Replies: 2
    Last Post: 3rd Jun 2010, 05:01 AM

Tags for this Thread

BE SOCIAL