Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Daily Message

Status
Not open for further replies.

DrChoc

Programmer
Jan 21, 2002
1
GB
Ok im creating my own little personal site and i want a kinda tip of the day thing !!
So basically just a little text box that has a message in that changes everyday ! im doing the whole site in flash and would like to know if it is pos and if so how and is there a tute on it somewhere !!

Thanks

Graham :)
 
You can use a dynamic text box that reads the text from a .txt file, and you will have to change the .txt file content every day...is that fine for you or you want it more dinamically? Regards,
Dragos.


 
You can easyily do it with an array of days and using the date(); object show different message depending on day Regards
David Byng
bd_logo.gif

davidbyng@hotmail.com
 
if i may refer to bigbaddave's answer...

you could make an external textfile containing 31 tips of the day. the name of the variables should somehow include the day they have to appear on (i.e. tip1 - to tip31).
you should be able to make the variable (to which the textfield refers to) flexible via setVariable.
the parameter in the command loadvariable could be generated dynamically too with a date-function so that in the end the variable of the textfield is ajusted every day to "tip+NumberOfDay" and the loaded variable differs each day as you give the command to load the variable "tip+NumberOfDay".

i hope that was not too confusing

i havent tried that yet but i think that should work.
that way you'd have to refresh the tips-file just once a month regards

Firegambler
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top