Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Application and Web Development > PHP

Reply
 
LinkBack Thread Tools Display Modes
Old 02-05-2010, 10:49 PM   #1 (permalink)
10564
Recruit
 
Join Date: Feb 2010
Posts: 1
10564 is on a distinguished road
auto-refreshing code and my forum is centered

Hi, I have a link to an online radio stream as well as the current track on my forum. However, you must refresh the page in order to see the current track if it changes while you're browsing the page. What's do I need to do to have this code auto-refresh every few seconds?

<script type="text/javascript" src="http://shoutcast.mixstream.net/js/song/uk4-free:19112">
You appear to have javascript turned off.
</script>

As well as this one, which shows whether the station is online or not:

<script type="text/javascript" src="http://shoutcast.mixstream.net/js/status/uk4-free:19112">
You appear to have javascript turned off.
</script>

---------------------------------------------------------------------

A second thing:

*
* Select/Unselect multi-quote
* Reply with quote
* Edit/Delete this post
* Delete this post
*
* Report post to moderator or admin
* Lock post for new reports

forum is centered

Post by 10564 Today at 1:53 am
I don't want my forum centered. I was messing with this code and somehow I got all the stuff stuff below the flash bits centered.

my forum: harshnoise.forumotion.com/index.htm

anything under the flash radio (labeled unnamed server) is what I don't want centered

current code:
HTML Code:
<div align="center"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width=728 height=486 id=chat align=middle> <param name="allowScriptAccess" value="sameDomain" /> <param name=movie value=http://www.xatech.com/web_gear/chat/chat.swf /><param name=quality value=high /><param name=bgcolor value=#000000 /> <param name=FlashVars value="id=83986081&pass=28696362" /> <embed src=http://www.xatech.com/web_gear/chat/chat.swf quality=high bgcolor=#ffffff width=728 height=486 name=chat FlashVars="id=83986081&pass=28696362" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.xat.com/update_flash.shtml" /></object> </p><div align="center" style="border: 0; padding-top: 20px;"><div id="player" style="width: 240px; height: 60px; border: 0;"> <br> <script type="text/javascript" src="http://shoutcast.mixstream.net/js/song/uk4-free:19112">
You appear to have javascript turned off.
</script> <br><br> <script type="text/javascript" src="http://shoutcast.mixstream.net/js/status/uk4-free:19112">
You appear to have javascript turned off.
</script> </div> <br><br> <a href="http://s4.myradiostream.com/19112.htm">Listen here</a> <br><br> <iframe src="http://s4.myradiostream.com/stream/6131/ads.htm" width="728" height="90" scrolling='No' frameborder='0' style='margin: auto;'> <p><a href='http://s4.myradiostream.com/19112.htm' target="_blank">LISTEN HERE</a></p> </iframe> <!-- You may edit the code below, this is just an example of how to link to your stream. --> <p><div align="center" style="border: 0; padding-top: 20px;"><div id="player" style="width: 240px; height: 60px; border: 0;"> <div id="playerswf" style="display:inline-block; padding: 0; width: 240px; height: 60px; background-image:url('http://bellonline.co.uk/player/player.png'); border: 0;"> <object width="240" height="60"> <param name="movie" value="http://bellonline.co.uk/player/player.swf?url=http%3A%2F%2Fs4.myradiostream.com%3A19112/;&autoplay=1&title=HARSH NOISE " /> <param name="wmode" value="transparent" /> <embed src="http://bellonline.co.uk/player/player.swf?url=http%3A%2F%2Fs4.myradiostream.com%3A19112/;&autoplay=1&title=HARSH NOISE " width="240" height="60" wmode="transparent" type="application/x-shockwave-flash" /> </object> </div>
10564 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i code an actual forum? or can i find a basic open source one? danshelton HTML, XML, Javascript, AJAX 4 04-05-2008 12:55 PM
form auto fillings falsepride HTML, XML, Javascript, AJAX 28 03-13-2008 03:11 PM
Anyone use the code forum RSS feed? teknomage1 Feedback 4 02-08-2006 02:18 AM
auto CTRL+L anon Linux / BSD / OS X 0 01-10-2003 09:56 PM


All times are GMT -8. The time now is 02:04 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting