Jump to content

show image in alert message


simo

Recommended Posts

Saying "it doesn't work" is the single most unhelpful thing someone can possibly say. You don't say why "it" doesn't work, you don't say what errors or problems you see, you don't say what you tried, you don't even say what "it" is. It is possible to put an image in a div, and it is possible to make that div look like an alert box and appear over everything else in the middle of the screen. I don't know what you're doing (you didn't mention anything you had tried), but those things are possible, and they do in fact work.

Link to comment
Share on other sites

back :)

Saying "it doesn't work" is the single most unhelpful thing someone can possibly say. You don't say why "it" doesn't work, you don't say what errors or problems you see, you don't say what you tried, you don't even say what "it" is. It is possible to put an image in a div, and it is possible to make that div look like an alert box and appear over everything else in the middle of the screen. I don't know what you're doing (you didn't mention anything you had tried), but those things are possible, and they do in fact work.
dont be mad manthis is my simple code :)<html> <head> <title></title> <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1"> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> <script type=text/javascript> function show() { document.getElementById("divs").style.visibility="visible"; } function hide() { document.getElementById("divs").style.visibility="hidden"; } </script> </head> <body onload="hide()"> <input type=button value="show image alert" onclick="show()"> <div id="divs"><img src=alert.JPG" style="Z-INDEX: 2; POSITION: absolute ;Z-INDEX: 3; LEFT: 480px; POSITION: absolute; TOP: 272px"><img src=ok.JPG" onclick="hide();" style="Z-INDEX: 3; LEFT: 539px; POSITION: absolute; TOP: 353px"> </body></html>
Link to comment
Share on other sites

Saying "it doesn't work" is the single most unhelpful thing someone can possibly say.
Agree totally.
dont be mad man
And this has got to be the next most unhelpful thing to say! Everything justsomeguy wrote was exactly right and certainly not mad! I am going to be charitable and assume you just meant "please don't be cross with me".The code you posted works if you fix the error below:Instead of
<script type=text/javascript>

Use:

<script type=text/javascript>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...