HTML - Onload Command Out Of <body> Tags
Is it possible to use the onload command outside of <body> tags, or is there some other way to have the same effect?
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? 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? For some reason, on my homepage (http://www.projectdisobey.com/disobeyclothing/) an extra '</div> <!-- content #end -->' is being created in the page source, AFTER the closing 'body' and 'html' tags. There is no mention of '</div> <!-- content #end -->' in my 'footer.php' file, so why does this show up in the page source? Please see the attachment. If anybody could point me in the right direction as to why this might be occurring, and how I might fix it, I would be eternally grateful! Thanks! i'm looking for a cheap way out of making collapse/expand code. i've learned a lot of 'ghetto' techniques n thought mayb i can use something similar to the html tricks i've learned in the past. the theory i have is.. i use the title of the collapse/expand text as a link to the text below it to open and close by using the navigating tags: Code: <a name="content">opening/closing text here</a> and the title above the content: Code: <a href="#content">Title</a> to open the area of text. now my idea of a shortcut around the whole css/html/javacript combo is to make the text below it use a Code: <font size=0>content</font> at default and have the href title link change the font size to the default 9pt but I don't know if that's even possible. Is it possible with the Code: <div> tags? and if so, using that, would i still b able to make a link like that? Is it possible to trigger the action of a form with a submit button that's outside the form tags? If so, how should this example be rescripted to make the input tag work outside the form tags? [/code] <html> <body> <form name="input" action="html_form_action.asp" method="get"> First name: <input type="text" name="FirstName" value="Mickey" /><br /> Last name: <input type="text" name="LastName" value="Mouse" /><br /> <input type="submit" value="Submit" /> </form> </body> </html> [/code] Hi. I am begginer in HTML. I need a HTML code, which converts all capital letters in text into small leters. Help me. First off I'm a total newb as far as websites go.I don't have any training whatsoever. I'm building my first website click.balloonmaster.com. My problem is using the mailto command. I have tried making a form using it so that visitors of my site can send me an email using a form with text fields and a submit button. It works properly, but it opens up my mailing program when I test it, so I'm sure it will do the same for my visitors. My question is "Is there another command/tag/whatever that can make it so the text entered in the field, upon submission, will go to my email without trying to open a mailing program"? Hi, I shall be much obliged if you tell me how do i use 2 name attributes in single <input> command. Cause i made a register form that will register user on both site & forums, So i need to put them. Thanks in advance : ) I use this command on one of my pages to enable the text to 'float' over the background: <style type="text/css"> body { background-image:url("pinkflower.gif"); background-attachment:fixed} </style> And I would like to use it on another page. But this other page has lines of code like this: <body style="background-image: url(paper.gif);"> <table style="text-align: left; width: 905px; height: 803px;" border="1" cellpadding="2" cellspacing="2"> <tbody> and so on..... a whole swag of things inside the 'body' tags. So I guess I can't just paste that original thing into there (though I should try it shouldn't I? Hang on............ Woops... it worked fine just pasting it in there... right after the <body style.... line. But I'll leave the question out here, because it's not very tidy and wouldn't be right to have the 'background image' in there twice... So I'll change my question to become: "What's the 'proper' way to do this?" regards, ab Hi, I'm pretty new to HTML coding. After googling for a long time, I am unsuccessful at finding the answer I am looking for. I want to create an intranet page for server administrators. Most of the admins run Windows on their own machines, but they do administer unix and linux boxes as well as Windows servers. For unix/linux boxes, we use putty as an ssh client, and this is where the html admin page comes into play. Rather than each user having their own profiles for each machine they are going to log into, I want to administer this centrally. Each client has a copy of putty.exe on their windows box, but I want to use a central repository for all the machines you can log onto on a web server. In other words, I want to specify in URL which client application, and which host to connect to. So far I have : file:///c|/temp/putty.exe What I want to do is this: putty.exe -l <loginname>@<hosttoconnectto> example : putty.exe -l admin@1.2.3.4 I have tried multiple times to add arguments, but can't get it working. file:///c|/temp/putty.exe -P 22 -l admin 1.2.3.4 For instance, I have tried to substitute whitespaces with %20, but with no luck... I can get this to run from a command line (substituting the / with \), and removing file, ie : c:\temp\putty.exe -P 22 -l admin 1.2.3.4 How do I pass arguments to the file URI? Please help.... Simon. 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, 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. 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 I am trying to do a Firefox add-on that should simplify web surfing. But I encountered a problem : There is a link that isn't keeping the same path by changing the URL (it changes a number at the end of the URL) so every time the program meets this link, it stops. The Macros of the software I am using looks like this (with a single link) : ex: VERSION BUILD=6060801 RECORDER=FX TAB T=1 URL GOTO=http://www.htmlforums.com/newthread.php?do=newthread&f=4 but let's suppose, next time I want to enter http://www.htmlforums.com/newthread....=newthread&f=4 the URL changes into http://www.htmlforums.com/newthread.php?do=newthread&f=19 My question is : How can I rewrite the code of the macros so that the software can auto detect the correct URL between many URLs ? Is there a possibility of entering URL GOTO : the range of the URL ? Thank you in advance ! 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 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! I am trying to figure out how the user can click ANYWHERE on the webpage, and it will execute the 'Show Desktop' command (like in the quicklaunch -- for windows XP). The webpage will be used as the desktop background. I want the user to be able to click on the desktop background, and all other windows will become minimized. An onclick function perhaps, or something that executes "Windows key + M"? Please help, this is for my job lol |