www.webdeveloper.com
Results 1 to 4 of 4

Thread: How can I make a widger that changes text every day ?

  1. #1
    Join Date
    Sep 2013
    Posts
    1

    How can I make a widger that changes text every day ?

    Hi all
    On my website, I want to make a box or widget and name it "Tip of the day" and I want to be able to like, put more tips and let them change every day.

    Can I do this and how ?

  2. #2
    Join Date
    Mar 2011
    Posts
    1,133
    You'll need a sever-based script for that. Try searching on "tip of the day script" or "message of the day script".
    Rick Trethewey
    Rainbo Design

  3. #3
    Join Date
    May 2005
    Location
    Gold Coast (MS)
    Posts
    2,208

  4. #4
    Join Date
    Sep 2013
    Posts
    221
    You can try this using word press.
    or in html an try this:

    <script>
    <!--

    var today_obj=new Date()
    var today_date=today_obj.getDate()

    var tips=new Array()
    //Configure the below variable to contain the "header" of the tip
    var tiptitle=''

    //Configure the below array to hold the 31 possible tips of the month
    tips[1]='Tip 1 goes here'
    tips[2]='Tip 2 goes here'
    tips[3]='Tip 3 goes here'
    tips[4]='Tip 4 goes here'
    tips[5]='Tip 5 goes here'
    tips[6]='Tip 6 goes here'
    tips[7]='Tip 7 goes here'
    tips[8]='Tip 8 goes here'
    tips[9]='Tip 9 goes here'
    tips[10]='Tip 10 goes here'
    tips[11]='Tip 11 goes here'
    tips[12]='Tip 12 goes here'
    tips[13]='Tip 13 goes here'
    tips[14]='Tip 14 goes here'
    tips[15]='Tip 15 goes here'
    tips[16]='Tip 16 goes here'
    tips[17]='Tip 17 goes here'
    tips[18]='Tip 18 goes here'
    tips[19]='Tip 19 goes here'
    tips[20]='Tip 20 goes here'
    tips[21]='Tip 21 goes here'
    tips[22]='Tip 22 goes here'
    tips[23]='Tip 23 goes here'
    tips[24]='Tip 24 goes here'
    tips[25]='Tip 25 goes here<img src="http://www.vodahost.com/vodatalk/vb3bluesaint/misc/logo.gif" alt="">'
    tips[26]='Tip 26 goes here<img src="http://www.vodahost.com/vodatalk/vb3bluesaint/misc/logo.gif" alt="">'
    tips[27]='Tip 27 goes here<img src="http://www.vodahost.com/vodatalk/vb3bluesaint/misc/logo.gif" alt="">'
    tips[28]='Tip 28 goes here<img src="http://www.vodahost.com/vodatalk/vb3bluesaint/misc/logo.gif" alt="">'
    tips[29]='Tip 29 goes here<img src="http://www.vodahost.com/vodatalk/vb3bluesaint/misc/logo.gif" alt="">'
    tips[30]='Tip 30 goes here<img src="http://www.vodahost.com/vodatalk/vb3bluesaint/misc/logo.gif" alt="">'
    tips[31]='Tip 31 goes here<img src="http://www.vodahost.com/vodatalk/vb3bluesaint/misc/logo.gif" alt="">'

    document.write(tiptitle)
    document.write(tips[today_date])

    The above code chould be written in the <script> tag.
    Hope this helps.
    strad solutionswww.stradsolutions.com

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles