Landing : Athabascau University

Unit 5: Java Script programming design

  • Public
By Khurshid Sadiq December 16, 2020 - 11:02am
  1. For my audio code, I first researched on google and came across this website https://javascript-tutor.net/index.php/playing-music-using-javascript/#:~:text=In%20order%20to%20play%20an,displayed%20like%20play%2C%20pause%20etc


I then edited the code to match my website and audio file that I've attatched. 

  1. Pakistan National Anthem





    //
    var myMusic= document.getElementById("music");
    function play() {
    myMusic.play();
    }

    function pause() {
    myMusic.pause();
    }
    // ]]>

    2. For the slide show I found a link at How To Create a Slideshow and altered their code to implement my own photos

     

    <!-- Full-width images with number and caption text -->


    1 / 3

    image
    Peacock

     


    2 / 3

    image
    Siberian Ibex

     


    3 / 3

    image
    Wild Sheep

     


    4 / 3

    image
    Striped Hyena

     


    5 / 3

    image
    Buffalo

     


    6 / 3

    image
    Lepard

     


    7 / 3

    image
    Mugger crocodile

    //
    var myMusic= document.getElementById("music");
    function play() {
    myMusic.play();
    }

    function pause() {
    myMusic.pause();
    }
    // ]]>

Comments

These comments are moderated. Your comment will not be visible unless accepted by the content owner.

Only simple HTML formatting is allowed and any hyperlinks will be stripped away. If you need to include a URL then please simply type it so that users can copy and paste it if needed.

(Required)

(Required)