Web Analytics Made Easy -
StatCounter How to make 2 scripts work on 1 page - CodingForum

Announcement

Collapse
No announcement yet.

How to make 2 scripts work on 1 page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to make 2 scripts work on 1 page

    Is it possible to make a fog.class and bookflip.class work on the same page? If I remove the coding for the fog class, the bookflip works and vice versa, but both will not work together on the same page.

  • #2
    Your post seems to be collecting dust. I'd say it's probably due to the lack of any code showing the problem, it might be related to the fact that when you talk about files named .class though you bring up images of Java which isn't the same animal as Javascript (the names are similar only to confuse the innocent).

    A link to the web page with the problem would help a lot.
    Check out the Forum Search. It's the short path to getting great results from this forum.

    Comment


    • #3
      Thank you so much for responding.. The url is http://www.gregsode.com/riverrun.html But right now I've taken the fog class file off because the bookflip class file wouldn't work with it. It'll let me use one, but not both together. The very top image is a fog class file which I found at moon and back graphics here: http://www.moonandbackgraphics.com/foggyday.html
      Beth

      Comment


      • #4
        I'm sorry to say that it appears that the problem is in the relative inefficiency of those two scripts. The fog one especially drives the CPU utilization to 100% which may cause the other script to appear to be frozen.

        In this case too, these are both Java applets and not Javascript which is the basis for posting here but as I said before, the names are similar to confuse the innocent so don't let that bother you.

        Given what I see, you're best off just not using the fog since it's code isn't that good. The other code adds a lot more to your page than the fog does.
        Check out the Forum Search. It's the short path to getting great results from this forum.

        Comment


        • #5
          Thank you so much for taking time to look at the codings for me. I really appreciate it....
          Beth

          Comment

          Working...
          X