SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Thread: IE order how things load?
-
Sep 20, 2006, 17:33 #1
- Join Date
- Jan 2006
- Posts
- 130
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
IE order how things load?
Is there any way to make something load before something else?
Like lets say i want a javascript to run right in the start?
-
Sep 20, 2006, 19:40 #2
- Join Date
- Sep 2005
- Location
- Tanzania
- Posts
- 4,662
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
What do you mean at the start? Before what?
-
Sep 20, 2006, 20:38 #3
- Join Date
- Jan 2006
- Posts
- 130
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
like for example:
www.hackingsource.net
they have a vote box that loads before anything.
-
Sep 20, 2006, 21:03 #4
- Join Date
- Sep 2005
- Location
- Tanzania
- Posts
- 4,662
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
If you look at the source, you'll see they've used some horrible javascript to make that box appear. It simply spits out some HTML before any other HTML so that's what appears first. You can do the same thing without javascript. Just put what you want to appear first immediately after the <body> tag.
-
Sep 21, 2006, 04:23 #5
- Join Date
- Oct 2004
- Location
- NSW Australia
- Posts
- 3,564
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I don't believe that necessarily means it will appear first on the page though.
nadiaUnique CSS Templates by Nadia
Dreamweaver: Tutorials.Templates.CSS Designs
SitePoint Books |My Fireworks Tutorials 1 2
Follow me on Twitter | Community Team Advisor
Bookmarks