Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: new image every hour...

  1. #1
    Join Date
    May 2006
    Posts
    266
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default new image every hour...

    Hi i have been looking for this type of script for my new site how every i can seem to see one can anyone help?

    The script i want calls on a new image every hour how ever it depends on what time it is in Perth Australia witch is +8hours.

    i was thinking that there would be many ways to do this wether it finds a new html page on that hour.

    Also This is for a radio station website which is getting a BIG face lift.
    So any suggestions on how to get this work would be GREAT.

    Also i am looking for a script that will let people request songs we have over 700 songs was thinking of making one big form which i know i have to do but is there any easyer way to do this?

    One last question.

    Is there a way that i can dissplay RSS feeds with out the bullett holes nect to the item?

    this would be cool as i could have a ticker that showed the latest in music news.

    P.S. the site is being designed in CSS and html this is my first site in CSS so iam really looking forward to seeing what people think.

    I am trying to make a site that looks like many pages but only has one page so far i have looked at scripts like yahoo.com.au search area and MSN. I love there new Australian Site looks like windows media player skin.

    msn.com.au

    Also one last last thing.

    - Is there anyway to do what yahoo.com.au does with users name for e.g. i have a phpbb forum and i would like it that when they came to the site it said good morning Russell or if not signed in it says Good Morning (IP ADDRESS) or (Guest)


    Sorry for all the questions but makes it easyer then posting like 4 different post and they are all for the same site.

    Please feel free to email me at queerfm.com.au

  2. #2
    Join Date
    Mar 2006
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Talking

    for the requesting a song Try these people...
    http://express.perseus.com/perseus/asp/login.aspx

    you can edit the source code and still have it sent properly. It's what I did.

  3. #3
    Join Date
    Mar 2006
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Default

    Ok, see this http://www.dynamicdrive.com/dynamici.../dowiframe.htm I don't know if this will work, but you might be able to change:
    Code:
    daycontent[1]="monday.htm" //Monday content
    daycontent[2]="tuesday.htm" //Tuesday content
    daycontent[3]="wednesday.htm"
    daycontent[4]="thursday.htm"
    daycontent[5]="friday.htm"
    daycontent[6]="saturday.htm"
    daycontent[0]="sunday.htm"
    to something for every hour. And how many hours/pics?

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Code:
    <img id="hrimg" src="img0.jpg">
    <script type="text/javascript">
    document.getElementById("hrimg").src = "img" + (new Date()).getHours() + ".jpg";
    </script>
    That will work unless you want it to use a specific image each hour, rather than just a different one. In that case, you will need to use server-side scripting.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    May 2006
    Posts
    266
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks for all the help so far.

    Now where do i start well maby with the form for the songs, Thanks for the IDEA i am looking at it right now.

    And the pic code.
    I need it for every hour an image for e.g. I have a lunch time show at 12pm Western Australia time +8hours

    so i need a pic of me to come up.

    Thanks for every ones help sp far

  6. #6
    Join Date
    Mar 2006
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Arrow

    If i'm not mistaken. Dont the form place give you free unlimited results???

  7. #7
    Join Date
    May 2006
    Posts
    266
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    i don't know, i have just been givin a list of songs over 800 of them how this is going to be interesting i have to get this done with in 2 weeks what the!!!!

    Please if any one can help me that would be GREAT.

    I just was thinking i a think i have an idea of how to get the image to work with the time in some ones country let me explain my idea is what ill need help with as i want the images to be in a css form so i don't have to edit the html pages so much.

    so lets say its bettween
    8am and 9 am it shows image(a)
    then
    9am - 10am it shows image(b)
    10am - 11am it shows image(c)


    and so on till we get the full 24 hours.

    then all i ave to do is find away to get them to chose the country that they are in so they get the right site and images. However i was thinking about doing this by time zone so it would be easyer.

    e.g. yahoo.com.au has something like this can any one help with it.

    you choise what state you are in and it takes you to a webpage for that state can we do this the same way like a drop down menu?

    Thanks

  8. #8
    Join Date
    Mar 2006
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Default

    If you can find a script. Just make an enter page asking for the country/timezone then that link that has the script will take them to the right one.

  9. #9
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I need it for every hour an image for e.g. I have a lunch time show at 12pm Western Australia time +8hours

    so i need a pic of me to come up.
    Yeah, I was worried about that. You'll need to use some form of server-side scripting to get the server's current time.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  10. #10
    Join Date
    May 2006
    Posts
    266
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    could i use something like this

    <SCRIPT LANGUAGE = 'JavaScript'><!--
    var date = new Date();
    var hours = date.getHours();
    if ( (hours < 6) || (hours > 18) )
    document.write("<IMG SRC='moon.gif'>")
    else
    document.write("<IMG SRC='sun.gif'>");
    //--></SCRIPT>

    however i need some help.

    how do i get this script to show more images like ever hour, i have worked out how ill fix the time zones, so that fine. just need this script to show more images one image for every hour.

    Thanks

Bookmarks

Posting Permissions

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