Working With Timers - Run The Song In The Jukebox

Jun 17, 2010

To recap: I've built a music jukebox on my experimental website, url removed. Each song in the Jukebox has it's own html file and in that html file a few things are done to run the song in the jukebox. The type of media player requested by the user is determined. Then, that media player is activated playing the song requested. After the amount of seconds needed to play the song have passed a function then calls the next html file which will then play the next song. When any html file for a song loads, the <body> tag reads:

<body onLoad="setTimeout('delayer()', 413000)";>

In the above code the delayer() function (below) is called to open the next html file which will play the next song ("SunrEyes.html" in this case). But first, using the javascript setTimeout() function, 413000 milliseconds (or 6 mins. 53 secs) must pass(in this case). This is the length of the current song being played.

[Code]...

View 8 Replies


ADVERTISEMENT

Jukebox - Replay List And - Create Non Dropdown List ?

Sep 1, 2010

I am trying to construct a Jukebox for my website. I have spent considerable time all over the WEB and at this forum which addressed the issue in a 50 page thread. Please see: [url]

I got a lot of ideas from this thread but still cannot figure a way to do the following within the Jukebox. These are my main two questions for everything below:

1.How can I have the Jukebox cycle through all tunes and then start over from the beginning?

2.How can I allow the user to select a tune from a list but not a drop down list, have the Jukebox start from the users selection and then play all songs to the end. Then as in #1, start over from the beginning?

Per this thread I came away with basically two ways to assemble the jukebox. One uses links in a drop down list which the user can choose from. The other is to use an .m3u playlist. The user can only select a playlist from the drop down.

Below, I have included the code for each Jukebox. To see the Jukeboxes in action please go to my website where I have posted some test pages exhibiting the jukeboxes that I am referring to.

The following is the Jukebox which utilizes an .m3u playlist. If I end up using this idea I would like the tunes in the .m3u playlist to be displayed and allow the user to be able to choose a tune in the list. Then have the list play to the end of all tunes in the list. Then start over from the beginning of the list. After this code is the .m3u playlist.

Go to url removed and click on the link that says:

Jukebox utilizing an .m3u playlist:

Here is the .m3u playlist for the above code:

The following code is for the Jukebox that has a list of links in a dropdown list. If I go with this idea, I would like for the list not to be a dropdown list but just a list of tunes. The user should be able to click on any tune in the list and the player should start from that point, play all the remaining tunes in the list and then start from the beginning.

Go to url removed and click on the link that says:

Another idea I found on the WEB also uses an .m3u playlist. The good thing about it is that it lists all the tunes in the playlist which the user can then select from. This jukebox calls up an entire Windows Media Player. If I was to use this idea I would like to be able to disable the left side of the player where the user has options such as burning to CD, Media Guide, Radio Tuner etc¦

Go to url removed and click on the link that says:

View 1 Replies View Related

How To Play Song Online?

Sep 28, 2006

I have been looking for the answer for a long time, but could not reach to any answer. I am a novice web designer, have very little knowledge on web programming. I hope someone here could help me with the following. The problem scenario is this:

I have a webpage where I have listed some classical songs so that page visitors can listen to song online. All files are in Real Audio format either with .rm or .ra extension. These individual audio files are linked with .ram files so that when visitor’s clicks on the song title, this .ram file launches RealPlayer and the clicked song starts playing. Once a song is played it stops. If user wants to hear another song, user needs to click on another song title to play that song. This is annoying for users.

However, I have seen on some websites where user can select the songs by clicking on the “Check Boxesâ€&#65533; next to each song titles and play by clicking on the “Playâ€&#65533; button. Therefore, user can select lists of their favourite songs by clicking on check box and play these together one after another. There are two other buttons also available for users: “Select Allâ€&#65533; songs and “Resetâ€&#65533;.

View 1 Replies View Related

Use A Linked List To Add A Song?

Mar 1, 2011

I am trying to use a linked list to add a song. 'A' is supposed to add the song to list of objects. My problem is that every time I append a song again it seems my list gets reset. Also on the side. How come I cant use the showFromMeOn method down in 'P'?

[Code]...

View 14 Replies View Related

Run Two Timers On The Same Web Page?

Apr 2, 2010

How do you run two timers on the same web page using javascript?

View 1 Replies View Related

Changing A Song In Itunes From Javascript?

Apr 22, 2006

This may seem like a very strange question but is there a way to change to a random song in itunes using javascript?

View 4 Replies View Related

Multi Timers That Will Loop?

Feb 5, 2010

Anyone have a script that has multi timers that will loop; Sort of like the ones used in reverse auctions.

First timer 1:24:59:59 (days/h/m/s)
Second timer 1:00:00 (h/m/s)
Third timer 1:59 (m/s)
Forth timer 59 (s)

I have one now that I found here and makes no sense to me;

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
[Code]....

View 1 Replies View Related

Clear ALL Timers In JS Without TImerID's?

Apr 23, 2010

I see the clearTimeout() function, but it takes ID's, I really just want to clear ALL the timers in my code w/out knowing Timer ID's.

View 3 Replies View Related

Display All Lines Of The Song Using A Switch Statement

Oct 6, 2011

I am trying to figure out where I went wrong in my code. The objective is to display all lines of the song using a switch statement. I thought I had my head wrapped around it, but apparently not.

View 3 Replies View Related

XSPF Web Music Player Plays Song Twice

Dec 16, 2009

I am using XSPF Web Music Player slim, and whenever I put it into a web page and play it using Google Chrome or Safari the song starts playing twice. When i press the pause button one instance of the song keeps playing while the other keep going without any control over it. This only happen on Google Chrome and Safari on both Windows and Macs so I think it is a problem with the player and WebKit.

I am not using play-list file because the player is only playing one song so I used some parameters somewhere for the player making it so I did not need a play-list file. I also wanted it to play automatically so included a parameter for that. This is my code:

<object type="application/x-shockwave-flash" width="720" height="30" data="xspf_player.swf?song_url=song.mp3&song_title=Song Name&autoplay=1">
<param name="movie" value="xspf_player.swf?song_url=song.mp3&song_title=Song Name&autoplay=1" />
<param name="wmode" value="transparent" />
</object>

I have the autoplay=1 so it will play automatically. When I take this away it only play one instance of the song but requires manual play. So you have to push the "play" button. How do I fix it so it does not play the song twice on Chrome and Safari?

View 1 Replies View Related

List Running Timers In JavaScript

Jul 23, 2005

Does anybody know a way to retreive the running timers (their ids) in a html
page?

I cannot find something in the html dom at first sight.
Is there collection of timers available (like window.all[], forms[],
frames[] and such)? Some other way?

When you create a timer (setTimeout), the return value is the timer id.
Suppose that some script (which you do not own and cannot change) calls
setTimeout but doesn't store the id. How to retreive it, to stop the timer (clearTimeout(id))?

I though to override the "setTimeout" like below, but that doesn't work.
Probably since the original setTimeout is used before I declare this new
one.

var oldSetTimeout=setTimeout;
var timerSaved=0;
setTimeout = new function(arg,time)
{
/*alert('timer: '+arg+', '+time);*/
timerSaved=oldSetTimeout(arg,time);
return timerSaved;
}

View 1 Replies View Related

Timer Script Does Not Advance Timers

Apr 5, 2011

I'm using javascript to create timers that will start a count down after the page is loaded. I need to do the calculation of seconds for the timers in php on the page that calls this page with the javascript. I then pass the seconds when I write the javascript using php. Here I'm just showing the javascript with the seconds hard-coded for each timer. I've tried testing this as is (with the javascript hard-coded just as shown here), but all it will do is display the starting point for each timer but won't advance beyond that. It is supposed to show the timers counting down each second.

Code:
<script type='text/javascript'>
function GetCount(secondsPassed, iid){
amount = secondsPassed;
if(amount < 0){
document.getElementById(iid).innerHTML='Now!';
}
else{
[Code]...

View 4 Replies View Related

JQuery :: Create Interactive Song List Selector

Nov 3, 2009

We have a master list of hundred songs we can draw from in our database. I have already created a php / mysql / ajax (maybe not needed here) combination which populates the page with a table of a master list of items. Currently when the worship leader clicks on the name of the song it is moved to a new table, and then that list gets placed in a database and emails get sent to the appropriate people.

Two things I can't quite wrap my head around:
In the master list I would like to be able to get jquery to filter the master table by letter. i.e. songs starting with Q only with the added ability to show all again... Of course if the last song with Q was just selected the list should automatically go back to showing all. I was doing this with Ajax, but feel this is a waste as jQuery can handle this directly. After the list is in the new table I would like to be able to do something like: [URL].

View 1 Replies View Related

Play Multiple Song Using Embedded Media Player?

Sep 10, 2008

i m using tis embeded media player in my web. but, how can i provide checkbox for each song and then let the user play the multiple songs together using tis code? the music file format are .wma, .mp3 or .midi..

<embed type="application/x-mplayer2" id="music1"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
src=""
name="MediaPlayer1"

[Code]....

View 3 Replies View Related

Possible To Create Loop Using Code To Play Song On Webpage?

Oct 22, 2011

Is it possible to create a loop using code to play a song on a webpage? Or does the while statement have to produce numbers like 1, 2, 3? I don't really understand what types of things I am allowed to use when creating a loop.

View 2 Replies View Related

JQuery :: Multiple (Realtime) Countdown Timers ?

Aug 17, 2010

I am going to be doing a simple page where I can add (for example) an item what will be visible for 60 Minutes and then dissapear, then simply I will ammend the content and put it on for a further 60 Minutes.

There will be a few Instances of this on one page and I am very new to jQuery but I am good at HTML / CSS and pick it up easy. The countdowns that I have seen on the internet dont seem to be what im looking for.

View 3 Replies View Related

Interval Timers And The Value Of Them - Get -1 As The Output When ValueOf() The Variable

Nov 26, 2011

Here is a bit of a conundrum, it you have an interval timer and it is interrupted say by a clearInterval call, how can you tell how far along the interval the timer was when it was canceled? When I look at an object that is an setInterval() event timer, I get -1 as the output when I valueOf() the variable. What I am wondering is if for example the following

Code:
var thisIntervalTimer = setInterval("onceAminute()",60000); the interval of one minute passes between updates, apart from setting up a tracking variable to track milliseconds, does the thisIntervalTimer possess any user accessible values like thisIntervalTimer.getMilliseconds; to return the current 'tick' value of the interval timer attached to the variable thisIntervalTimer. What I would be interested in is if any method exists to access any properties of this object, they must exist in some form as how would the browser know what event timer to update or trigger.

View 2 Replies View Related

JQuery :: Animate Color Over Time Using Timers Plugin

Apr 24, 2009

I'm using the Timers plugin to do a count down timer.I would like to enhance my UI by having the numbering being counted down transition from black to red as it gets closer to 0.The jQuery UI demo for animate seems to be what I need, but what I'm having trouble figuring out is how to have it transition gracefully over time. It seems like the animation is a one-shot deal.

View 1 Replies View Related

JQuery :: Timers Plugin - Continuous Loop Through Animation

May 25, 2009

I've used the jQuery Timers plugin [URL] to animate through my client's "five steps" on this page: [URL] but is there a way to get it to continuously loop through the animation? The documentation page [URL] doesn't seem to cover anything like that.

View 5 Replies View Related

Multiple Countdown Timers From A Set Time On A Single Page

Aug 17, 2010

I'm new to javascript. I want to make multiple adjustable countdown timers on a single page. I've got a single timer working:

Code:
<script type="text/javascript">
var sec = 10; // set the seconds
var min = 00; // set the minutes
function countDown() {
sec--;
if (sec == -01) {
[Code]...

View 2 Replies View Related

Webpage Contain A Background Song That Will Continuously Play Even Clicking The Links / Pages

May 21, 2009

. I have a problem where I designed my web page project and eventually it must contain a background song that will continuously play even clicking the links/pages.

View 5 Replies View Related

Click On The Song Title It Redirects To A Page Which Gives A Preview Player And A Download Link

Mar 31, 2009

im1music.net has a download page which is a javascript. Basically when you click on the song title it redirects you to a page which gives you a preview player and a download link. I was just wondering what Javascript this is, as I wish to have it on my site.

View 4 Replies View Related

Make A Music Player Where Can Select A Song From A Dropdown List And Then Click Submit

Nov 16, 2011

i am trying to make a music player where you select a song from a drop down list and then click submit. it then brings up the audio controls with the HTML5 "<audio>" tags and then you can click play and it should work. i am having trouble actually doing this though. the html is

[Code]...

View 3 Replies View Related

Ajax Timers - Refresh The Data Every 5 Second To Provide Slick Real Time Availability Info

Aug 17, 2009

I have a small app, my first real ajax project, which gives you details for product availability, for each day. The user selects a day (from a calendar) and then a time slot within the day. The app then displays how many slots are available for purchase, on that day, for that time... I wanted to refresh the data, every 5s, to provide slick real time availability info... but alas, when you change day (look at another day and time), the old timer still runs with the old arguments, and so it keeps resetting the 'details' panel to the previous day's details... how do I reset the timer? or delete the old one?

View 1 Replies View Related

JQuery :: "Timers" Plugin And IE8 Trouble

Sep 7, 2009

I'm using "timers" plugin (URL...),so far it worked great. But lately, I'm having trouble with IE8 which doesn't trigger everyTime event.Firefox, IE7 and Chrome updates the "sidebar" div every second, but IE8 does not.

View 1 Replies View Related

Vertical Sync Animations - Getting Timers To Run On The Vertical Sync

Jun 11, 2010

Does anyone know a way to do vertical sync with javascript animations (getting timers to run on the vertical sync)?

I rather doubt there is a way to do it, but I find it annoying that when I am dragging an object with my mouse that the object "tears" sometimes.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved