HTML - 2 Functions In <body Onload>
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? 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? Is it possible to use the onload command outside of <body> tags, or is there some other way to have the same effect? 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 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. 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! 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 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 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'm new at html and dont understand why you need to use <body> what is the difference between <h1> Title </h1> <p> paragraph </p> and <h1> title </h1> <body <p> paragraph </p> </body> Hey, This has been bugging me for some time and I'm rubbish when it comes to borders and margins etc. Could someone tell me how modify the margin (presuming it's a margin) around the edge of the page? If you look at the attached image, you can see that the table isn't touching the edge of the page, and It does the same with images, text etc. Thanks ok i was wondering whats wrong with my background could some1 tell me if thiers something wrong with my code, the problem i have is the background appearing i do everything it says to but it still dosent work <html xmlns="http.thewaywardgamer.com> <head> <title>the way of the gamer</title> </head><body> <html> <body background="image.jpg"> <p align="center"><font size="50"><font color="#cccc80"><b>WELCOME TO GAMERWORLD</b> </font></p> <p> </body> <SCRIPT TYPE="text/javascript"> <!-- function dropdown(mySel) { var myWin, myVal; myVal = mySel.options[mySel.selectedIndex].value; if(myVal) { if(mySel.form.target)myWin = parent[mySel.form.target]; else myWin = window; if (! myWin) return true; myWin.location = myVal; } return false; } //--> </SCRIPT> <FORM ACTION="../cgi-bin/redirect.pl" METHOD=POST onSubmit="return dropdown(this.gourl)"> <SELECT NAME="gourl"> <OPTION VALUE="">Choose a Destination... <OPTION VALUE="http://www.purezc.com" >purezc <OPTION VALUE="http://www.youtube.com" >youtube <OPTION VALUE="http://www.miniclips.com" >miniclips <option VALUE="file:///C:/Documents%20and%20Settings/Owner/Desktop/games.html">bunker </SELECT> <INPUT TYPE=SUBMIT VALUE="Go"> </FORM> <p> <p align="left"><font size="4"><font color="#660066">hello all and welcome to the world of gamers.where nintendo is our god.</font></P> <MULTICOL COLS=3> <UL> <lI><A HREF="links.html">Click Here for My Favorite Links</A> <li><A HREF="games.html">Click Here for Flash Game bunker</a> </UL> </MULTICOL> <br> <br> <br> <br> <body> Our address by FAN mail:<P> <ADDRESS> p.o box 183,perkinsvile vermont </ADDRESS> </body> <body> <!-- Begin Google Search --> <input type="hidden" name="cx" value="partner-pub-6155056320102818mfj3qxh2mm" /> <input type="hidden" name="cof" value="FORID:10" /> <input type="hidden" name="ie" value="ISO-8859-1" /> <input type="text" name="q" size="25" /> <input type="submit" name="sa" value="google search" /> <!--img src="/acustom/google.gif" border="0" alt="Google" style="vertical-align:top;" /--> <!-- END Google Search --> </html Hi, I noticed that if you insert meta tags into html somewhere in the body tags, the browser still recognizes them. I know its bad practice, but do search engines frown on putting meta tags in the body INSTEAD of the head? Cheers, Doug I use HTML 4.01 transitional. This code came as part of a templet for a page on one of my websites. The page works OK with these zero margins, but not without them. <body bgcolor="#f5fbfd" text="#42718c" LEFTMARGIN="0" TOPMARGIN="0" RIGHTMARGIN="0" BOTTOMMARGIN="0" onLoad="" link="#0033ff" vlink="#660099" alink="#ff0000"> I suspect it's depricated. Is there a better way to do this? Is the onload="" even needed since it appears empty? The table on this page views okay in safari but in firefox there is a huge gap between the nav and the text.. http://naruphotography.net/AO/shedule.html any advice would be much appreciated Hello guys, I have just created very simple website with an older Flash 7. Then I had embeded that .swf file on simple html document. (I did input code for black body background): <body bgcolor="000000"> It looks OK on Safari, but for some reason, background color turns white when viewed on FireFox. I dont have Internet Explorer, so I don't know how it looks there. Any idea what I do wrong? Here is the link to that website: http://www.icebergfilms.com Thank you for any advise. Hello everyone first time poster here and this is my first website as well so bear with me. I've been designing my pages in photoshop and then adding content using div tags. It has been working well as long as i put in appropriate box height and widths in a css file. on my last page, which contains my php contact form, I'm having trouble setting the background color to match the rest and also it's not aligning correctly. Internet explorer shows the form on the left while firefox shows in centered. Any help or suggestions would be widely appreciated... heck I'll even take some criticism AZPCPLUS.COM Hi every one ♥ Code: <a href="#info" rel="facebox">View the 'info' div in the Facebox</a> on above line, when user click on "View the 'info' div in the Facebox" then "info" div call with rel = "facebox" i want to call "info" div on page load with ref = "facebox" Code: <body onload="window.location.href='http://www.yoursitehere.com'"> i knw how to use href in body tag.. but i didn't know how to use href with ref in body tag please help me i will very thankful to you |