Wrox Programmer Forums
|
BOOK: Beginning JavaScript
This is the forum to discuss the Wrox book Beginning JavaScript by Paul Wilton; ISBN: 9780764544057
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning JavaScript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 13th, 2009, 02:57 AM
Registered User
 
Join Date: Mar 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default images wont display ch5_examp3

I can't get any images to display in Mozzilla or IE using the code given. I have downloaded the code and image files from wrox. Please help.


here's the code.

Code:

<html>
<body>

<img name=img1 src="" border=0 width=200 height=150>

<script language="Javascript">

    var myImages = new Array("usa.gif","canada.gif","jamaica.gif","mexico.gif");
    var imgIndex = prompt("Enter a number from 0 to 3","");
    document.images["img1"].src = myImages[imgIndex];
</script>

</body>
</html>





Similar Threads
Thread Thread Starter Forum Replies Last Post
VB6 wont display crystal Reports 10.0 cnobles VB How-To 2 September 7th, 2014 09:21 AM
Selected value from dropdown menu wont display. mizjinx Classic ASP Databases 0 May 20th, 2007 08:24 PM
Report wont display from Report Manager. dillig BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 July 14th, 2004 11:25 AM
how to display images ? shirley65 C# 2 May 31st, 2004 08:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.