Tags: IP Address Lookup, Information, and Location, Test Your Internet Connection Speed
|
#1
|
|||
|
|||
|
Hi, I have a simple JS script on my site. Actually, I have two. The main page works fine. Someone did it for me.
www.payatasbaptistchurch.org The one I am having problems with is at: www.payatasbaptistchurch.org/youth.htm It's a slide image script. I copied it from the main page. I changed the js file as one is using gifs and one jpgs. Can you point out what I am missing? Thanks. Last edited by wimiadmin; 06-01-2009 at 11:22 AM.. |
|
#2
|
||||
|
||||
|
Well, I'm not a genius, however I'll try to help!
I assume you want youth.htm page to rotate the images in much the same way as index.htm. Of course, without reading your javascript code (and I can't be bothered at 00:55am in California), I'm really guessing. I see that index.hml has HTML code like this: Code:
<tr> <td class="swapped"> <img name="slideImg" src="./photos/1.gif" width="240" height="180" border="0" alt="Image 1 of The Payatas Quezon City Baptist Church and Ministries"> </td> I see similar code on youth.htm - so you're very close. However there must be a significant difference. Safari says on youth.htm "Reference Error: can't find variable switchImage" and that's fatal. I can't quickly see how that was defined on index.htm and missing on youth.htm. I can see however that you've included a script on index.htm that is missing on youth.htm - maybe this is the fix! Code:
<script type="text/javascript" src="http://edge.quantserve.com/quant.js"></script> I hope that helps. If you're still stuck in 18 hours, I'll take another look when I get home from work on Monday evening. |
|
#3
|
||||
|
||||
|
Hi Pastor Jack:
You have swap.js2 on youth.htm (and swap.js on index.htm) - and I think that's the bug. However I also encourage you to reference quant.js <script type="text/javascript" src="http://edge.quantserve.com/quant.js"></script> |
![]() |
| Bookmarks |
| Tags |
| java, script |
| Thread Tools | |
| Display Modes | |
|
|