Home User CP Browse Members Calendar Register Today!  
Get New posts Faq / Help?
   

Not A Member Yet? Register today and become part of the community.

Go Back   Profuse Host Forum > World Wide Web > Programming / Scripting / Coding Forum

Programming / Scripting / Coding Forum Discussion HTML, C++, PHP, CGI, JSP, perl etc

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-15-2007, 05:29 AM
shantanu
Status: Offline
Member
 
Join Date: Mar 2007
Posts: 35
shantanu is on a distinguished road
Default Ho w do i run two scripts at the same time in body onload

I have two scripts that need to be run with body on load any know how to do that?????
Reply With Quote

  #2 (permalink)  
Old 04-11-2007, 09:19 PM
freelikehell
Status: Offline
Senior Member
 
Join Date: Jan 2007
Posts: 100
freelikehell can only hope to improve
Default

if they are linked to two diffrent *.js files, and the script part is mentioned in th head, then i dont think there should be a problem, ... but the catch here is, ur not allowed to use the body onload function ...
Quote:
Simply add the two scripts in the usual way, but don't put the onLoad... information in the <BODY> tag. Instead, put the following in the <HEAD> section:

<script language="JavaScript">
function LoadFuncs() {
FUNCTION 1
FUNCTION 2}
</script>

FUNCTION 1 is what is inside the quotation marks in the <BODY onLoad="FUNCTION 1"> command. The same goes for FUNCTION 2. You can run a third or more functions in the same way; simply add them beneath the first two before the closing } symbol.

Finally, put onLoad="LoadFuncs()" inside the <BODY> tag.
source :
www.jsr.communitech.net
..hope this helps...
__________________
IndiansPage.Info
welcome to the new world
Free Website Directory & Advertising
Reply With Quote

Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
i have problem with my body temprature? Moh'D Health Section 0 07-01-2008 10:50 AM
I think you should add scripts rock Suggestions 10 02-19-2007 09:42 AM
Show Scrollbar only in table body flickall HTML/CSS/DHTML 0 02-17-2007 12:14 AM
CMS Scripts jase Suggestions 2 10-24-2006 10:31 PM
300 Scripts liammpease Programming / Scripting / Coding Forum 2 01-31-2006 08:16 AM


All times are GMT -7. The time now is 05:49 AM.

Skin Design By vBSkinworks



Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Sponsored by Web Hosting


Profuse Solutions LLC

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80