Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,332 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,106 people online right now. Registration is fast and FREE... Join Now!




How to show/put images within ALERT BOX?

 
Reply to this topicStart new topic

How to show/put images within ALERT BOX?

bojourn
post 27 Sep, 2008 - 06:19 AM
Post #1


New D.I.C Head

*
Joined: 27 Sep, 2008
Posts: 5

Hi, really need some help on this image insertion on java script. I'm new to this GUI kind of thing and need litle advice on this. Thank you.

how to insert an image (.jpg/.gif/.bmp) within the second alert box, right before the word 'violation of this......"?

jscript

<script language="JavaScript">
<!-----hide from old browsers
alert('HIGHLY RESTRICTED AREA!');
//--------->
</SCRIPT>

<script LANGUAGE="JavaScript">
<!-- Begin
var agree = confirm("VIOLATION OF THIS SYSTEM WILL RESULT TO THE LAW OF XXXXXX. ANY UNAUTHORIZED ACCESS IS PROHIBITED");
if (agree)
document.write("");
else
history.go(-1);
// End -->
</SCRIPT>
User is offlineProfile CardPM

Go to the top of the page

PsychoCoder
post 27 Sep, 2008 - 06:25 AM
Post #2


using DIC.Core;

Group Icon
Joined: 26 Jul, 2007
Posts: 8,923



Thanked 118 times

Dream Kudos: 8475

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions


Moved to JavaScript smile.gif

For future reference, Java is an object orientated, multi-platform programming language, JavaScript is a client-size scripting language for the web

Mod Edit: Please use code tags when posting your code. Code tags are used like so => code.gif

Thanks,
PsychoCoder smile.gif

By the way, you cannot put images in a JavaScript alert box. You can use something like Moo Tools to create a more visual appealing alert box
User is offlineProfile CardPM

Go to the top of the page

bojourn
post 27 Sep, 2008 - 07:58 AM
Post #3


New D.I.C Head

*
Joined: 27 Sep, 2008
Posts: 5

QUOTE(PsychoCoder @ 27 Sep, 2008 - 07:25 AM) *

Moved to JavaScript smile.gif

For future reference, Java is an object orientated, multi-platform programming language, JavaScript is a client-size scripting language for the web

Mod Edit: Please use code tags when posting your code. Code tags are used like so => code.gif

Thanks,
PsychoCoder smile.gif

By the way, you cannot put images in a JavaScript alert box. You can use something like Moo Tools to create a more visual appealing alert box


Thanks for the info. Your comment is highly appreciated.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/22/08 03:11AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month