This code tooltip.pop(this,'#my_tip',{position:2}) works well that the tooltip appears below the element.
However, tooltip.ajax(this,'url.....',{position:2}) does not pop the tooltip at the bottom, the tooltip always appears on the right of the element.
Does Ajax tooltip allow positioning?
I've just downloaded v2013.7.8, overriden the old tooltip.js and tooltip.css.
2 questions:
The Ajax tooltip positioning stil doesn't work. Old version always shows the ajax tooltip at the right of the element, new version always shows ajax tooltip at the bottom. The "position" attribute does not change the position. I will try to show you the code.
Old version background color is grey with black font. New version background color becomes black with white font which mess up the appearence of my tooltip contents. How to change the background and font color?
Sorry I don't have a testing server open to the external.
I tried to simplify the code like the following TEST.HTML, but still the problem exists. Tooltip.ajax "position" value does not change the tooltip position at all, the tooltip always pops out at the bottom of the element. Tooltip.pop works fine with the "position" attribute however. I am using IE 10 and Chrome.
TEST.HTML
<!DOCTYPE html>
<html>
<head>
<title>Stock Quote</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script src="tooltip.js" type="text/javascript"></script>
<link href="tooltip.css" rel="stylesheet" type="text/css" />
</head><body topmargin="0" leftmargin="0" bgcolor="#ffffff">
<form name="form1" id="form1" ACTION="StockQuote.asp" METHOD="POST">
<table width="500" border="1" cellpadding="0" cellspacing="1" align="center">
<div style="display:none;">
<div id="delivery_tip1">
Hello World!
</div>
</div>
<tr>
<td valign="top">
<b onMouseOver="tooltip.ajax(this,'test01.html',{position:3})">AJAX</b>
</td>
<td valign="top">
<b onMouseOver="tooltip.pop(this,'#delivery_tip1',{position:3})">POP</b>
</td>
</tr>
</table>
</form>
</body>
</html>
TEST01.HTML called by the AJAX
<!DOCTYPE html>
<html>
<head>
<title>TEST</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head><body topmargin="0" leftmargin="0" bgcolor="#ffffff">
<table width="500" border="1" cellpadding="0" cellspacing="1" align="center">
<tr>
<td valign="top">
HELLO WORLD FROM AJAX !
</td>
<tr>
</table>
</body>
</html>
If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;
If your question is related to the Javascript Tooltip, click:
Ask new question: Javascript TooltipOtherwise navigate to one of the following forum categories, and post your question there.
##