473,324 Members | 2,248 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Image Toogle Javascript Help for IE6

1
I can not seem to fugure out why my image toogle js will not work on IE6, It works in Firefox, IE7 and all mac browsers. Any chance anybody might be able to lend a hand?

Example Code in php page:

<script language="JavaScript">

Expand|Select|Wrap|Line Numbers
  1.     var i = 0 
  2.     var minLimit = 0
  3.     var maxLimit = 4 
  4.     var imgFolder = "copperhill/all/"
  5.     var nextPG ="RBconstruction.php"
  6.  
</script>


External js script code:


Expand|Select|Wrap|Line Numbers
  1. function previmg(){
  2.     if (i > minLimit) {i--
  3.         document.galleryImg.src = imgFolder + i + ".jpg";
  4.     //    document.nextbtn.src = "images/next1.gif";
  5.         }
  6.  
  7.  
  8.     else
  9.         { 
  10.         open(prevPG, '_self');
  11.         document.prevbtn.src = "images/prevGray.gif";
  12.          } 
  13. }
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20. function nextimg(){
  21.     if (i < maxLimit) {i++ 
  22.         document.galleryImg.src = imgFolder + i + ".jpg";
  23.         document.prevbtn.src = "images/prev1.gif";    
  24.          }
  25.  
  26.     else 
  27.         { 
  28.         open(nextPG, '_self');
  29.     //    document.nextbtn.src = "images/nextGray.gif";
  30.         }
  31. }
Nov 3 '06 #1
1 1380
acoder
16,027 Expert Mod 8TB
Can't see any reason at a quick glance except perhaps the semi-colon is required after i++ and i--.
May 27 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Olly | last post by:
I've found a basic script, however I also need to add alt and title attributes as well, how would I go about doing this? Here's the script I found: Thanks <script language="JavaScript"> <!--...
2
by: Cynthia | last post by:
I'm looking for javascript code that when I mouse over a menu item will display a picture elsewhere on the page. I know it exists, but the ones I've found so far just swap out the menu item in...
14
by: George Hester | last post by:
http://hesterloli.dnsalias.com/test/javascript_image.htm The image is the 100x100 px block. If we right-click in it and try to save the image we cannot. Is it possible to say set a mime-type so...
7
by: ABC | last post by:
I am a total newbie to javascript. I have only done Frontpage. I am trying to do a page of image show----I only managed to find a javascript to create pop up windows for the chosen image. Almost...
17
by: santel_helvis | last post by:
Hi All, Could anyone tell me how to rotate the image in javascript. Which concepts I should concentrate to rotate the image
6
by: abdullah1983 | last post by:
Hi Guys, I need some clarification regarding the problem with safari browser. Please find my code below. I'm setting the image src, mouseover and mouseout using javascript. The mouseover and...
4
by: Mark S. | last post by:
Hello, On a high volume page we have the following JavaScript: img = new Image() img.src = 'http://myserver.com/count.aspx?x=1'; and it works fine, but now we've added: img.onload =...
6
by: Seth Illgard | last post by:
Hi, Im writting a custom CMS and everything looks great, except when I see the results in IE. What im trying to do is: *Have an image in a layer (or relative positioned, or just margined). The...
1
by: Ruben | last post by:
It seems to me that the togglebutton toggled() function has a but. Documentation says that when called it will change the state of the object. I can't varify this behavior. It calls the toogle...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.