Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Scroling news ticker in php


  • Please log in to reply

#1
amunra

amunra

    Member

  • Member
  • PipPipPip
  • 112 posts
First create a text file and name it news.txt. In the file add
<b><font color="[color=#3366FF]white[/color]">[color=#FF0000]your news headlines[/color]</font></b>
Change the color in blue to any color you want, remember this is you text color.Change the text in red to anything you want and save the file.
Now open a clean window of notepad and enter the code
<marquee bgcolor="[color=#FFCCFF]black[/color]" onMouseover="this.stop()" onMouseout="this.start()"><? include("news.txt"); ?></font></marquee>
Change the color in pink to anything you want, remember this is your background color, don't make it the same as your text color. Save this file as news.php.
To add this script to your page enter this code(Note: for this exact code to work both files must be in the same directory as the page to show it on is.
<? include("news.php"); ?>
Save your page and preview it.
  • 0

Advertisements


#2
GameMakerThomas

GameMakerThomas

    Member

  • Member
  • PipPip
  • 42 posts
Marquees were so 1980's ;-)
Nowadays we have that fancy DHTML stuff that makes it all smooth.
  • 0

#3
MaverickSidewinder

MaverickSidewinder

    Member

  • Member
  • PipPipPip
  • 257 posts

Marquees were so 1980's ;-)
Nowadays we have that fancy DHTML stuff that makes it all smooth.



What's wrong with the 1980's stuff? :) :)


:woot: :P Just kidding man...


But still, i don't frequently find marquees on websites... so this is a helpful tip for beginners! :tazz:
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP