Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Javascript only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
Javascript
how can show more then one onload scripts
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
idsanjeev
New Member
Join Date:
Oct 2007
Posts:
241
#1
how can show more then one onload scripts
Feb 26 '08, 08:27 AM
hi frainds
i wants to use more then one onload scrits but only one is working at time
hsriat
Recognized Expert
Top Contributor
Join Date:
Jan 2008
Posts:
1653
#2
Feb 26 '08, 08:38 AM
Originally posted by
idsanjeev
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.
Comment
Post
Cancel
idsanjeev
New Member
Join Date:
Oct 2007
Posts:
241
#3
Feb 26 '08, 08:42 AM
Hi hsriat
just copy two code from code help and paste it
file attached
Comment
Post
Cancel
gits
Recognized Expert
Moderator
Expert
Join Date:
May 2007
Posts:
5390
#4
Feb 26 '08, 08:52 AM
just write a function that calls both of the scripts (and use ONE onload :) ):
[CODE=javascript]var init = function() {
fade();
Go();
};
window.onload = init;
[/CODE]
kind regards
Comment
Post
Cancel
idsanjeev
New Member
Join Date:
Oct 2007
Posts:
241
#5
Feb 26 '08, 09:16 AM
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
Comment
Post
Cancel
gits
Recognized Expert
Moderator
Expert
Join Date:
May 2007
Posts:
5390
#6
Feb 26 '08, 09:22 AM
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
Comment
Post
Cancel
idsanjeev
New Member
Join Date:
Oct 2007
Posts:
241
#7
Feb 26 '08, 09:26 AM
Hi gits
I am using it but not working please revise it.
what do you mean by external sources
Comment
Post
Cancel
hsriat
Recognized Expert
Top Contributor
Join Date:
Jan 2008
Posts:
1653
#8
Feb 26 '08, 09:34 AM
Originally posted by
idsanjeev
Hi gits
what do you mean by external sources
Script written in a separate .js file and called in the page, like
[code=javascript]<script type="text/javascript" src="js111.js"> </script>[/code]is an external source.
Comment
Post
Cancel
idsanjeev
New Member
Join Date:
Oct 2007
Posts:
241
#9
Feb 26 '08, 09:43 AM
Hi hsriat
thanks i Know that but i don't know thats is called external source
thnanks again
Comment
Post
Cancel
idsanjeev
New Member
Join Date:
Oct 2007
Posts:
241
#10
Feb 26 '08, 09:49 AM
Hi friends
I am using both
external and saperate tag but not working one is attached here please revise it
thanks
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment