Generating six random cards with Javascript -


I use math.random () in javascript to try to get six random cards from a deck of 52 I am here. Thus far none of my images is visible, all my CSS 3 and Javascript embedded in my html5 code. Apart from this, all my images are GIF pictures. You can see in html5 code which is die1 is blank.gif while evrything else is blank.png my set image function should be changed to SRC, so I think that it will not make any difference to me. The code is as follows, thanks for any help:

   id   

startButton . In your current code, you are trying to get the button by id , but the button does not have id but the value of the class attribute < Code> Startbutton .

You can change the class attribute for your id attribute to fix your problem:

  & Lt; P & gt; & Lt; Input id = "startbutton" type = "button" value = "start" & gt; & Lt; / P & gt;  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -