Page 5 of 9 FirstFirst ... 34567 ... LastLast
Results 41 to 50 of 82
  1. #41
    djultra89's Avatar
    Title
    Senior Member
    Join Date
    Oct 2012
    Posts
    125
    Rep Power
    0
    has anyone got a on air script that accutally shows on our website, i have this script

    <div id="feature"><div class="topshadow">
    <div class="feat_box"><div class="textwidget widget-text"><span id="dj" style="font-size:12px; font-weight:bold; font-family: Tahoma; color: #6600FF;"><img src="http://hyper-radio.co.uk/djimages/sonic.jpg"></span>


    <script type="text/javascript">
    function display() {
    var show = "No show scheduled at present";
    var GMToffset = -5; // Your current GMT offset, whether Standard or Daylight
    var now = new Date();
    var dy = now.getDay(); // day of week 0-6
    now.setHours(GMToffset + now.getHours() + now.getTimezoneOffset() / 60);
    var hh = now.getHours();
    var mn = now.getMinutes();
    hh = hh + (mn/60); // minutes expressed as fractions of an hour


    // The GMT offset ensures that every visitor, regardless of their timezone, will see the schedule
    // that is appropriate for the site owner's local time.


    // Tip - for testing purposes you can put here
    //dy = 5;
    //hh = 9.25;
    // or whatever to check that the right show appears at that day/time.


    if (dy >=1 && dy <=5) { // days in Javascript are 0 Sunday - 6 Saturday
    if (hh >=0 && hh <1) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=1 && hh <3) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=3 && hh <6) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=5 && hh <6) {show = "http://hyper-radio.co.uk/djimages/ultra.jpg"}
    if (hh >=9 && hh <17) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=17 && hh <18) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=18 && hh <20) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=20 && hh <21) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=21 && hh <22) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=22 && hh <24) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    }
    if (dy >= 2 && dy <=5) {
    if (hh >=0 && hh <3) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=3 && hh <6) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=6 && hh <9) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=9 && hh <17) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=17 && hh <18) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=18 && hh <19) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=19 && hh <20) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=20 && hh <21) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=21 && hh <24) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}


    }


    if (dy >= 3 && dy <=5) {
    if (hh >=0 && hh <3) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=3 && hh <6) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=6 && hh <9) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=9 && hh <16) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=16 && hh <18) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=18 && hh <19) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=19 && hh <20) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=20 && hh <21) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=21 && hh <24) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    }
    if (dy >= 4 && dy <=5) {
    if (hh >=0 && hh <1) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=1 && hh <3) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=3 && hh <6) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=6 && hh <9) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=9 && hh <18) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=18 && hh <19) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=19 && hh <20) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=20 && hh <23) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=23 && hh <24) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    }


    if (dy == 5) {
    if (hh >=0 && hh <3) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=3 && hh <6) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=6 && hh <9) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=9 && hh <13) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=13 && hh <15) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=15 && hh <18) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=18 && hh <19) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=19 && hh <20) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=20 && hh <21) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=21 && hh <23) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=23 && hh <24) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    }


    if (dy == 6) { // Saturday Note the two = signs to mean equals
    if (hh >=0 && hh <3) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=3 && hh <6) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=5 && hh <6) {show = "http://hyper-radio.co.uk/djimages/ultra.jpg"}
    if (hh >=9 && hh <10) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >= 10 && hh <13) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=13 && hh <13.5) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=13.5 && hh <15) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=15 && hh <18) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=18 && hh <20) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=20 && hh <23) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=23 && hh <24) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    } //End of Saturday Shows


    if (dy == 0) { //Sunday Shows
    if (hh >=0 && hh <2) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=2 && hh <10) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=10 && hh <11) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=11 && hh <17) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=17 && hh <18) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=18 && hh <19) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=19 && hh <20) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=20 && hh <22) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    if (hh >=22 && hh <24) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg"}
    } // End of Sunday Shows


    var a = '<img src="' + show + '" />'
    document.getElementById("dj").innerHTML = a;


    setTimeout("display()", 60000); // update every 60 seconds
    }

    now when i go and put it on our site, things seem to go?

    i need a code were everything stays on the website. i don't use php at all.

    im using webplus x5 to do all my uploading to the server? and php won't go on the website, trust me i have tried

  2. #42
    djultra89's Avatar
    Title
    Senior Member
    Join Date
    Oct 2012
    Posts
    125
    Rep Power
    0
    Anyone know were I can a script for a dj schedule were I can add the times that the djs are on. And there images, also I would like it to change automatically everytime a dj goes on the air and when they go off the air and changes back to the autodj image? Any help

  3. #43
    PapaBearPW's Avatar
    Title
    Avid Broadcaster
    Join Date
    Jun 2012
    Posts
    273
    Rep Power
    14
    There are a couple issues I can see...but rather than go over them in depth, here is a version of that javascript that seems to work for me:

    Code:
    <script type="text/javascript">
    display();
    function display() {
    var show = "No show scheduled at present";
    var GMToffset = -5; // Your current GMT offset, whether Standard or Daylight
    var now = new Date();
    var dy = now.getDay(); // day of week 0-6
    now.setHours(GMToffset + now.getHours() + now.getTimezoneOffset() / 60);
    var hh = now.getHours();
    var mn = now.getMinutes();
    var ss = now.getSeconds();
    hh = hh + (mn/60); // minutes expressed as fractions of an hour
    
    
    // The GMT offset ensures that every visitor, regardless of their timezone, will see the schedule
    // that is appropriate for the site owner's local time.
    
    
    // Tip - for testing purposes you can put here
    //dy = 5;
    //hh = 9.25;
    // or whatever to check that the right show appears at that day/time.
    
    if (dy == 0) { // Sundays
        if (hh >=0 && hh <1) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=1 && hh <3) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=3 && hh <6) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=5 && hh <13) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=13 && hh <17) {show = "http://hyper-radio.co.uk/djimages/ultra.jpg";}
        else if (hh >=17 && hh <18) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=18 && hh <20) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=20 && hh <21) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=21 && hh <22) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=22 && hh <24) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
    }
    
    else if (dy == 1) { // Mondays
        if (hh >=0 && hh <1) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=1 && hh <3) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=3 && hh <6) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=5 && hh <13) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=13 && hh <17) {show = "http://hyper-radio.co.uk/djimages/ultra.jpg";}
        else if (hh >=17 && hh <18) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=18 && hh <20) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=20 && hh <21) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=21 && hh <22) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=22 && hh <24) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
    }
    
    else if (dy == 2) { // Tuesdays
        if (hh >=0 && hh <1) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=1 && hh <3) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=3 && hh <6) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=5 && hh <13) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=13 && hh <17) {show = "http://hyper-radio.co.uk/djimages/ultra.jpg";}
        else if (hh >=17 && hh <18) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=18 && hh <20) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=20 && hh <21) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=21 && hh <22) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=22 && hh <24) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
    }
    
    else if (dy == 3) { // Wednesdays
        if (hh >=0 && hh <1) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=1 && hh <3) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=3 && hh <6) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=5 && hh <13) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=13 && hh <17) {show = "http://hyper-radio.co.uk/djimages/ultra.jpg";}
        else if (hh >=17 && hh <18) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=18 && hh <20) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=20 && hh <21) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=21 && hh <22) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=22 && hh <24) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
    }
    
    else if (dy == 4) { // Thursdays
        if (hh >=0 && hh <1) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=1 && hh <3) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=3 && hh <6) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=5 && hh <13) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=13 && hh <17) {show = "http://hyper-radio.co.uk/djimages/ultra.jpg";}
        else if (hh >=17 && hh <18) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=18 && hh <20) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=20 && hh <21) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=21 && hh <22) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=22 && hh <24) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
    }
    
    else if (dy == 5) { // Fridays
        if (hh >=0 && hh <1) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=1 && hh <3) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=3 && hh <6) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=5 && hh <13) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=13 && hh <17) {show = "http://hyper-radio.co.uk/djimages/ultra.jpg";}
        else if (hh >=17 && hh <18) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=18 && hh <20) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=20 && hh <21) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=21 && hh <22) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=22 && hh <24) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
    }
    
    else if (dy == 6) { // Saturdays
        if (hh >=0 && hh <1) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=1 && hh <3) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=3 && hh <6) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=5 && hh <13) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=13 && hh <17) {show = "http://hyper-radio.co.uk/djimages/ultra.jpg";}
        else if (hh >=17 && hh <18) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=18 && hh <20) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=20 && hh <21) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=21 && hh <22) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
        else if (hh >=22 && hh <24) {show = "http://hyper-radio.co.uk/djimages/sonic.jpg";}
    }
    
    var a = '<img src="' + show + '" />';
    document.getElementById("dj").innerHTML = a;
    
    setTimeout(function(){display()}, 60000); // update every 60 seconds
    }
    
    </script>
    Notice the change to your setTimeout() as well as including a call to the display() function at the beginning of the script (necessary to get the function running at the beginning. Otherwise all you are doing is creating a function but never using it.). In addition I setup an if-else if format so that only the necessary checks are made in order to reduce server load.

    Let me know if that helps.

  4. #44
    djultra89's Avatar
    Title
    Senior Member
    Join Date
    Oct 2012
    Posts
    125
    Rep Power
    0
    ok is that in GMT

  5. #45
    PapaBearPW's Avatar
    Title
    Avid Broadcaster
    Join Date
    Jun 2012
    Posts
    273
    Rep Power
    14
    No. If you need GMT, I believe you would need to change this line:

    Code:
    var GMToffset = -5; // Your current GMT offset, whether Standard or Daylight
    to:

    Code:
    var GMToffset = 0; // Your current GMT offset, whether Standard or Daylight
    When testing here in Germany, I set it to 1 and it worked fine.

  6. #46
    djultra89's Avatar
    Title
    Senior Member
    Join Date
    Oct 2012
    Posts
    125
    Rep Power
    0
    ok but thing is I'm using webplus x5 to upload my website
    an I put the code up there nd nothing came up? please help

  7. #47
    PapaBearPW's Avatar
    Title
    Avid Broadcaster
    Join Date
    Jun 2012
    Posts
    273
    Rep Power
    14
    Sorry, I'm not familiar with webplus x5. I did find this

    Usually, to add custom scripts to your WebPlus site, you need to go to Insert > Web Object > HTML and then click the appropriate button, either 'Paste to Head' or 'Paste to Body'.
    with a quick google search. You could try adding just the javascript code (either with or without the <script> tags....I'm not sure which) to the head or body as that quote states, and see if it works in either location that way.

    If that doesn't work, you should probably ask the folks at serif for further help. That's about all I can say...

  8. #48
    djultra89's Avatar
    Title
    Senior Member
    Join Date
    Oct 2012
    Posts
    125
    Rep Power
    0
    oooh ok fella many thanks..

  9. #49
    djultra89's Avatar
    Title
    Senior Member
    Join Date
    Oct 2012
    Posts
    125
    Rep Power
    0
    Is there anychance of getting a code for our websiteLike rubixradio.co.uk there onair at all?

  10. #50
    garybaldy72uk's Avatar
    Title
    Senior Member
    Join Date
    Oct 2010
    Location
    Manchester
    Posts
    671
    Rep Power
    30
    Quote Originally Posted by djultra89 View Post
    Is there anychance of getting a code for our websiteLike rubixradio.co.uk there onair at all?
    It looks very much like a Wordpress template. Which one I don't know as they've hidden the theme details.

    If you want a professional website these days you really have to think about spending some cash. I think they've paid someone to get it looking like that as well.

    If you don't want to spend cash then it's something you would have to learn your self how to do.

    I knew nothing about wordpress 2 years ago now I'm pretty clued up. It's not difficult to learn.

    Google is your friend not your enemy!

    http://djgarybaldy.co.uk
    http://djgarybaldy.co.uk/radiodj-fre...ation-software
    https://www.facebook.com/DJGarybaldy


    Problems with your current automation program? Why not switch to Radio DJ Free Radio Automation Software instead? It's 100% FREE & reliable. http://radiodj.ro

Similar Threads

  1. Protools vs Audition
    By Jinglemaster in forum Audio Production
    Replies: 9
    Last Post: 07-28-2010, 01:18 AM
  2. Could use a voice over read for more details
    By brandon_g in forum Request A Free Voiceover
    Replies: 41
    Last Post: 12-04-2009, 03:33 PM
  3. U.S. Webcasting Fee's overturned
    By saint in forum General Internet Radio Discussions
    Replies: 0
    Last Post: 08-22-2009, 04:17 PM
  4. Introducing bodalgo - The new voice over market place
    By bodalgo in forum Audio Production
    Replies: 3
    Last Post: 03-22-2009, 03:11 AM
  5. Hi you all
    By CA101 in forum Introduce Yourself
    Replies: 1
    Last Post: 11-28-2008, 08:42 AM

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
  •