School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 307,135 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,015 people online right now. Registration is fast and FREE... Join Now!




having an annoying issue with my web page

 

having an annoying issue with my web page, Java script not launching on 2 pages

Torroes_prime

27 Oct, 2009 - 07:52 AM
Post #1

D.I.C Head
**

Joined: 7 Jun, 2009
Posts: 71


My Contributions
Okay, I think I've got this in the right forum if not someone hit me upside the head and I'll repost in the JavaScript forum.

Here's my problem. I have a java script file to cycle through background images. I've got it on all the pages for this web site. And it runs just fine on all of the pages... except 2.

If you look on the home page: http://www.student.nvcc.edu/home/mcividane...23/default.html you can see how the script is supposed to work.

The two pages it doesn't work on are: http://www.student.nvcc.edu/home/mcividane...3/the_site.html
and
http://www.student.nvcc.edu/home/mcividane...3/template.html

it's the same javascript, linked to the pages. so... yeah. What gives?

User is offlineProfile CardPM
+Quote Post


thehat

RE: Having An Annoying Issue With My Web Page

27 Oct, 2009 - 08:22 AM
Post #2

awake ? web();
Group Icon

Joined: 28 Feb, 2008
Posts: 940



Thanked: 99 times
Dream Kudos: 200
My Contributions
On the two pages that you've specified you're overwriting the body.onLoad function in your script file with another one directly on the body tag that preloads a load of images.

The one on the body tag looks like a dreamweaver creation for preloading rollover states, so you'd best not move it around. That means you'll need to change the way your script works. Maybe make it a function that you can call from the body's onLoad instead, or don't have it in a function at all, and put the script tag that imports it after your body tag so it can work straight away.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 02:49PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month