HTML JavaScript DHTML



IMG dynsrc Property

var trainImg = new Image(160,120)
trainImg.src = "http://www.rntsoft.com/style/logo.png"
trainImg.dynsrc = "http://www.rntsoft.com/style/logoRed.png"
function setLoop() {
    var selector = document.forms[0].looper
    document.myIMG.loop = selector.options[selector.selectedIndex].value
}
function setImage(type) {
    if (type == "jpg") {
        document.myIMG.dynsrc = ""
        document.myIMG.src = trainImg.src
    } else {
        document.myIMG.src = ""
        document.myIMG.start = "fileopen"
        setLoop()
        document.myIMG.dynsrc = trainImg.dynsrc
    }
}



IMG dynsrc Property





Choose image type: 
Still
Video

Play video how many times after loading: 

    Once
    Twice
    Continuously