HTML Help Forum HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

Hiding text automatically after certain time period
Post a Reply to this Topic Ask a New Question
Click here to go to the original topic
       HTML Help Forum -> Javascript
View previous topic :: View next topic  
Author Message
sp1024



Joined: 25 Feb 2009
Posts: 2

Posted: Wed Feb 25, 2009 6:06 pm     Hiding text automatically after certain time period  

Hi, I was wondering...

I work at a newspaper, and we post stories regularly and to grab readers' attention, the new stories have TODAY in bright red. After the first day, we manually edit each story and remove the text. Is there any way to insert code with this so that at a defined time period the TODAY text disappears, thus saving an extra step of having to manually change it all?

Thanks
PayneLess Designs



Joined: 28 Feb 2007
Posts: 4286
Location: MS

Posted: Thu Feb 26, 2009 6:29 am      

Your webmaster should be able to set this up, but you could use Server Side Includes (SSI) if you are editing/replacing content daily or the same content needs to be updated on many pages.

Using this method will allow you to edit just the include file, upload and overwrite the old one and have the changes appear on the pages that have the include code.
sp1024



Joined: 25 Feb 2009
Posts: 2

Posted: Thu Feb 26, 2009 10:20 am      

Ok cool, I've worked with Server Side Includes before but I didn't think of that. I wonder if it will work within our Content Management System, we use College Publisher... I'll look into it, thanks.
PayneLess Designs



Joined: 28 Feb 2007
Posts: 4286
Location: MS

Posted: Thu Feb 26, 2009 10:34 am      

You're welcome. I think if you use PHP includes, it should work ok. Post back, please, as I would be interested in knowing for sure about CMS and includes.
 
 
DARFUR
HOSTING / DESIGN
MAKE MONEY

       HTML Help Forum -> Javascript
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group