JavaScript Image FAQ
You are here: irt.org | FAQ | JavaScript | Image
- FAQ 24 How do you count the number of images on a page?
- FAQ 28 How do I preload an image?
- FAQ 35 How do I get the x,y position of the image clicked to return?
- FAQ 47 Which browsers support the Image object?
- FAQ 52 How do I check if an image file exists?
- FAQ 60 How do I swap images within tables?
- FAQ 72 How can I prevent the links from working until all the images have loaded?
- FAQ 77 How can I have an onMouseOver event handler on an image in a form?
- FAQ 81 How can I get the reload of a page to wait until an image has fully downloaded?
- FAQ 85 Can I store a gif image and a background code/or name in a variable and load it on to a frame using the document.write() method?
- FAQ 107 How do you kick off a function with a mouse click on an image?
- FAQ 113 How can I show images that swap, or, use a Java applet, or, use plain images, depending on the browsers capability?
- FAQ 119 How can I change the background image?
- FAQ 211 Why when using a form input type of "image" is the onClick event handler ignored in Netscape?
- FAQ 223 How can I make a different image appear when an image is clicked?
- FAQ 224 How can I change an image in another frame using onMouseOver?
- FAQ 236 How can I show a different image each day?
- FAQ 273 Is it possible to have an image which is not an active link unless the ctrl key is depressed when clicking?
- FAQ 282 How can I preload images into the browser cache, but only one at a time?
- FAQ 304 Can JavaScript show graphs?
- FAQ 320 Where can I get information about image rollover/mouseovers/highlighting/swapping?
- FAQ 326 How can I extract the X and Y coordinates from an image map, and use then to perform further processing in the current document?
- FAQ 327 How can I place a delay between onMouseOut and the swapping back of the image?
- FAQ 336 How can I change dynamically change the map associated with a client side imagemap?
- FAQ 346 Does Internet Explorer 4 support the image object?
- FAQ 355 Is there code to pre-download an image?
- FAQ 393 How can I display every JPG image in a defined directory as a thumbprint image that when clicked brings up the image in full?
- FAQ 414 Can you use an imagemap with onMouseOver and onMouseOut, if so, what is the proper syntax?
- FAQ 416 How can I force a reload of an image from the server if the image already exists in the browser's cache?
- FAQ 423 How can I have an image toolbar where the images remain clicked in when the document has loaded into another frame?
- FAQ 427 How do I swap two images that are not of the same size?
- FAQ 437 How can I have text links in a table that show different images to the left of the links when the mouse pointer moves over them?
- FAQ 458 How can you show a predetermined image for different days, but where the image filenames aren't consecutive?
- FAQ 459 How can I show a different background image depending on the browser?
- FAQ 497 How can I show an image but only in browsers that don't support or have javascript disabled?
- FAQ 502 How do you keep people from downloading your graphics?
- FAQ 537 Is there a way to set the 'alt' property in an image object similar to the 'src' property?
- FAQ 562 Why do you test for the image object instead of the replace method before using the replace method?
- FAQ 603 How can I create a "slideshow" using html files (not images) which move to the next page after five seconds?
- FAQ 612 In Internet Explorer how can I remove the border that appears around an image link when clicked?
- FAQ 630 How can I change 2 (or more) images in another frame using onMouseOver over 2 (or more) different areas of text?
- FAQ 642 How can I make a thumbnail image selected show a full-size image in another table cell on the same page?
- FAQ 653 How can I make sure needed images are loaded before I do a redirect to another page?
- FAQ 655 How can I change the image and href property of another link when the mouse moves over another image?
- FAQ 660 How can I swap an image using onMouseOver in an image map?
- FAQ 668 How can I swap an image out based on what someone selects from a select box?
- FAQ 693 How do I run a CGI script without returning anything?
- FAQ 708 Can I have a mouse over in a client side image map change a different image on the same page?
- FAQ 718 How can one tell when an animation has finished running?
- FAQ 726 How can I disable a graphic button on page before the page is fully loaded and enable the button once the entire page has loaded?
- FAQ 730 How can I swap the image in an image form element?
- FAQ 737 How can you retrieve efficiently an images position in the document.images array?
- FAQ 754 How can I create a functions that cycle foward and backward through an array of images?
- FAQ 763 How can I force an image to be downloaded but not displayed in the browser window?
- FAQ 764 How can you force a download of an image with a form button?
- FAQ 813 How can I use "onMouseOver" on a link to change a specified image?
- FAQ 837 How can I make an image appear in a specific location using onMouseOver, and not replace the image the mouse is over?
- FAQ 862 How can I prevent images from loading until the page has finished loading?
- FAQ 892 How can I force the browser to load an newer version of the same named image from the server?
- FAQ 893 How can I replace one animated image with another, after the first animation has completed?
- FAQ 900 Is it possible to have each option of a select in a form perform an image swap?
- FAQ 912 How can I force the reload an image from the server after the image has been displayed, but only once?
- FAQ 923 How can I run a CGI script by clicking on an image and mapping the cgi script's return value into a javascript variable, all this without loading a new html page?
- FAQ 928 How do you detect if the user has disabled images on their browser?
- FAQ 952 How can I swap images using onMouseOver?
- FAQ 955 Can I manipulate images a pixel at a time?
- FAQ 981 Is there any way to test the presence of an image before attempting to display the image?
- FAQ 1015 How can I swap one of many images using onMouseOver and onMouseOut?
- FAQ 1026 How can I display one image if the browser supports image swapping and other if it doesn't?
- FAQ 1028 How can I remove the dotted line around a hot spot on an image map, when the hot spot is clicked?
- FAQ 1043 How can I check that an image exists in another frame?
- FAQ 1113 How do you keep a mouse over image on when that page is loaded in another frame?
- FAQ 1119 Can I use an image in place of a button to submit a form? If so, how can I validate which image was selected?
- FAQ 1124 Is there a way of ensuring that specific image files are loaded first?
- FAQ 1134 How can I swap one image to the same highlighted image over many different links?
- FAQ 1155 How can I swap an image onMouse Over to show an animated gif that loops once?
- FAQ 1171 Is there a way for an image on one window to become visible when a link is clicked on a different window?
- FAQ 1225 How can I start and stop the animation of an animated gif?
- FAQ 1229 How can I write image rollovers without using the NAME attribute (HTML 4.0 validators do not like the NAME attribute within an IMG tag)?
- FAQ 1251 How do I hide 'hotspots' on image maps so they can be found only by clicking, on both Netscape and Explorer?
- FAQ 1280 How can I display a "please wait" message whilst loading multiple images in the background, and then when they have all, loaded display them all at once?
- FAQ 1285 How can I display 50 images one after another, with an eight second delay between the display of one image and the next?
- FAQ 1326 How can I display a download image when a form is submitted?
- FAQ 1327 How do I make an image blink on and off a specified number of times when a certain function executes?
- FAQ 1337 How can the 'usemap' property of the image object be dynamically assigned?
- FAQ 1348 How can I swap images of different sizes?
- FAQ 1351 How can I make an image flip or rotate by clicking it?
- FAQ 1357 Why is there a delay in swapping images that I have already preloaded?
- FAQ 1405 Is there a Netscape Navigator alternative for Internet Explorer's 'complete' property?
- FAQ 1460 How can I change an image to another only pointing to it without clicking the image directly?
- FAQ 1469 How can I display a specific .gif or text message depending on the selected option of my dropdown list box in my form?
- FAQ 1471 Is it possible for a JavaScript rollover to switch a static image to a GIF-89 animation? I've tried using the regular rollover code, pointing to a GIF-89 as the graphic to load onMouseOver, but I get only the final frame of the animation.
- FAQ 1477 How do I make certain images in a page change one after another, and when then the mouse is moved the original image is shown and the code no longer executes?
- FAQ 1498 How do you get rid of annoying "dynamic outlines" in Internet Explorer?
- FAQ 1510 How can I make the width of an image the same as the width of the visitor's window?
- FAQ 1529 How do I display an image based on the options selected from 3 different menus on the same page?
- FAQ 1537 Can I open a popup window with one image in it if one link is clicked, but another image if a different link is clicked?
- FAQ 1585 Is there a way to control the order in which images load?
- FAQ 1609 Can you use an imagemap with onClick?
- FAQ 1620 What is the smallest amount of code necessary for image swaping?
- FAQ 1628 How can I preload an animated image, but ensure that it animates once the page has completely loaded?
- FAQ 1645 How can I make an image blink on and off a specified number of times?
- FAQ 1650 How can I make an animation whereby each individual image, when clicked, links to a different url?
- FAQ 1657 Is it possible to auto-refresh an image every X seconds?
- FAQ 1687 How do you make a generic function to change the image at on mouse out and on mouse over events which can be accessed from anywhere in the document just by specifiying the names of the images to change?
- FAQ 1690 How can I swap a larger image for a smaller image and vice versa?
- FAQ 1715 How can I concatenate two values from two select lists to the URL associated with a clicked image map?
- FAQ 1735 How can an imagemap capture the focus when the mouse moves over a hotspot?
- FAQ 1751 Why do animated GIFs stop animating when I click on a link, and how can I avoid this?
- FAQ 1778 Re: How do I check if an image file exists?
- FAQ 1782 Q475 Is it possible to pop-up a window the same size as the image it contains?
- FAQ 1801 How can I resize an image
©2018 Martin Webb