Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9020265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:58:28+00:00 2026-06-16T04:58:28+00:00

I have a modified jPlayer with a Whats Playing info bar. The info bar

  • 0

I have a modified jPlayer with a “Whats Playing” info bar.

The info bar display echoed info from a PHP file.

I need to attach a scroller to the info on that player bar but i cant seem to nail it.

The scroller is on a separate js file.

http://www.maxvergelli.com/jquery-scroller/

jQuery:

getCurrentTrack();

$('.now_playing').SetScroller({
    velocity: 50,
    direction: 'horizontal',
    startfrom: 'right',
    loop: 'infinite',
    movetype: 'linear',
    onmouseover: 'pause',
    onmouseout: 'play',
    onstartup: 'play',
    cursor: 'pointer'
});

function getCurrentTrack() {
    $('.now_playing').load('/player/readerPlayer2.php');
    setInterval(function() {
        $('.now_playing').load('/player/readerPlayer2.php');
    }, 9000);
};​

The PHP info:

<?php
header("Expires: Tue, 03 Jul 2040 06:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");

$xml = simplexml_load_file("http://**.**.**.**:8000/live.xspf"); 

foreach ($xml->trackList->track as $data) { 
    $radio = $data->location;
    $song  = $data->title;  
    $info = $data->listeners;   
}
echo '<div class="IceSong">'.$song.'</div>';
?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T04:58:30+00:00Added an answer on June 16, 2026 at 4:58 am

    Have you tried looking for output in the browser console?

    I’ve just tried this and it seems to work fine for me when I remove the first slash from your load uri.

    Please note that you can simply call your getCurrentTrack function again from the setInterval, rather than redeclaring it.

        function getCurrentTrack() {
            $('.now_playing').load('player/readerPlayer2.php');
            setInterval(getCurrentTrack, 9000);
        }
    

    Another thing to point out is that you don’t require a semicolon after your function declaration. For more information, please see the answer to Why should I use a semicolon after every function in javascript?

    Hope that’s helpful, -let me know how you get on.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have modified the standard info window to include self-defined tab-bar at the top.
I have modified my PHP web app to add events to a Google Calendar.
I have modified my notebook's stylesheet to include a StyleData[Todo] that inherits from StyleData[Item]
I have modified a file, named index.html then I run git checkout . which
I'm playing around with javafx and I have modified the code of the MediaPleyer
I have modified my web.config file in my asp.net web application so that I
I have modified user exit MV45AFZB FORM userexit_check_xvbap_for_delet to keep users from deleting line
I have modified an example bluetooth communication app from http://www.elektor.com/magazines/2012/march/android-switch-interface.2084156.lynkx to make it sync
I have modified a little code from here: https://stackoverflow.com/a/13357269/1360074 Since there is known bug
I have modified example connected-lists from jquery site http://jqueryui.com/sortable/#connect-lists below: <!doctype html> <html lang=en>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.