![]() |
|
![]() | ||
|
Subject:
Make 3 Javascripts run on the same page
Category: Computers > Internet Asked by: bnc_user-ga List Price: $30.00 |
Posted:
28 Apr 2003 13:54 PDT
Expires: 30 Apr 2003 16:46 PDT Question ID: 196695 |
My page is using javascript for navigation (generated by a program). At the same time I want to use a "Text Messaging"-Javascript and a Slide-Show javascript on the same page. Unfortunately neither the text-messaging nor the slide-show script seems to run with the menu-navigation script. I checked whether the most common errors like windows or frame.onload is causing this. But it is not. Next I wrote to the developer of the program that generates the menu-navigation script, but they couldnt find the reasons why these scripts would not run on the same page. So maybe someone here can find a solution. You can download here (www.point-x.com/Menu.zip) a zip file which contains a menu.htm file. This file contains the navigation script (you need the two enclosed .js files to run it properly). Then there are two subfolders each one with a script to include. The pictures for the slideshow are in the root folder. My question is answered if you can make all three scripts run on the same page. Also please tell me what alterations you have made to the code, so I can incorporate the changes to my page. You can alter the Text-Messaging-Script, the slide-show script as well as the two (one IE, one NS) external .js (for the navigation) files but if possible not the menu-navigation-script in the menu.htm file. If there is no other way then altering that you can do so. Regards m. | |
| |
| |
| |
|
![]() | ||
|
There is no answer at this time. |
![]() | ||
|
Subject:
Re: Make 3 Javascripts run on the same page
From: j_philipp-ga on 29 Apr 2003 00:39 PDT |
I tried to help but couldn't access the ZIP file at the moment. Maybe a temporary problem. |
Subject:
Re: Make 3 Javascripts run on the same page
From: cwilper-ga on 29 Apr 2003 15:17 PDT |
Well after playing with this for a while, I just signed up for an account only to realize I can't be a "Researcher". So I guess I can't get paid for this, but I partially solved the problem so I thought I'd help out. With the messaging script, you know how it does onLoad in the body? Well, for some reason onLoad isn't working. So instead of putting it there, insert a script element way down at the bottom of the existing html (after the div you insert). And in the script element, call doText(message). I did this and it works fine. The same basic idea can probably be used on the other script. The slideshow one. See how, near the end, it does a window.onLoad=startit? Instead of that, just put the script near the bottom of the page (below where you want to insert the div for the slideshow), and just call startit instead of window.onLoad=startit. Haven't verified that will work but you can probably figure it out from there. My guess is that the menu nav script is somehow causing any onLoad calls to be ignored.. Cheers, Chris |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |