[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.3

javascript rotating image script rotates through images, then shows a missing image icon

Asked by EricBourland in JavaScript

Tags: javascript, Dreamweaver CS3

Hi. I'm having some trouble with a javascript. I have a javascript rotating image script that rotates through about eight images images, which is great. But then the script shows a missing image icon. Then it begins the rotation again.

I am wondering what, in the script, causes the missing image icon (the box with the red X through it) to appear. I've been staring at it for a long time and could use your help.

What am I missing?

The script is appended below.

The URL is: http://www.guardianhelp.org/

I am viewing the page in MSIE 7 and FF 3.

In MSIE 7, a missing image icon appears. In FF3, an empty space appears where the image should be.

I have confirmed that all needed images are in the correct directory, and referenced correctly in the script.

Thanks for any advice.

peace,

Eric
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Guardian Help: The Uxoricide Research Project
University of Virginia School of Nursing
Charlottesville, Virginia</title>
 
<meta http-equiv="developer" content="Eric Bourland, ebwebwork.com" />	
 
<META http-equiv="ROBOTS" CONTENT="NONE" />
 
<link rel="stylesheet" type="text/css" href="/uva.css" />
 
 
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
 
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
 
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
 
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
 
<script type="text/javascript">
<!--
 
// Comma separated list of images to rotate
var imgs = new Array('/images/apuva0.jpg','/images/apuva1.jpg','/images/apuva2.jpg','/images/apuva3.jpg','/images/apuva4.jpg','/images/apuva5.jpg','/images/apuva6.jpg','/images/apuva7.jpg');
// delay in milliseconds between image swaps 1000 = 1 second
var delay = 5000;
var counter = 0;
 
function preloadImgs(){
  for(var i=0;i<imgs.length;i++){
    MM_preloadImages(imgs[i]);
  }
}
 
function randomImages(){
  if(counter == (imgs.length)){
    counter = 0;
  }
  MM_swapImage('rotator', '', imgs[++counter]);
  setTimeout('randomImages()', delay);
}
 
preloadImgs();
window.onload=randomImages
//-->
</script>
 
 
 
</head>
 
<body onload="preloadImgs();randomImages();">
 
<!-- begin page -->
<div id="page">
 
<!-- header section - invisible spacer used for logo link -->
<div id="header">
 
 
<div id="logo">
<a href="/"><img src="/images/spacer.gif" width="300" height="100" /></a>
 
<!-- /logo -->
</div>
 
<!--search box -->
<div id="search">
 
 
 
<form action="http://www.google.com/cse" id="cse-search-box">
    <input type="hidden" name="cx" value="001382591411870128679:y4fzoklwmtk" />
    <input type="hidden" name="ie" value="UTF-8" />
    <input type="text" name="q" size="20" />
    <input type="submit" name="sa" value="Go" />
 
</form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script>
 
 
<div class="subsearch">
	
 
 <cfif SESSION.auth.isLoggedIn>
Welcome, <cfoutput>#session.auth.FirstName#</cfoutput> | <a href="/logout.cfm">Log Out</a>
 <cfelse>
     <a href="/LoginForm.cfm">Please Log In</a>
 </cfif>
	
	
	</div>
 
<!-- /search box -->
</div>
 
 
<!--end header section -->
</div>
 
<div class="clear"></div>
 
 
<div id="container">
 
<div id="nav">
<ul>
    <li><a href="/"><span>Home</span></a></li>
 
<CFIF session.auth.isLoggedIn and SESSION.Auth.UserRoleID LT 6>
    <li><a href="/stories/"><span>Client Stories</span></a></li>
    <li><a href="/client/"><span>Client Resources</span></a></li>
 
    <li><a href="http://forum.guardianhelp.org/"><span>Forum</span></a></li>
    <li><a href="/experts/"><span>Ask the Experts</span></a></li>
    
</CFIF>
<CFIF session.auth.isLoggedIn and SESSION.Auth.UserRoleID IS 1>
    <li><a href="/admin/"><span>Admin</span></a></li>
</CFIF> 
 
<li><a href="/contact.cfm"><span>Contact</span></a></li>
</ul>
</div>
 
<!--- content --->
<div id="content">
 
 
<!--- left content --->
 
<div id="content-left">
 
<div style="text-align:center; margin:20px 0;"><img src="/images/Nursing.sm.su.png" alt="UVA School of Nursing" class="border0" /></div>
 
<img src="/images/apuva0.jpg" id="rotator" />
	
	</div>
 
<!--- end left content --->
[+][-]02/06/09 12:49 PM, ID: 23574082Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: JavaScript
Tags: javascript, Dreamweaver CS3
Sign Up Now!
Solution Provided By: sunithnair
Participating Experts: 1
Solution Grade: A
 
 
Loading Advertisement...
20091118-EE-VQP-93 - Hierarchy / EE_QW_3_20080625