[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!

7.0

Mouse over text popup problem

Asked by flexxtx in Cascading Style Sheets (CSS), JavaScript, Hypertext Markup Language (HTML)

Tags: java, css, or php, various

 I have a page with an existing cascading drop down menu. I added a table that has lists a person's name. I'm trying to make a thumbnail pic pop up & disappear when you mouse over their names. I cant get the cascading and the pop-ups to work together. It's one or the other. Any suggestions? Text is attached below. Thanks...


** code moved to snippet below to make it and this question easier to read and use - b0lsc0tt [ZAPE] **
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:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
<!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=utf-8" />
<title>Our class leadership</title>
<style type="text/css">
<!--
.style14 {font-family: Arial, Helvetica, sans-serif; font-size: 18px; font-weight: bold; }
.style15 {font-size: 16px;
	font-family: Arial, Helvetica, sans-serif;
}
.style16 {font-family: Arial, Helvetica, sans-serif}
.style17 {font-size: 14px}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
body {
	background-image: url(bground.jpg);
	background-repeat: repeat-x;
}
-->
</style>
<script type="text/javascript">
/***********************************************
* Image w/ description tooltip- By Dynamic Web Coding (www.dyn-web.com)
* Copyright 2002-2007 by Sharon Paine
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
 
/* IMPORTANT: Put script after tooltip div or 
	 put tooltip div just before </BODY>. */
 
var dom = (document.getElementById) ? true : false;
var ns5 = (!document.all && dom || window.opera) ? true: false;
var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false;
var ie4 = (document.all && !dom) ? true : false;
var nodyn = (!ns5 && !ie4 && !ie5 && !dom) ? true : false;
 
var origWidth, origHeight;
 
// avoid error of passing event object in older browsers
if (nodyn) { event = "nope" }
 
///////////////////////  CUSTOMIZE HERE   ////////////////////
// settings for tooltip 
// Do you want tip to move when mouse moves over link?
var tipFollowMouse= true;	
// Be sure to set tipWidth wide enough for widest image
var tipWidth= 100;
var offX= 20;	// how far from mouse to show tip
var offY= 12; 
var tipFontFamily= "Verdana, arial, helvetica, sans-serif";
var tipFontSize= "8pt";
// set default text color and background color for tooltip here
// individual tooltips can have their own (set in messages arrays)
// but don't have to
var tipFontColor= "#000000";
var tipBgColor= "#e0e1e1"; 
var tipBorderColor= "#000080";
var tipBorderWidth= 0;
var tipBorderStyle= "ridge";
var tipPadding= 0;
 
// tooltip content goes here (image, description, optional bgColor, optional textcolor)
var messages = new Array();
// multi-dimensional arrays containing: 
// image and text for tooltip
// optional: bgColor and color to be sent to tooltip
messages[0] = new Array('Leadership Pics/BDPiercePic.jpg', 'BD Pierce');
messages[1] = new Array('Leadership Pics/BobMaeyamaPic.jpg', 'Bob Maeyama');
messages[2] = new Array('Leadership Pics/JeffRickertPic.jpg', 'Jeff Rickert');
messages[3] = new Array('Leadership Pics/SusanMaeyamaPic.jpg', 'Susan Maeyama');
messages[4] = new Array('Leadership Pics/WendyRickert.jpg', 'Wendy Rickert');
messages[5] = new Array('Leadership Pics/TheBakers.jpg', 'Doug and Linda Baker');
messages[6] = new Array('Leadership Pics/TheThomases.jpg', 'Gary and Lisa Thomas');
 
////////////////////  END OF CUSTOMIZATION AREA  ///////////////////
 
// preload images that are to appear in tooltip
// from arrays above
if (document.images) {
	var theImgs = new Array();
	for (var i=0; i<messages.length; i++) {
  	theImgs[i] = new Image();
		theImgs[i].src = messages[i][0];
  }
}
 
// to layout image and text, 2-row table, image centered in top cell
// these go in var tip in doTooltip function
// startStr goes before image, midStr goes between image and text
var startStr = '<table width="' + tipWidth + '"><tr><td align="center" width="100%"><img src="';
var midStr = '" border="0"></td></tr><tr><td valign="top">';
var endStr = '</td></tr></table>';
 
////////////////////////////////////////////////////////////
//  initTip	- initialization for tooltip.
//		Global variables for tooltip. 
//		Set styles
//		Set up mousemove capture if tipFollowMouse set true.
////////////////////////////////////////////////////////////
var tooltip, tipcss;
function initTip() {
	if (nodyn) return;
	tooltip = (ie4)? document.all['tipDiv']: (ie5||ns5)? document.getElementById('tipDiv'): null;
	tipcss = tooltip.style;
	if (ie4||ie5||ns5) {	// ns4 would lose all this on rewrites
		tipcss.width = tipWidth+"px";
		tipcss.fontFamily = tipFontFamily;
		tipcss.fontSize = tipFontSize;
		tipcss.color = tipFontColor;
		tipcss.backgroundColor = tipBgColor;
		tipcss.borderColor = tipBorderColor;
		tipcss.borderWidth = tipBorderWidth+"px";
		tipcss.padding = tipPadding+"px";
		tipcss.borderStyle = tipBorderStyle;
	}
	if (tooltip&&tipFollowMouse) {
		document.onmousemove = trackMouse;
	}
}
 
window.onload = initTip;
 
/////////////////////////////////////////////////
//  doTooltip function
//			Assembles content for tooltip and writes 
//			it to tipDiv
/////////////////////////////////////////////////
var t1,t2;	// for setTimeouts
var tipOn = false;	// check if over tooltip link
function doTooltip(evt,num) {
	if (!tooltip) return;
	if (t1) clearTimeout(t1);	if (t2) clearTimeout(t2);
	tipOn = true;
	// set colors if included in messages array
	if (messages[num][2])	var curBgColor = messages[num][2];
	else curBgColor = tipBgColor;
	if (messages[num][3])	var curFontColor = messages[num][3];
	else curFontColor = tipFontColor;
	if (ie4||ie5||ns5) {
		var tip = startStr + messages[num][0] + midStr + '<span style="font-family:' + tipFontFamily + '; font-size:' + tipFontSize + '; color:' + curFontColor + ';">' + messages[num][1] + '</span>' + endStr;
		tipcss.backgroundColor = curBgColor;
	 	tooltip.innerHTML = tip;
	}
	if (!tipFollowMouse) positionTip(evt);
	else t1=setTimeout("tipcss.visibility='visible'",100);
}
 
var mouseX, mouseY;
function trackMouse(evt) {
	standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body //create reference to common "body" across doctypes
	mouseX = (ns5)? evt.pageX: window.event.clientX + standardbody.scrollLeft;
	mouseY = (ns5)? evt.pageY: window.event.clientY + standardbody.scrollTop;
	if (tipOn) positionTip(evt);
}
 
/////////////////////////////////////////////////////////////
//  positionTip function
//		If tipFollowMouse set false, so trackMouse function
//		not being used, get position of mouseover event.
//		Calculations use mouseover event position, 
//		offset amounts and tooltip width to position
//		tooltip within window.
/////////////////////////////////////////////////////////////
function positionTip(evt) {
	if (!tipFollowMouse) {
		standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body
		mouseX = (ns5)? evt.pageX: window.event.clientX + standardbody.scrollLeft;
		mouseY = (ns5)? evt.pageY: window.event.clientY + standardbody.scrollTop;
	}
	// tooltip width and height
	var tpWd = (ie4||ie5)? tooltip.clientWidth: tooltip.offsetWidth;
	var tpHt = (ie4||ie5)? tooltip.clientHeight: tooltip.offsetHeight;
	// document area in view (subtract scrollbar width for ns)
	var winWd = (ns5)? window.innerWidth-20+window.pageXOffset: standardbody.clientWidth+standardbody.scrollLeft;
	var winHt = (ns5)? window.innerHeight-20+window.pageYOffset: standardbody.clientHeight+standardbody.scrollTop;
	// check mouse position against tip and window dimensions
	// and position the tooltip 
	if ((mouseX+offX+tpWd)>winWd) 
		tipcss.left = mouseX-(tpWd+offX)+"px";
	else tipcss.left = mouseX+offX+"px";
	if ((mouseY+offY+tpHt)>winHt) 
		tipcss.top = winHt-(tpHt+offY)+"px";
	else tipcss.top = mouseY+offY+"px";
	if (!tipFollowMouse) t1=setTimeout("tipcss.visibility='visible'",100);
}
 
function hideTip() {
	if (!tooltip) return;
	t2=setTimeout("tipcss.visibility='hidden'",100);
	tipOn = false;
}
 
document.write('<div id="tipDiv" style="position:absolute; visibility:hidden; z-index:100"></div>')
 
function NN_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=NN_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];}}
}
</script>
</head>
 
<body><center>
  
    <table width="800" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td colspan="6"><img src="FWHeader.jpg" alt="FaithWorksClass" width="800" height="117" /></td>
      </tr>
      <tr>
        <td width="95"><a href="index.html"><img src="images/index_r2_c1.gif" alt="Our home page" width="95" height="37" border="0" /></a></td>
        <td width="151"><a href="statement.html"><img src="images/index_r2_c2.gif" alt="About our class" width="151" height="37" border="0" /></a></td>
        <td width="136"><img src="images/index_r2_c3.gif" alt="Our membership" width="136" height="37" border="0" /></td>
        <td width="153"><a href="audiofiles.html"><img src="images/index_r2_c4.gif" alt="download our files" width="153" height="37" border="0" /></a></td>
        <td width="133"><a href="LunchNFrisco.html"><img src="images/index_r2_c5.gif" alt="Activities" width="133" height="37" border="0" /></a></td>
        <td width="132"><a href="mailto:info@faithworksnorthcampus.org"><img src="images/index_r2_c6.gif" alt="How to reach us" width="132" height="37" border="0" /></a></td>
      </tr>
      <tr bgcolor="#e0e1e1">
        <td colspan="6"><blockquote>
          <p class="style14">Class Servants</p>
          <p><span class="style15"><strong><em>1 Corinthians 12:4-6  </em></strong><em><br />
            <sup>4</sup> Now there are varieties of gifts,  but the same Spirit; <sup>5</sup> and there  are varieties of service, but the same Lord; <sup>6</sup> and  there are varieties of activities, but it is the same God who empowers them all  in everyone.</em></span></p>
          </blockquote>
          <table width="735" border="0" align="center" cellpadding="5" cellspacing="0">
            <tr>
              <td width="216" valign="top"><span class="style16 style17"><strong>Teacher</strong><br />
                  <a href="#" onmouseover="doTooltip(event,0)" onmouseout="hideTip()">BD Pierce</a></span></td>
              <td width="242" valign="top"><span class="style16 style17"><strong>Directors</strong><br />
                    <a href="#" onmouseover="doTooltip(event,2)" onmouseout="hideTip()">Jeff</a> and <a href="#" onmouseover="doTooltip(event,4)" onmouseout="hideTip()">Wendy Rickert</a><br />
                    <a href="#" onmouseover="doTooltip(event,1)" onmouseout="hideTip()">Bob</a> and <a href="#" onmouseover="doTooltip(event,3)" onmouseout="hideTip()">Susan Maeyama</a> </span></td>
              <td width="247" valign="top"><span class="style16 style17"><strong>Shephards Class</strong><br />
              <a href="#" onmouseover="doTooltip(event,5)" onmouseout="hideTip()">Doug and Linda Baker</a>/Ronda Sloan<br />
              <a href="#" onmouseover="doTooltip(event,6)" onmouseout="hideTip()">Gary and Lisa Thomas</a>/Terry Maley<br />
              </span></td>
            </tr>
            <tr>
              <td valign="top"><span class="style16 style17"><strong>Prayer  Coordinator</strong><br />
                Ronda Sloan<br />
              Rhonda Farish</span></td>
              <td valign="top"><span class="style16 style17"><strong>Womens  Ministry Coordinator</strong><br />
                Becky Owens<br />
              Ronda Sloan</span></td>
              <td valign="top"><span class="style16 style17"><strong>Mens  Ministry Coordinator</strong><br />
                Michael Brady</span></td>
            </tr>
            <tr>
              <td valign="top"><span class="style16 style17"><strong>Missions  Coordinator</strong><br />
                Valerie Crowley</span></td>
              <td valign="top"><span class="style16 style17"><strong>Greeting  &amp; Shuttle Coordinator</strong><br />
                James Mangold</span></td>
              <td valign="top"><span class="style16 style17"><strong>Social  Coordinators</strong><br />
                Jan Brady<br />
              Rhonda Farish<br />
              Becky Owens<br />
              Bill &amp; Cheryl  Carpenter</span></td>
            </tr>
            <tr>
              <td valign="top"><span class="style16 style17"><strong>Class  Directory</strong><br />
                Ronda Sloan </span></td>
              <td valign="top"><span class="style16 style17"><strong>Refreshments  Coordinator</strong><br />
                Bill and Cheryl Carpenter</span></td>
              <td valign="top"><span class="style16 style17"><strong>Meal  Delivery</strong><br />
                Rhonda Farish<br />
              Becky Owens<br />
              Cheryl Carpenter<br />
              Wendy Rickert<br />
              Susan  Maeyama</span></td>
            </tr>
            <tr>
              <td valign="top">&nbsp;</td>
            <td valign="top"><span class="style16 style17"><strong>Childrens  Ministry</strong><br />
                Rory &amp; Shari Dahl</span></td>
              <td valign="top"><span class="style16 style17"><strong>Volunteer/Logistics  Coordinator</strong><br />
                Mike Sweeney</span></td>
            </tr>
          </table>        </td>
      </tr>
      <tr>
        <td colspan="6"><div align="center"><img src="FaithWorksFooter.jpg" width="800" height="38" /></div>          <div align="center"></div>          <div align="center"></div></td>
      </tr>
    </table>
</center>
 
<p>&nbsp;</p>
</body>
</html>
[+][-]12/17/08 08:52 AM, ID: 23195209Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12/17/08 09:15 AM, ID: 23195488Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12/17/08 09:47 AM, ID: 23195887Accepted 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

Zones: Cascading Style Sheets (CSS), JavaScript, Hypertext Markup Language (HTML)
Tags: java, css, or php, various
Sign Up Now!
Solution Provided By: hibridassassin
Participating Experts: 1
Solution Grade: B
 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_2_20070628