Page 2 of 9 FirstFirst 1234 ... LastLast
Results 11 to 20 of 82
  1. #11

    Title
    Junior Broadcaster
    Join Date
    Oct 2012
    Location
    UK
    Posts
    86
    Rep Power
    8
    hi i'm looking for some sort of code in html were the autodj picture changes at certain times of the day?
    so for example dj solaris at 12pm till 4pm then from 4pm till 8pm is autodj then from 8pm till 12am is dj foxy and so forth?
    check out our website at http://nrgextreme.co.uk and look at the on air now auto dj pic i want that to automatically change
    at a certain time of day when our dj's are on

  2. #12

    Title
    Junior Broadcaster
    Join Date
    Oct 2012
    Location
    UK
    Posts
    86
    Rep Power
    8

    dj on air now image changer

    hi i'm looking for some sort of coding were
    our dj's images changes at a certain time of the day?

    so for example auto dj image changes to djultra's image at say like 12pm till 3pm
    then after 3pm djultra's image changes to dj solaris's image then at 5pm dj solaris's
    image changes to dj ash's image then after 5pm changes back to the auto dj image
    then at 7pm changes to dj foxy image and so on and so forth

    please help,

    i have a code but i don't know how to work it see, ill post it here

    <?php
    $h = date('G'); //set variable $h to the hour of the day
    $d = date('w'); //set variable $d to the day of the week.
    $year = date('Y'); //set variable $year to the current year
    //G is the date key for hours in 24 format (not 12), with no leading 0s, like 02.
    // Adjust 2 hour offset for MST below.
    $h = $h+1;


    // MONDAY SCHEDULE
    if ($d == 1 && $h >= 0 && $h < 4) $img = 'images/autodj.jpg';
    else if ($d == 1 && $h >= 4 && $h < 8) $img = 'images/autodj.jpg';
    else if ($d == 1 && $h >= 8 && $h < 12) $img = 'images/autodj.jpg';
    else if ($d == 1 && $h >= 12 && $h < 14) $img = 'images/autodj.jpg';
    else if ($d == 1 && $h >= 14 && $h < 16) $img = 'images/djtaylor.jpg';
    else if ($d == 1 && $h >= 16 && $h < 19) $img = 'images/autodj.jpg';
    else if ($d == 1 && $h >= 19) $img = 'images/autodj.jpg';
    else if ($d == 2 && $h < 0) $img = 'images/autodj.jpg';


    // TUESDAY SCHEDULE
    if ($d == 2 && $h >= 0 && $h < 4) $img = 'images/autodj.jpg';
    else if ($d == 2 && $h >= 4 && $h < 8) $img = 'images/autodj.jpg';
    else if ($d == 2 && $h >= 8 && $h < 12) $img = 'images/autodj.jpg';
    else if ($d == 2 && $h >= 12 && $h < 13) $img = 'images/autodj.jpg';
    else if ($d == 2 && $h >= 13 && $h < 15) $img = 'images/autodj.jpg';
    else if ($d == 2 && $h >= 15 && $h < 17) $img = 'images/autodj.jpg';
    else if ($d == 2 && $h >= 17 && $h < 20) $img = 'images/autodj.jpg';
    else if ($d == 2 && $h >= 20) $img = 'images/autodj.jpg';
    else if ($d == 3 && $h < 0) $img = 'images/autodj.jpg';


    // WEDNESDAY SCHEDULE
    if ($d == 3 && $h >= 0 && $h < 4) $img = 'images/autodj.jpg';
    else if ($d == 3 && $h >= 4 && $h < 8) $img = 'images/autodj.jpg';
    else if ($d == 3 && $h >= 8 && $h < 12) $img = 'images/autodj.jpg';
    else if ($d == 3 && $h >= 12 && $h < 13) $img = 'images/autodj.jpg';
    else if ($d == 3 && $h >= 13 && $h < 15) $img = 'images/autodj.jpg';
    else if ($d == 3 && $h >= 15 && $h < 19) $img = 'images/autodj.jpg';
    else if ($d == 3 && $h >= 19) $img = 'images/autodj.jpg';
    else if ($d == 4 && $h < 0) $img = 'images/autodj.jpg';


    // THURSDAY SCHEDULE
    if ($d == 4 && $h >= 0 && $h < 4) $img = 'images/autodj.jpg';
    else if ($d == 4 && $h >= 4 && $h < 8) $img = 'images/autodj.jpg';
    else if ($d == 4 && $h >= 8 && $h < 12) $img = 'images/autodj.jpg';
    else if ($d == 4 && $h >= 12 && $h < 13) $img = 'images/autodj.jpg';
    else if ($d == 4 && $h >= 13 && $h < 15) $img = 'images/autodj.jpg';
    else if ($d == 4 && $h >= 15 && $h < 19) $img = 'images/autodj.jpg';
    else if ($d == 4 && $h >= 19) $img = 'images/autodj.jpg';
    else if ($d == 5 && $h < 0) $img = 'images/autodj.jpg';


    // FRIDAY SCHEDULE
    if ($d == 5 && $h >= 0 && $h < 4) $img = 'images/autodj.jpg';
    else if ($d == 5 && $h >= 4 && $h < 8) $img = 'images/autodj.jpg';
    else if ($d == 5 && $h >= 8 && $h < 10) $img = 'images/autodj.jpg';
    else if ($d == 5 && $h >= 10 && $h < 12) $img = 'images/ten.gif';
    else if ($d == 5 && $h >= 12 && $h < 13) $img = 'images/autodj.jpg';
    else if ($d == 5 && $h >= 13 && $h < 15) $img = 'images/autodj.jpg';
    else if ($d == 5 && $h >= 15 && $h < 18) $img = 'images/autodj.jpg';
    else if ($d == 5 && $h >= 18 && $h < 20) $img = 'images/autodj.jpg';
    else if ($d == 5 && $h >= 20 && $h < 22) $img = 'images/autodj.jpg';
    else if ($d == 5 && $h >= 22) $img = 'images/autodj.jpg';
    else if ($d == 6 && $h < 0) $img = 'images/autodj.jpg';


    // SATURDAY SCHEDULE
    else if ($d == 6 && $h >= 0 && $h < 4) $img = 'images/autodj.jpg';
    else if ($d == 6 && $h >= 4 && $h < 5) $img = 'images/autodj.jpg';
    else if ($d == 6 && $h >= 5 && $h < 8) $img = 'images/autodj.jpg';
    else if ($d == 6 && $h >= 8 && $h < 9) $img = 'images/autodj.jpg';
    else if ($d == 6 && $h >= 9 && $h < 10) $img = 'images/autodj.jpg';
    else if ($d == 6 && $h >= 10 && $h < 11) $img = 'images/autodj.jpg';
    else if ($d == 6 && $h >= 11 && $h < 12) $img = 'images/autodj.jpg';
    else if ($d == 6 && $h >= 12 && $h < 13) $img = 'images/autodj.jpg';
    else if ($d == 6 && $h >= 13 && $h < 14) $img = 'images/autodj.jpg';
    else if ($d == 6 && $h >= 14 && $h < 15) $img = 'images/autodj.jpg';
    else if ($d == 6 && $h >= 15 && $h < 17) $img = 'images/autodj.jpg';
    else if ($d == 6 && $h >= 17 && $h < 19) $img = 'images/autodj.jpg';
    else if ($d == 6 && $h >= 19 && $h < 22) $img = 'images/autodj.jpg';
    else if ($d == 6 && $h >= 22) $img = 'images/autodj.jpg';
    else if ($d == 0 && $h < 0) $img = 'images/autodj.jpg';


    // SUNDAY SCHEDULE
    else if ($d == 0 && $h >= 0 && $h < 2) $img = 'images/autodj.jpg';
    else if ($d == 0 && $h >= 2 && $h < 4) $img = 'images/autodj.jpg';
    else if ($d == 0 && $h >= 4 && $h < 5) $img = 'images/autodj.jpg';
    else if ($d == 0 && $h >= 5 && $h < 6) $img = 'images/autodj.jpg';
    else if ($d == 0 && $h >= 6 && $h < 8) $img = 'images/autodj.jpg';
    else if ($d == 0 && $h >= 8 && $h < 9) $img = 'images/autodj.jpg';
    else if ($d == 0 && $h >= 9 && $h < 10) $img = 'images/autodj.jpg';
    else if ($d == 0 && $h >= 10 && $h < 11) $img = 'images/autodj.jpg';
    else if ($d == 0 && $h >= 11 && $h < 12) $img = 'images/autodj.jpg';
    else if ($d == 0 && $h >= 12 && $h < 16) $img = 'images/autodj.jpg';
    else if ($d == 0 && $h >= 16 && $h < 17) $img = 'images/autodj.jpg';
    else if ($d == 0 && $h >= 17 && $h < 18) $img = 'images/autodj.jpg';
    else if ($d == 0 && $h >= 18 && $h < 19) $img = 'images/autodj.jpg';
    else if ($d == 0 && $h >= 19 && $h < 21) $img = 'images/autodj.jpg';
    else if ($d == 0 && $h >= 21) $img = 'images/autodj.jpg';
    else if ($d == 1 && $h < 0) $img = 'images/autodj.jpg';
    ?>


    <html>
    <head></head>
    <body>
    <p align="center"><img src="<?php echo $img; ?>"> </p>
    <p>&nbsp;</p>
    <p align="center">


    </body>
    </html>

    i do not know how to work this script, so i put it on our website were the autodj picture is and all the code does is just push everything down? please help

  3. #13
    sammy7545's Avatar
    Title
    Junior Member
    Join Date
    Sep 2012
    Location
    new york
    Posts
    28
    Rep Power
    8
    @djaubs89 did the code that i pasted originally for this script not work for you ?...you can set the background color or image cell spacing and cell padding also the size of the pics (make sure they are similar in size) etc....heres the html script i posted
    <html>
    <meta http-equiv="Content-Language" content="en-us">
    <body bgcolor="#000000">
    <div align="left">
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="170" height="134" id="AutoNumber1" align="left">
    <tr>
    <td width="171" height="60" bordercolordark="#FF0000" background="/images/stories/BG.jpg">
    <p align="center">
    <img src="<?php echo $img; ?>"height="100" width="100"><p align="left">
    </td>
    </tr>
    </table>
    </div>
    </body>
    </html>
    i did notice tho with this that not all browswers center the pic....firefox does a perfect job....ie and google dont

  4. #14
    sammy7545's Avatar
    Title
    Junior Member
    Join Date
    Sep 2012
    Location
    new york
    Posts
    28
    Rep Power
    8
    i've since changed alot of it....i put in a value for the cellspacing and cellpadding....took out the background image (BG.jpg) and just made it black (#000000) played with the images sizes......but i cant get all browsers to display it in the center...just firefox does the best job of that.....the rest are off center

  5. #15

    Title
    Junior Broadcaster
    Join Date
    Oct 2012
    Location
    UK
    Posts
    86
    Rep Power
    8
    yeah i have it working now thank you sammy

  6. #16
    djultra89's Avatar
    Title
    Senior Member
    Join Date
    Oct 2012
    Posts
    125
    Rep Power
    0
    Sammy Could you help me set the code up please as i am really confused?
    some people are telling me it won't update in real time and some people are telling me its javascript
    when its not? please can you help me set the code up. many thanks

  7. #17
    sammy7545's Avatar
    Title
    Junior Member
    Join Date
    Sep 2012
    Location
    new york
    Posts
    28
    Rep Power
    8
    hi dijultra i'll try......first of all this script is for php.....if your using html there are other scripts for html here......assuming your using php what u want to do is create a folder say for example "dj's" on your server.....mine is in images/stories/dj's....then u want to copy the script i originally posted to your computer and name it...whatever u want.php.....mine is whosonair.php....then u want to edit the script to the path u made the dj's folder and dj's names and times.....the script is written in 24 hour time with 2 hour slots..once u get it all setup......upload it to the main folder to your server.......then u want to create a new "wrapper" module and in the url path it to where u put the whosonair script...mine is http://coco.lastcall-radio.com/whosonair.php...once u have that.. set the size mine is 174x150 no auto height and no auto add.....u also may want to screw with the html code at the bottom of the script for fine tuning for example take out "bg.jpg" and put in a color value....mine is #000000 which is black...make sure your dj's pics are equal size to.....i think mine are either 100x100 or 125x125....once u made that new module..set your paramaters as far as modules go and give it a shot...if i'm forgetting something or you have any problems let me know......its been awhile since ive done this again u can adjust the html code at the bottom to fine tune things eg cell spacing and cell padding i know im forgetting something ...give it a try after you have made all the adjustments and like i said make a new module and path your whosonair.php to that......good luck

  8. #18

    Title
    Junior Member
    Join Date
    Sep 2012
    Location
    new york
    Posts
    9
    Rep Power
    0
    These scripts are really looking worthy , I am also going to add these to check out these for my work.
    thanks for sharing these scripts.

  9. #19
    djultra89's Avatar
    Title
    Senior Member
    Join Date
    Oct 2012
    Posts
    125
    Rep Power
    0
    Thanks for the tip Sammy but I do have a folder named dj's with the images in. its images2/dj/images but I have played around but still don't know the timing I want to work weekends from 6pm till 8pm? My time the folder for images are dj's/djdogJpg. But um could you help me out more please maybe teamview me one day and show me were things go script wise, many thanks
    Last edited by djultra89; 10-20-2012 at 06:11 PM.

  10. #20
    djultra89's Avatar
    Title
    Senior Member
    Join Date
    Oct 2012
    Posts
    125
    Rep Power
    0
    were do put the dj's pictures in this code mate?

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
  •