Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Apr 2016
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Please change font

    Please can someone make this code use the font 'Veranda'. I cannot produce code and don't know how to do it. Thanks

    Code:
    </style> 
    
    <script type="text/javascript">
    
    document.getElementById("myP").style.fontFamily = "Impact,Charcoal,sans-serif";
    /* NOT CURRENTLY USED
    var thedate = new Date();
    var dayofweek = thedate.getDay();
    var hourofday = thedate.getHours();
    
    var GMT = new Date().getTimezoneOffset();
    var offsetGMT = -5 * new Date().getTimezoneOffset()/60;
    */
    
    // Sun=0 1 2 3 4 5 Sat=6
    var DayOfWeek = new Array('Weekend','Monday','Tuesday','Wednesday','Thursday','Friday','Weekend');
    
    var NoShow = 'No Show Scheduled<br />for KSWH';
    var DH = new Array (7);
    for (d=0; d<7; d++) {
    DH[d] = new Array (24);
    for (h=0; h<24; h++) { DH[d][h] = ''; }
    }
    
    DH[1][09] = '<img src="Iimage.jpg" width=100 height=80 border=1> Dean sharp breakfast show 9am to 12pm';
    DH[1][10] = '<img src="Iimage.jpg" width=100 height=80 border=1> Dean sharp breakfast show 9am to 12pm';
    DH[1][11] = '<img src="Iimage.jpg" width=100 height=80 border=1> Dean sharp breakfast show 9am to 12pm';
    DH[1][12] = '<img src="Iimage.jpg" width=100 height=80 border=1> cheryle dale 12pm to 4pm';
    DH[1][13] = '<img src="Iimage.jpg" width=100 height=80 border=1> cheryle dale 12pm to 4pm';
    DH[1][14] = '<img src="Iimage.jpg" width=100 height=80 border=1> cheryle dale 12pm to 4pm';
    DH[1][15] = '<img src="Iimage.jpg" width=100 height=80 border=1> cheryle dale 12pm to 4pm';
    DH[1][16] = '<img src="Iimage.jpg" width=100 height=80 border=1> Jessie brooke evening show 4pm to 8pm';
    DH[1][17] = '<img src="Iimage.jpg" width=100 height=80 border=1> Jessie brooke evening show 4pm to 8pm';
    DH[1][18] = '<img src="Iimage.jpg" width=100 height=80 border=1> Jessie brooke evening show 4pm to 8pm';
    DH[1][19] = '<img src="Iimage.jpg" width=100 height=80 border=1> Jessie brooke evening show 4pm to 8pm';
    DH[1][20] = '<img src="Iimage.jpg" width=100 height=80 border=1> Zenith classic rock 8pm to 10pm';
    DH[1][21] = '<img src="Iimage.jpg" width=100 height=80 border=1> Zenith classic rock 8pm to 10pm';
    
    
    // Add more when schedule is known. Note: there may be better ways to do this when information is known.
    
    
    function OnNow() {
    var thedate = new Date();
    var dayofweek = thedate.getDay();
    var hourofday = thedate.getHours();
    // alert(dayofweek+':'+hourofday+'<br />'+DH[dayofweek][hourofday]);
    var showOn = DH[dayofweek][hourofday];
    if (showOn == '') { showOn = thedate+'\n\nNo Show Scheduled'; }
    alert(showOn);
    }
    
    function NowON() {
    var thedate = new Date();
    var dayofweek = thedate.getDay();
    var hourofday = thedate.getHours();
    var showOn = DH[dayofweek][hourofday];
    if (showOn == '') { showOn = thedate+'<p />No Show Scheduled'; }
    document.getElementById('NowOn').innerHTML = showOn;
    } 
    </script>
    <strong></strong>
    </head>
    <BODY onLoad="NowON()">
    <!-- Unhide this if table display desired
    <script type="text/javascript">
    document.write(TableStationSchedule())
    </script>
    -->
    <script type="text/javascript">
    document.write(NowON());
    </script>
    <div id='NowOn' onClick="NowON()">Destiny106 FM ON AIR NOW</div> 
    </body>
    </div>

  2. #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    9,864
    Thanks
    6
    Thanked 1,164 Times in 1,135 Posts
    Do you see this line right at the top?
    Code:
    document.getElementById("myP").style.fontFamily = "Impact,Charcoal,sans-serif";
    The highlighted part is where the font family names are inserted, and it’s CSS.

  3. #3
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    2,228
    Thanks
    0
    Thanked 342 Times in 335 Posts
    Hi there bambam35614,

    and a warm welcome to the forums.

    Do you mean "Verdana" or do you mean "Veranda Poster SG" ?

    The former is a relatively standard font, whereas the later is not and would entail embedding.

    Either way, it would be preferable to define the "font-family" in your stylesheet.

    Some basic further reading:-


    coohead
    ~ the original bald headed old fart ~

  4. #4
    New to the CF scene
    Join Date
    Apr 2016
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I mean't verdana sorry

  5. #5
    New to the CF scene
    Join Date
    Apr 2016
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It's not changing. It is using Times New Romans
    -forum-jpg

  6. #6
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    9,864
    Thanks
    6
    Thanked 1,164 Times in 1,135 Posts
    Got link?

  7. #7
    New to the CF scene
    Join Date
    Apr 2016
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    realradio.tk


 

Tags for this Thread

Posting Permissions

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