Is this efficient javascript code? Are the images preloading?
831556
2)  Yes, that is preloading the images.\n\nccover[x]=new Image; creates a new image object.\n\nwhen you assign the source, the image is loaded.  So, \ncout[n].src=""+n+".gif"; preloads the image.\n\nYou can be sure that it's preloading it if it works, since you are only creating assigning the source files to the variables  in the preload, and not in the function call.  If it wasn't preloading, the with this code, the rollover images would not work at all.\n\n1) First part of your question: Is it efficient code?  The answer would have to be no.\n\nIt's best to use CSS instead of rollover images, especially if it's a navigation that your creating.  XHTML standards call for navigation lists instead of a table of rollover images.  \n\nIf you are up for the challenge, i would recommend taking a look at the suckerfish drop down menu: http://www.htmldog.com/articles/suckerfish/example/  or this:\n\nFirst create a list of menu options and enclose it in a div\n\n<ul>\n  <li><a href="#">link 1</a></li>\n  <li><a href="#">link 2</a></li>\n  <li><a href="#">link 3</a></li>\n</ul>\n\nThen add styles to make it look like a navigation bar instead of a bulleted list.\n\nIn your stylesheet, add the following:\n\nul {\n  list-style-type: none;\n  width:100%;\n  margin:0;\n  padding:0;\n  background:#cccccc;\n  }\nul li {\n  display:block; float: left;\n  margin:0; padding:0;\n  }\n\nul sets styles for the list. The width of 100% stretches the bar across the whole width of the browser (or div it's in, if it's in  a container)\n\nul li applies styles to each list item. Setting it to display:inline and floating the ul to the left will make each list item line up in a horizontal row - exactly what we need for a menu bar.\n\nAdd styles to the links themselves by adding the following in your css:\n\n li a {\n  float:left;\n  margin:0;\n  background:#ccc;\n  color:#ffffff;\n  text-decoration:none;\n  border-right:1px solid #ffffff;\n  }\n li a:hover, li a:visited:hover {\n  color:#fff;\n  background:#6699cc;\n  }\n\nI've added padding to each link to make them more like buttons. Adding border-right:1px solid #ffffff gives each one a thin white line to the right hand side, emphasising that each one is a button.\n\nIf you want to have a background image instead of color, the code would be:\n\n li a {\n  float:left;\n  display: block;\n  background-image: url(image1.gif); background-repeat: no-repeat;\n  color:#000000;\n  text-decoration:none;\n  }\n\n  li a:hover, li a:visited:hover {\n  background-image: url(image2.gif); \n  color:#cccccc;\n  }
38953
check the paths of those images\nof course geocities cant show them if the paths are i.e like;\n<img src="file://D:/myweb/image01.jpg">\n\na correct link to the image in the code should look more like this: <img src="image01.jpg">\nif in a dir: <img src="mydirectory/image01.jpg">\n\nwhere the html files and the images including any directory containing any other directory should be uploaded aswell in order for the paths to workd accordingly.\n\ngood luck\n\n--\n\nthe layout buttons names may appear to be too long.\ntry giving them shorter and qualifying names.\n\nyourbutton names are:\nfeedback.htm_cmp_sky010_vbtn.gif\n\nbetter if you change them induvidually accourding to their titles, like so:\naboutme_but.gif\n\nalso mind CAPS if you use any to name the images of your button, the caps should than also be used in the code.
621254
remove <img src='11.jpg'> from the code
991681
I'm assuming you want to write code for a page, and are not just having viewing problems. HTML supports a meta tag with a http-equiv and a refresh attribute, but since you want to load only images, that can be done using php or asp. There is a simpler way using pure html; the best source for the code of course, is w3schools.com--the definitive guide for html code
175135
You've quoted out most of the layout instructions, and the path to your images is wrong. You have it as www.aphorus.zephyrhosting.net/index_files/image001.gif, but there is no such image there.\n\nI don't know what you used to make this mess, but the code on this page is a God-awful nightmare.
910087
OK I know this is going to sound really weird but here goes....\n\nI went to yahoo and searched pic's and tried to download a pic and got the same thing (I'm running the same as you and IE7... not sure what you are running)    I also just had the option of a bitmap form for saving.   \nI then went to Google pic's and tried there and got both options bitmap and JPEG.\nSo decided to go back to Yahoo and take another look... but when I went back all of a sudden both options were available.\nI tried it again with another pic at Yahoo - the first time only Bitmap option was available - but one I went out of the site - went to Google - then back again - both were available.  Really Strange to say the least.  Something is messed up somewhere.  Will look into it further and see if I can find out anything or maybe someone else knows something more.
847237
Try using a script which doesn't consume too much of memory. Try spliting the codes into multiple layers so that they run parallely. In most of the cases it deals with the problem.
413185
well u can give the code please???\n\nis JavaScript?
965684
nope... you can only do that in html... like put the link before picture...
853829
It would help, if you can upload a txt file with code rather than the img... so that I may copy, compile and try the code myself. Once I see how it is behaving may be I can find what the problem is.
456842
it needs java oriented scripting. u can find it in the following addersses.
739670
part of java scripting...\n\n..."javascript: PopupPic('URL')"><img alt="text" src="URL" onmouseover="return overlib('<img src=URL />', CAPTION, '', FGCOLOR, '#FFFFFF', WRAP, VAUTO);" onmouseout="return nd();" border="0" height="38" width="66"....\n\nhttp://anitra.net/htmlhelp/navigation.html#rollovers\nmouse over/mouse out script
1057199
Yes, it's recommended that you have two versions of each image, one that's a thumbnail size (generally around 30 - 50 pixels wide x however tall in correct aspect ratio), and one that's a larger size (anything from 300 - 600 pixels wide x however tall in correct aspect ratio)\n\nThis way, you can load a results type page that has multiple thumbnail sized  images (perhaps 20 - 40 images), and then upon clicking a thumbnail, it loads only that corresponding large image.  Each thumbnail should be smaller than 5-10k (kilobytes), and each full sized image should generally be less than 60k (kilobytes).\n\nWhen working with internet only images (vs. print) your dpi should always be 72.  Anything larger than that (such as 300 dpi) should be downgraded to 72 dpi.\n\nDPI is the total resolution of the image, and when I mentioned pixels that's the specific width and height on your screen.\n\nThe reason for two versions of each image (at two different sizes) is because when you're creating a catalog type results page and there's 20 items to be viewed, your page's weight (in kilobytes) should generally be approximately 100k.  20 thumbnail images at 5k/image = 100k.  Then when each thumbnail is clicked that's an additional 60k image that's loaded after the original page is loaded.  This is perfectly acceptable, and recommended.\n\nUsing Adobe Photoshop (the industry standard for graphics) you will be able to convert your high resolution images down to web sized images (if you're using Photoshop CS, there's an item in the file drop down menu labeled "save for web."  Choose that option and set your image compression at the highest (most compressed) setting that still allows your images to look distinguishable.  Also note, if your images have mostly solid colors you should choose the GIF compression format, and if the image is more like a photograph with many different colors choose the JPG compression format.
143216
Is there a reason you want your buttons to be java based?\n\nIf you just want image rollover effects its much better to just style normal html hyperlinks.\n\n<style type="text/css">\na{background: transparent url(image_off.gif)}\na:hover{background: transparent url(image_on.gif)}\n</style>\n\n<a href="/blurb.html">test</a>\n\nThe text you are using for your link would then be shown over the top of the background image you want to use.\n\nYou can of course go further with this and use individual images with text on the image and hide the html text but I dont understand why you want to use something like java for such a simple thing like buttons.
1011128
Please post the snippet of code that does not work. In general, you need to check an array's length before yo uaccess its elements - it's called defensive programming, and good programmers should employ it.
447639
HTML: Use hotspots for every clickable part of your image. \nProgramming: Use buttons with transparency.
104611
it is your setting in you browser. goto tools, and either options or prefances (depending on your browser) and find "display images" or something like that and make sure it is on! done