![]() |
|
![]() | ||
|
Subject:
Message Banner from a text file
Category: Computers > Programming Asked by: swykpisz-ga List Price: $3.00 |
Posted:
04 Mar 2003 19:52 PST
Expires: 03 Apr 2003 19:52 PST Question ID: 171036 |
I need a message scroller/banner for an html page but I need it to use a text file to change the data that is displayed in the scroller itself. Right now I using: <html> <!-- Created with the CoffeeCup HTML Editor --> <!-- http://www.coffeecup.com --> <!-- Brewed on 3/4/2003 10:45:27 PM --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> function writeMarquee() { document.write("<marquee scrolldelay='250' scrollamount='20'>This ordinary marquee has <a href='http://www.yahoo.com'>* * l i n k s * *</a> that you can click on. <a href='http://www.yahoo.com'>Yahoo</a>. Use HTML formating: <b>bold</b>, <i>italic</i>, <u>etc.</u>. Speed and delay also adjustable.</marquee>"); } </script> </HEAD> <BODY> <div align="center"> <table width="30%"> <tr><td> <SCRIPT LANGUAGE="JavaScript"> writeMarquee() </script> </td></tr></table> </div> </html> But if the script was able to read a text file I could format the text or change the data easier from a text file that to have to change the coding of the page. Is this possible,if so how? |
![]() | ||
|
There is no answer at this time. |
![]() | ||
|
Subject:
Re: Message Banner from a text file
From: jdog-ga on 04 Mar 2003 21:05 PST |
What are you planning on putting in the text file? HTML or plain text? If it's plain text, I'm not so sure that this would help you all that much. The 'formatting' of a text file is very limited. You can't italicize, underline, or bold anything, and most of the conveniences of HTML or word processors aren't available. If you were planning to put HTML in it, there's something simple you could do that would basically have the same effect. If that's the case, let me know and I can explain it to you. On the other hand, you could abandon JavaScript altogether. How is your page hosted? What kind of services are available to you? JS has a lot of limitations, so you may be better off using some other method. |
Subject:
Re: Message Banner from a text file
From: serenata-ga on 04 Mar 2003 22:34 PST |
Have you taken a look at WillMaster's Master Merry-Go-Round. http://willmaster.com/master/merrygoround/index.shtml It's a CGI file that allows you to rotate text from a web-based control panel, and will allow you to rotate anything you can put on a Web page by entering it through a control panel. The best part is it's free and easy to install. Serenata |
Subject:
Re: Message Banner from a text file
From: jdog-ga on 04 Mar 2003 22:59 PST |
The problem is that some hosts don't allow cgi and the likes. That's why I was asking who hosted the page. |
Subject:
Re: Message Banner from a text file
From: swykpisz-ga on 05 Mar 2003 15:19 PST |
It's posted on earthlink it php the way to using text files and such |
Subject:
Re: Message Banner from a text file
From: jdog-ga on 07 Mar 2003 20:33 PST |
yeah, you can do it using PHP (you might want to check out [ http://www.php.net ]) if this is something that interests you. Otherwise, consider using the CGI program that serenata posted ([ http://willmaster.com/master/merrygoround/index.shtml]), it seems to do what you want. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |