If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Senior Member solidgold's Avatar
    Join Date
    Jun 2006
    Member #
    Hey, i'm making a website for a local skate team in which im required to have a easy to update news area in the form of a textarea, i was wondering if there is any way to have an area where i can put "News" or something like that which doesnt move along with the rest of the textarea, a stationary region within the textarea, is this possible? if so, how can i do it?


  3. #2
    Senior Member Shani's Avatar
    Join Date
    Nov 2004
    Member #
    To make something always appear at the same spot, set the position to static in the CSS:

      position: static;
      left: [enter coordinate here];
      top: [enter coordinate here];
    edit: addition of html

    HTML Code:
    <div id="news">Game this weekend at Central Park, be there at noon!</div>

    I have an eye for detail like you'd never believe.

  4. #3
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Cottage Grove, Minnesota
    Member #
    718 times
    To help you out with updating your news, do this:

    1) Change the extension of your "index.html" file to "index.php"

    2) Create a text file called: "news1.txt", type in all of the text
    you want and save it in the same directory as your "index.php" file.

    3) Add this line where you want the text to appear:

    <?php include 'news1.txt'; ?>

    Like this possibly (as DCScene showed) ...

    div id="news"><?php include 'news1.txt'; ?></div>

    4) Now, you only need to edit the text file instead of your webpage.

    5) The next step would be to allow that text file to be uploaded from
    another page, like an "administration page", that way, anyone could
    update the "news1.txt" file.

    6) You'll soon see how powerful the PHP include can be ... you can have
    dozens of them on your webpage, dynamically changing various sections.

    and then give us a link to the site so we can see what you're doing...


  5. #4
    Senior Member solidgold's Avatar
    Join Date
    Jun 2006
    Member #
    ok thanks, i was looking into doing more with PHP anyway, although your idea seems to make a lot more sense than anything i've read on most tutorials! thanks a lot!

  6. #5
    ljm is offline
    Senior Member ljm's Avatar
    Join Date
    Aug 2006
    Manchester, England
    Member #
    1 times
    That's a good idea, since it saves you fiddling around with databases (for what I can only assume is a small site), and a couple of lines of code will sort it out.

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 03:16 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: