Jump to content

gsc1ugs

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by gsc1ugs

  1. I cant understand why this is not working.. I compare two strings, if they match then do something.. I'm getting values 1 for the first and 8 for the second??

    carquest-clearvape

    carquest-carquest

     

     

    					if (strcmp($_SESSION['username'],$username)==0)
    						echo $this->amount($offer['amount'], $listing['currency']); 
    					else
    						echo $this->amount("*****", $listing['currency']); 	

     

  2. I'm trying to remove the download link to the control, could anyone help with this please?

    <html>
    <head>
    </head>
    <body>
    
    <audio id="sample" src="unforgettable fire.mp3" controls preload></audio>
    
    <br>
    <a href="javascript:playSegment(10, 15);">Play1</a>
    <script>
    
    
    var audio = document.getElementById('sample');
    var segmentEnd;
    
    audio.addEventListener('timeupdate', function ()
    {	
        if (segmentEnd && audio.currentTime >= segmentEnd) 
        {
            audio.pause();
        }   
        console.log(audio.currentTime);
    }, false);
    
    function playSegment(startTime, endTime){
        segmentEnd = endTime;
        audio.currentTime = startTime;
        audio.play();
    }
    </script>
    </body>
    </html>
    
×
×
  • Create New...