Show/hide image with JavaScript

后端 未结 6 657
抹茶落季
抹茶落季 2020-12-08 15:17

I have an HTML page with an image that I set to be invisible by CSS visibility: hidden. I want to make a link called \"Show image\", so that when I click on it,

6条回答
  •  被撕碎了的回忆
    2020-12-08 15:42

    You can do this with jquery just visit http://jquery.com/ to get the link then do something like this

    Show Image
    
    
    
    
    

    or if you would like the link to turn the image on and off do this

    Show Image
    
    
    
    
    

提交回复
热议问题