Solved

Populate Marquee tag with text file contents

Posted on 2002-07-10
3
477 Views
Last Modified: 2008-03-04
I've got a client who I've built a site for.  The index page has a marquee on it which they would like to update daily/weekly.  However, they don't have any editors or tools to update it.  I would like to just pull the text in from a text file that they can upload whenever they want the marquee changed.  I have a style set up for the marquee so formatting is accomplished that way.

Is there any way to do an 'include' or some similar html/javascript to pull a text file's contents in?

Here's the marquee:
        <p align="center"><marquee scrollamount="4" width="600" style="font-size: 7pt; font-family: Arial; color: #000000; font-weight: bold">Words Here that should be pulled in from an external text file</marquee></p>

Thanks,
Doug
0
Comment
Question by:sluggo050499
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
bruno earned 50 total points
ID: 7145183
sure, if the server supports Server Side Includes...


make sure the file is named something that will get parsed by the server, .shtml, .asp or something similar.


have your marquee text in a file called "marquee.txt"


then do this in code..


<p align="center"><marquee scrollamount="4" width="600" style="font-size: 7pt; font-family: Arial; color: #000000; font-weight: bold">
<!--#include file="marquee.txt"-->
</marquee></p>

for more on SSI check here:
www.bignosebird.com/ssi.shtml


BRUNO
0
 

Author Comment

by:sluggo050499
ID: 7146682
Worked great... the host site supported asp.
0
 
LVL 18

Expert Comment

by:bruno
ID: 7147319
great, glad it worked for you!  Thanks for the A.  :-)
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question