473,395 Members | 1,905 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

how can show more then one onload scripts

idsanjeev
241 100+
hi frainds
i wants to use more then one onload scrits but only one is working at time
Feb 26 '08 #1
9 1411
hsriat
1,654 Expert 1GB
hi frainds
i wants to use more then one onload scrits but only one is working at time
Show me how you are doing that.
Feb 26 '08 #2
idsanjeev
241 100+
Hi hsriat
just copy two code from code help and paste it
file attached
Feb 26 '08 #3
gits
5,390 Expert Mod 4TB
just write a function that calls both of the scripts (and use ONE onload :) ):

Expand|Select|Wrap|Line Numbers
  1. var init = function() {
  2.     fade();
  3.     Go();
  4. };
  5.  
  6. window.onload = init;
  7.  
kind regards
Feb 26 '08 #4
idsanjeev
241 100+
Hi gits
thanks
but little confussion where can use this code
i should write both code in one java scripts tag or i can write it individual tag
Feb 26 '08 #5
gits
5,390 Expert Mod 4TB
that doesn't matter ... but it is good practice to just use ONE script-area in a page and best practice to use external sources ...

kind regards
Feb 26 '08 #6
idsanjeev
241 100+
Hi gits
I am using it but not working please revise it.
what do you mean by external sources
Feb 26 '08 #7
hsriat
1,654 Expert 1GB
Hi gits
what do you mean by external sources
Script written in a separate .js file and called in the page, like
Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript" src="js111.js"></script>
is an external source.
Feb 26 '08 #8
idsanjeev
241 100+
Hi hsriat
thanks i Know that but i don't know thats is called external source
thnanks again
Feb 26 '08 #9
idsanjeev
241 100+
Hi friends
I am using both
external and saperate tag but not working one is attached here please revise it
thanks
Feb 26 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Da Costa Gomez | last post by:
Hi all, I've been eluded the last couple of *days* on the onload mystery within the frame and function context. Problem is as follows: - frameset with two frames. One called scripts and the...
1
by: TPG | last post by:
I'd like a Javascript function I have written to be invoked whenever *any* new document is been loaded into a particular frame (i.e I don't control the incoming document's BODY tag). Under...
4
by: David Virgil Hobbs | last post by:
My web host inserts banner ads into my html pages. The javascript in these banner ads interferes with the onload triggered javascript functions in my pages. Whether I trigger my javascript...
9
by: nntp | last post by:
Is there anyway to do something exactly like onload, but without the word onload? I am trying to write inline js without onload, so I don't know how to trigger/start the script.
2
by: geotso | last post by:
Hi I'm looking for a javascript with the following operation: if history.length <=2 show "layer1" and hide "layer2" else hide "layer1' and show "layer2"
4
by: jerryyang_la1 | last post by:
I've found this script that allows be to hide/show form elements.. <script language="JavaScript"><!-- var toggle = true; function show(object) { if (document.layers && document.layers)...
2
by: John J. Lee | last post by:
I was cheered to see that this guy claims to have solved the problem with onload only firing very late: http://dean.edwards.name/weblog/2005/09/busted/ However, "ash" comments on that...
1
by: asilverpeach | last post by:
Hey Guys! Found some great scripts here on this topic but have to make to changes to the code that I can't seem to figure out. First, In the following code clicking on the headers shows the...
0
acoder
by: acoder | last post by:
Problem onload and onunload events do not fire when going back, forward or refreshing the page Browser Opera Example Any code using onload or onunload, e.g. window.onload = init; where...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.