通过单击浏览器中的按钮来显示图像的html代码 [英] html code for displaying image by clicking a button in browser

查看:50
本文介绍了通过单击浏览器中的按钮来显示图像的html代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想知道通过单击浏览器中的按钮来显示图像的html代码.

谢谢


i want know the html code for displaying image by clicking a button in browser.

Thanks

推荐答案

请先共享您的代码..我想您想要这样:

Please share the your code firstly .. I guess you want like this :

<head><title>Image Display Test
    </title>
    <script type="text/javascript">
<!--
    function showImage(){
        document.getElementById('loadingImage').style.visibility="visible";
    }

    -->

    </script>
    </head>
<body>
    <input type="button" value="Show Button" onclick="showImage();"/>
    <img id="loadingImage" src="yourimage.gif" style="visibility:hidden"/>

</body>



谢谢,
Ambesha



Thanks,
Ambesha



如何通过单击浏览器中的按钮在浏览器中显示存储在本地数据库中的图像.我需要一个HTML代码

谢谢

How to display an image in the browser, stored in the local db by clicking a button in the browser. I need an html code

Thanks


这篇关于通过单击浏览器中的按钮来显示图像的html代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆