Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,582 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,942 people online right now. Registration is fast and FREE... Join Now!




Help creating linked Marquee

 
Reply to this topicStart new topic

Help creating linked Marquee

Angelwiingz
3 Oct, 2008 - 12:38 AM
Post #1

New D.I.C Head
*

Joined: 2 Oct, 2008
Posts: 3


Hi,

I'm trying to create a Marquee that is linked to the information from another website. What I want to do is pull the current DJ on air, and the current song title to the marquee and make it display this information. I have the marquee set up, just don't know the right way to link it. Here's what I have:

CODE

<META content=60 http-equiv=REFRESH>
<style type="text/css">
<!--
body,td,th {
    color: #211C21;
}
body {
    background-color: #211C21;
}
-->
</style>
<marquee direction="left"
scrollamount='3'
scrolldelay='1'
behavior="scroll" >
<url value='http://64.191.53.213:7050'>
<b><font color='#0000CC'>On Air: </b>
<b><font color='#3399CC'>DJ~Southrnlaady   </b>
<b><font color='#0000CC'>Currently Playing: </b>
<b><font color='#3399CC'>Soundgarden - Loud Love</b></font>
</marquee>


Somehow I need the DJ name to change and the currently playing song. All I am getting at this point is exactly what is written in the code and it's not changing at all. Help would be greatly appreciated.

User is offlineProfile CardPM
+Quote Post

jjsaw5
RE: Help Creating Linked Marquee
3 Oct, 2008 - 04:26 AM
Post #2

I must break you
Group Icon

Joined: 4 Jan, 2008
Posts: 1,404



Thanked: 6 times
Dream Kudos: 125
Expert In: HTML, CSS, Database,

My Contributions
I have never done this before but I can tell you that HTML and CSS alone are not going to get this done.
User is offlineProfile CardPM
+Quote Post

BetaWar
RE: Help Creating Linked Marquee
3 Oct, 2008 - 04:45 AM
Post #3

#include <soul.h>
Group Icon

Joined: 7 Sep, 2006
Posts: 2,026



Thanked: 82 times
Dream Kudos: 1175
My Contributions
You could look into setting up an Ajax connection to the other site and try that, but that is not always going to work (like if the other site doesn't allow connections from AJAX). Or, you could also create a PHP script that takes the things off of the other site and then use AJAX to connect with your php script (that should work, but will be slower overall).

<just in case>
When using PHP you will need to remember that most free hosts don't allow it, and that you need to be able to use PHP on your server for it to work.
</just in case>

Hope that helps.
User is offlineProfile CardPM
+Quote Post

William_Wilson
RE: Help Creating Linked Marquee
3 Oct, 2008 - 05:59 AM
Post #4

lost in compilation
Group Icon

Joined: 23 Dec, 2005
Posts: 3,995



Thanked: 16 times
Dream Kudos: 3275
Expert In: Java, C, Javascript

My Contributions
if php works you can avoid ajax all together. You can use $data = file_get_contents($url); where $url is the url you want to read this information from. It will return the rendered html, so you will need to parse it with javascript or other language of choice, you can use regular expressions to parse it or load it to a div and apply dom operations on the structure itself.

This post has been edited by William_Wilson: 3 Oct, 2008 - 05:59 AM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/3/08 12:31AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month