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

General Questions Any question that doesn't fit in another category...please ask it here.

Closed Thread
 
Thread Tools Display Modes
Old 06-01-2009, 03:12 AM   #1
pastorjack
Member
 
Join Date: Jun 2009
Posts: 1
pastorjack is on a distinguished road
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 10:22 AM.
pastorjack is offline  
Old 06-01-2009, 03:57 AM   #2
clanmills
Super Moderator
 
clanmills's Avatar
 
Join Date: Jul 2008
Location: San Jose, CA
Posts: 219
clanmills has a spectacular aura aboutclanmills has a spectacular aura aboutclanmills has a spectacular aura about
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.
clanmills is offline  
Old 06-01-2009, 04:04 AM   #3
clanmills
Super Moderator
 
clanmills's Avatar
 
Join Date: Jul 2008
Location: San Jose, CA
Posts: 219
clanmills has a spectacular aura aboutclanmills has a spectacular aura aboutclanmills has a spectacular aura about
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>
clanmills is offline  
Closed Thread

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:43 AM.


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®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright - WhatIsMyIP.com