simo Posted September 6, 2007 Share Posted September 6, 2007 hi there ;this is my first topicis possible to view image in alert messageand thanx Link to comment Share on other sites More sharing options...
aspnetguy Posted September 6, 2007 Share Posted September 6, 2007 no it is not. You would have to simulate the alert message with a div or iframe if you want to do that. Link to comment Share on other sites More sharing options...
simo Posted September 6, 2007 Author Share Posted September 6, 2007 no it is not. You would have to simulate the alert message with a div or iframe if you want to do that.hmmmmi will try and back to tell what happend with me :)thanx Link to comment Share on other sites More sharing options...
simo Posted September 6, 2007 Author Share Posted September 6, 2007 it dosn't work Link to comment Share on other sites More sharing options...
justsomeguy Posted September 6, 2007 Share Posted September 6, 2007 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 More sharing options...
Synook Posted September 7, 2007 Share Posted September 7, 2007 E.g. post your code here so we can see why it doesn't work... Link to comment Share on other sites More sharing options...
simo Posted September 9, 2007 Author Share Posted September 9, 2007 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 More sharing options...
Reg Edit Posted September 10, 2007 Share Posted September 10, 2007 Saying "it doesn't work" is the single most unhelpful thing someone can possibly say.Agree totally.dont be mad manAnd 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 More sharing options...
Synook Posted September 10, 2007 Share Posted September 10, 2007 For maximum compatibility, also use <script type="text/javascript"> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.