Web Layout
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsWeb DesignWeb Layout

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #16  
Old April 27th, 2005, 05:54 AM
fatmarley fatmarley is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 60 fatmarley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 43 m 38 sec
Reputation Power: 4
So....

Code:
  
document.onload = function {
	google.js();
	referrer.js();
	others.js();
} 


Like this?

Thanks for the reply!

Reply With Quote
  #17  
Old April 27th, 2005, 06:22 AM
Phoenix's Avatar
Phoenix Phoenix is offline
Web-Standards Evangelist
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Posts: 1,522 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 48 m 4 sec
Reputation Power: 8
No...

What I posted was if you want to call a load of functions and procedures in a row.

If you want to import external *.js files, then use:

Code:
<script src="path/to/file.js" type="text/javascript"></script>


You can't use "/>" because IE/Trident doesn't support it

Note that you place:

Code:
<script src="googleads.js" type="text/javascript"></script>
and the other google ads JS in the <body> element, NOT in the <head> because the script inserts some code using Document.Write()

Reply With Quote
  #18  
Old April 27th, 2005, 08:41 AM
fatmarley fatmarley is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 60 fatmarley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 43 m 38 sec
Reputation Power: 4
Unhappy

Sorry to be so confusing.

I have already made all my javascript external, but now I want to make it so my javascript don't load until the body has loaded.

So can you help me with this please?

Thanks for your patience.

Reply With Quote
Reply

Viewing: ASP Free ForumsWeb DesignWeb Layout > New design - Need a little help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT