It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum Script-archive

Scrolling Text Marquee

Share your completed scripts.

Scrolling Text Marquee

Postby Johnathan on Sat Jun 14, 2008 2:20 am

A HTML marquee is a scrolling piece of text displayed either horizontally across or vertically down your web site page depending on the settings. This page shows you how to make a scrolling marquee using div tags that are often seen in CSS (Cascading Style Sheets).

Horizontal
Code: Select all
<div align="center"><FONT
color="#ffffff" size="+1"><MARQUEE bgcolor="#000080"
direction="right" loop="20" width="75%"><STRONG>This
is cool!</STRONG></MARQUEE></FONT></DIV>


Vertical
Code: Select all
<div
align="center"> <marquee bgcolor="#000080" scrollamount="2"
direction="up" loop="true" width="35%"> <center>
<font color="#ffffff" size="+1"><strong> THIS
IS A COOL WAY<br> TO MAKE YOUR TEXT<br> SCROLL UPWARDS<br> <br>
IT IS EASY AND FAST LOADING </strong></font> </center> </marquee></div>
Johnathan
1000+ Club
 
Posts: 1207
Joined: Thu May 31, 2007 3:28 pm
Location: Belfast, Northen Ireland

Postby rangana on Sat Jun 14, 2008 3:41 am

Hi Johnathan,

Sorry to disagree, but I would'nt personally recommend marquee tag because it's invalid and deprecated. :(

Here's a cross-browser marquee, which works on all browsers and valid. ;)
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Postby Johnathan on Sat Jun 14, 2008 6:07 pm

How do I make http://www.dynamicdrive.com/dynamicindex2/cmarquee.htm scroll up like the HMTL one? I'm not good with JS at all. Is there any other HMTL I can use to make it scroll up using "proper" code?
Johnathan
1000+ Club
 
Posts: 1207
Joined: Thu May 31, 2007 3:28 pm
Location: Belfast, Northen Ireland

Postby rangana on Tue Jun 17, 2008 12:35 am

User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Postby flabbyrabbit on Sun Aug 03, 2008 10:46 am

Is there away to get a marquee to fade at both ends?

Flabby Rabbit
Image
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England

Postby Johnathan on Sun Aug 03, 2008 1:07 pm

What about putting a DIV over the ope of the one the text is in and have a fading image in there?
Johnathan
1000+ Club
 
Posts: 1207
Joined: Thu May 31, 2007 3:28 pm
Location: Belfast, Northen Ireland

Postby flabbyrabbit on Sun Aug 03, 2008 10:22 pm

Thats the only way I could think of doing it, but i was wondering if there was a more "correct" way of doing it?

Flabby Rabbit
Image
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England


Who is online

Users browsing this forum: No registered users and 1 guest