469,324 Members | 1,452 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,324 developers. It's quick & easy.

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 1204
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

Post your reply

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

Similar topics

3 posts views Thread by Da Costa Gomez | last post: by
4 posts views Thread by David Virgil Hobbs | last post: by
9 posts views Thread by nntp | last post: by
2 posts views Thread by geotso | last post: by
4 posts views Thread by jerryyang_la1 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.