HTML - Onload Images Not Working
I have the page setup to preload images for the navigation menu, and when you hover over the buttons the image at the top (toplogo) changes to show the button information.
However the images at the top do not seem to be preloading as when you hover over a button the image at the top takes time to load before appearing. The navagation buttons seem to preload correctly... What have i done wrong? page :http://ryv.org.uk/test09 Similar Tutorialsi use the following code to preload my hover images i coded in css... HTML Code: <body onload="MM_preloadImages('images/png/fertz.png','images/png/hardscapez.png','images/png/irrigationz.png','images/png/servicesz.png','images/png/lawnz.png','images/png/pondsz.png','images/png/snowz.png','images/png/upkeepz.png','images/png/homez.png','images/png/servicesz.png','images/png/gift_shopz.png','images/png/floristz.png','images/png/galleryz.png','images/png/contactz.png','images/png/eventsz.png')"> the website....http://www.briangelhaus.com/spencer/services.html and the images still dont preload...is there a better way? I am designing a website for an author and generally I only do ColdFusion developing so I am a bit weak nowadays on HTML and CSS, but I was trying to figure out a way to resize a background image without editing. Basically, I am making a table and I want the image to take up 100% of the background of said table. Is there some CSS style code that I could put in to do that? Thank you very much for your help. It is much appreciated. I have a website that has an image that loads at the top of the page, and then text about the image that loads below it. My problem is I placed an anchor by the text, underneath the image, so when a certain link is clicked it skips the image and goes right to the text where the anchor is....but when I click on a link to refer to that anchor, it loads to where the anchor is before the image size (width and height) loads. Then, the image loads, and expands th epage, and the image is on screen instead of the text I anchored to. Is there any easy way to make it so the anchor waits for the image to load before going to where it is....or so the image preloads the size and expands to that width and height before bothering to load the entire image so the anchor will be positioned right....or anything along those lines? To clarify, it looks like this: <p><img src="image location" /></p> Text: <a name="reviews" id="reviews"></a> and then the link : <a href="site.php?cnt=<? echo($cnt); ?>&pg=<? echo($pg - 5); ?>#theanchor"> Prev 5 </a> and the anchor position loads before the image loads, so instead of skipping the picture and displaying the text, it just displays only the bottom 90% of the image or so. Any ideas would be welcomed , --Tony Could you please help me out? I guess I won't be able to solve this on my own: The following does work perfectly in IE8: <HTML> <HEAD> <TITLE></TITLE> </HEAD> <BODY> <TABLE STYLE="FILTER:FLIPH"> <TR><TD><IMG SRC="test.jpg"></TD></TR> </TABLE> </BODY> </HTML> The image is indeed flipped horizontally and everything's fine. But opening the .htm-file containing the above in IE9, the image is not flipped. Why is this? Thank you so much for reading. Hello to all, I am new to the forum and I hope some of you experts can give me some advice. I use firefox and my website looks exactly how i want to in it, however I just noticed that in IE it seems as though my little spacer images arent working properly, is there any quick/easy fix for this? Im not exactly a "pro" so the easiest work around would be awesome, however i do have to get this fixed one way or another so any help is greatly appreciated. Here is the link for the site: http://infinityreinforcing.com/photos.html the projects line up perfectly in FF, but in IE it is a big ol mess, thanks in advance. Hi, I have a page with 3 frames... aframe, bframe, cframe what I want to do is, when the html (frame1.html) loads in aframe, I want (frame2.html) to be loaded in bframe automatically. I believe this can be done with "onload" but i'm not sure how to set it up and I believe onload has to work with scome script? any help appreciated. Ok, here's the problem. I have 2 onload functions. One is directly inside the body tag but the other is in a seperate script. Obviously I'm posting because I have a problem, they don't work together. I know that there's a workaround using javascript but I couldn't seem to implement it. Can someone specifically tell me what the script is, where to put it, etc (as specified as possible) Hi guys, Im trying to get the following section of code to validate. However I have no idea what is wrong with it.. Code: <a href="#" target="_blank" onclick="openLiveHelp(); return false"><img src="http://www.mydomain.co.uk/livehelp/include/status.php" id="LiveHelpStatus" name="LiveHelpStatus" border="0" alt="Live Help" onload="statusImagesLiveHelp[statusImagesLiveHelp.length] = this;"/></a> This code is entered in the body of the page. The doctype is.. Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> The error I am getting with the validator is.. Quote: there is no attribute "onload". ...s" border="0" alt="Live Help" onload="statusImagesLiveHelp[statusImagesLiveHe You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead). This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information. How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash. Any help with this would be appreciated. Many thanks. Dan Hey all. I'm having issues trying to run 2 functions at the same time in onload. <BODY OnLoad="function({ReadRSS('http://rss.news.yahoo.com/rss/science','rssBodyTemplate','rssTitleTemplate'),JSFX_StartEffects()"> I can't seem to get these to work no matter what I do. if I do them individually as in get rid of the other one and just OnLoad one of them, it works great. What's the proper way to run both of these in OnLoad? Hello Experts, I would like to open a new web page (say google.com) on browser onload event. E.g : If I have 2 pages a.html and b.html. If I click on run button on a.html, I am getting redirected to b.html.( b.html is a blank html page.) Now once b.html would be opened, google.com should be called and get loaded. Is it possible? Regards, Jonathan Hello! I'm Brad. Obviously I'm new here. I have a quick/advanced question to ask. I have lightview set up on my website. On the main page I want the site to automatically launch a lightview window. Conceptually, would it be possible to have a <head> <script> that activates a <a href...>? or is there a better way to launch a lightview window automatically with all the settings? Thank you! Is it possible to use the onload command outside of <body> tags, or is there some other way to have the same effect? As a part of a project I am doing I want to display images on a website. The width/height of the image displayed on the screen should depend on the orientation of the image. The idea is to make the longer side 150px, so if width is greater than height then width=150px, else if height > width, then height=150px. Is there a simple way of doing this? My solution to this is to store the image height and width in a database (I already need to create a database for images), and am using onLoad attribute to change the width/height based on a boolean parameter which tell the orientation of the image, a test version of the code is here (wait for the image to load) http://www.confusionart.com/public/test.html However, as you can notice, first the complete image is loaded and then resized to the desired size. i.e. there is a unnecessary switching of sizes on screen. Is there any way to avoid this. Right here it goes, not sure if it is at all possible but any input would be much appreciated. Here's the deal. Developing an easy straight forward online store integrated with EBSWorldpay . Not looking for any fancy stuff. What i would like to do is put a flash url link that would direct a user to a html file that contains a hidden form and it would submit it on load redirecting a user straight to EBSwordpay checkout. Simple HTML Redirect with submited form. check the link here it has the source code of the form that is required.: http://www.rbsworldpay.com/support/b...=examples&c=IE Trying to use Example 0.1 ( So instead of having a separate page with a "BUY" for the form to be submitted, I would like to get the form posted straight away which would in turn load the payment site. Would create a seperate html file for each item and have redirects on the main website linking to those onLoad submit forms. Tried to explain as best as possible. Let me know if it's not clear enough. I want to try a couple of different approaches to putting medieval scroll-like images behind a menu and the body text of a site I am working on. I vaguely remember that there are separate commands to put images above, behind, and below a list. (Thinks something like scroll_top.gif, scroll_body.gif, scroll_bottom.gif). Can anyone help with that? Also, isn't there a way to do the same think with a div, eg: - image1 at the top - image 2 (repeating) as the body - image 3 at the bottom Thanks much as always! Joshua Hello everyone, I am currently working on a website that will have a simple gradient border (something like an "outer glow" from Photoshop) along the border of a nested table in the page. The final result will be a simple box with data centered in the middle of the page... However, my question is more related to programming in general. I have two options: 1. Have a linear gradient (1 px by 5 px) which is rotated in the 4 cardinal directions, and then tiled all around the page. Also there will be corners (5 px by 5 px) on, you guessed it, the corners. 2. Creating tables, for instance: //"invisible" is a font class with size="1px" <table class="invisible" cellpadding="0" cellspacing="0" width="710"> <tr height="100"> <td width="1" bgcolor="#000000"></td> <td width="1" bgcolor="#333333"></td> <td width="1" bgcolor="#666666"></td> <td width="1" bgcolor="#999999"></td> <td width="1" bgcolor="#CCCCCC"></td> <td width="1" bgcolor="#FFFFFF"></td> <td width="700" bgcolor="#FFFFFF"> <!-- TemplateBeginEditable name="body" --> SITE CONTENT HERE <!-- TemplateEndEditable --> </td> <td width="1" bgcolor="#FFFFFF"></td> <td width="1" bgcolor="#CCCCCC"></td> <td width="1" bgcolor="#999999"></td> <td width="1" bgcolor="#666666"></td> <td width="1" bgcolor="#333333"></td> <td width="1" bgcolor="#000000"></td> </tr> </table> which recreate the same action as tiling the gradient along the outside edges using the simple HTML colors. Which, from the standpoint of REDUCING actual work done by the server, would be the more effective (not my time, which clearly option 2 takes more of). I know very little about image compression, and how the whole process works for calling up images from a server. Any explanation is appreciated. Thanks again, BlitzKampf Hi, I currently have a bit of a problem, you can see for yourself at http://el-nath.net/forum Notice that all the images are around 3-4 pixels off their place that they're supposed to be at. Can someone please view the source code and give me a solution? Simple question. I have 2 images I'm displaying but they are displaying side by side. I want them to be one on top and one on the bottom. Here is my code: <p> <img src="images/GoldCard_Page_1.jpg" Align="left"> </p> <p> <img src="images/GoldCard_Page_2.jpg" Align="left"> </p> Can't seem to find the discrepancy within the code. All the image files are in the same location. As stated in the title, some images appear and some do not. http://webpages.charter.net/projects...vertmedia.html Thanks for you help, -=Devil Duck=- |