SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Radio Script

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Feb 2001
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm new to JavaScripting and desperately help with a script that simulates a car radio. When the power is off, the current time is shown in the main display. The clock updates itself as time goes by.

    The main display shows the band (AM or FM), and the currently tuned station. The volume indicator (below the main display) is set at 3, shown as three dashes.

    Pressing the AM/FM switch will change the band.

    The Tune buttons increase or reduce the frequency. The lowest AM frequency is 540. The highest is 1600. The frequency changes in increments of 10. The lowest FM frequency is 88. The highest is 108. The increment is 0.1.

    The volume buttons change the volume display from 1 to 10 in increments of 1. The volume is shown in the display as one dash for each volume level.

    The radio remembers its settings when you turn it on and off. For example, suppose you turn the radio on, set it to FM 91.7 at a volume of 6, turn the radio off, and then turn it on again. The radio will be set to FM 91.7 at a volume of 6.

    The same applies for the band. If you change the band to AM, set it to 950, change to FM, set the radio to 91.7, and change back to AM, the radio will be set back to 950 (the last frequency you had before changing bands).

    If anyone knows where I can find a very similar script or wouldn't mind suggesting some ideas on how to build this script, I would appreciate it very much. Thanks in advance for your help!

  2. #2
    Skills to Pay the Bills Sparkie's Avatar
    Join Date
    Jul 1999
    Location
    A cave with 47 computers and an internet feed
    Posts
    3,559
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Welcome to SitePoint, suem

    I'm going to move your post to the Client Side Scripting forum, where all the Javascript junkies hang out You're more likely to find a helpful answer there! Good luck!
    Sherice Jacob - Web Improvement Expert
    Improve Website Conversions | eBook Covers
    Follow Me on Twitter!

  3. #3
    SitePoint Wizard westmich's Avatar
    Join Date
    Mar 2000
    Location
    Muskegon, MI
    Posts
    2,328
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've never seen a script for this. This seems like a very large and intensive program. It also sounds like this might be better suited as a Java program, an applet. Again, I don't know of one in existance, but I can give you some links to get started on.

    http://javaboutique.internet.com/
    http://www.javaworld.com/
    Westmich
    Smart Web Solutions for Smart Clients
    http://www.mindscapecreative.com


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
  •