Solved

Populate Marquee tag with text file contents

Posted on 2002-07-10
3
475 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Powershell output to HTML 1 29
radio button value 3 46
using web browser with BING 40 89
Asp.net mvc foreach 3 12
Do you want to insert HTML5 video into your site? This is the tutorial how to do so. What are the main advantages of HTML5 video? 1) Have good compression, good image quality, and low decode processor use. 2) It is royalty-free 3) It is easi…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
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 …
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now