What Is My IP Address? - IP Address Lookup, Bandwidth Speed Test, IP Info, plus more

Go Back   What Is My IP Forum > IP and Network Questions > General Questions

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 06-01-2009, 04:12 AM
pastorjack pastorjack is offline
Junior Member
 
Join Date: Jun 2009
Posts: 1
Default Java Script genius needed

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..
Reply With Quote
  #2  
Old 06-01-2009, 04:57 AM
clanmills's Avatar
clanmills clanmills is offline
Super Moderator
 
Join Date: Jul 2008
Location: San Jose, CA
Posts: 108
Send a message via MSN to clanmills Send a message via Skype™ to clanmills
Default

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 suspect the onload script sets up some animation (changing photos every second) on elements called "slideImg".

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 suggest you contact the person who created index.htm and I'm sure they'll be able to fix youth.htm in no time at all.

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.
Reply With Quote
  #3  
Old 06-01-2009, 05:04 AM
clanmills's Avatar
clanmills clanmills is offline
Super Moderator
 
Join Date: Jul 2008
Location: San Jose, CA
Posts: 108
Send a message via MSN to clanmills Send a message via Skype™ to clanmills
Default

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>
Reply With Quote
Reply

Bookmarks

Tags
java, script

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 10:28 PM.


What Is My IP - IP Command Lines - What is an IP Address - Speed Test - IP Address FAQ

Need IP address location detection service? Get it from IP2Location.com now.

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright - WhatIsMyIP.com