Hi,
Im trying to use rad tooltips to show html articles (that I store on a database) on multiple pages of a CMS.
Basically giving my client the ability to show articles everywhere just by using a tag with the respective ID.
So on the code I'd like to replace the "tooltip calling tag" with the actual tooltip code.
I managed to do the following so far:
The HTML code under the title tag would be gathered from the DB.
Is there any better way to populate tooltips with the HTML content without using the title attribute? because I also need to look at this code from the SEO point-of-view..
Thank you in advance.
Im trying to use rad tooltips to show html articles (that I store on a database) on multiple pages of a CMS.
Basically giving my client the ability to show articles everywhere just by using a tag with the respective ID.
So on the code I'd like to replace the "tooltip calling tag" with the actual tooltip code.
I managed to do the following so far:
<form runat="server"> |
<telerik:RadScriptManager ID="ScriptManager1" runat="server" |
EnableTheming="True" OutputCompression="AutoDetect"> |
</telerik:RadScriptManager> |
<script type="text/javascript"> |
function showToolTip(element) { |
var tooltipManager = $find("<%= RadToolTipManager1.ClientID %>"); |
if (!tooltipManager) return; |
var tooltip = tooltipManager.getToolTipByElement(element); |
if (!tooltip) { |
tooltip = tooltipManager.createToolTip(element); |
} |
element.onmouseover = null; |
tooltip.show(); |
} |
</script> |
<telerik:RadToolTipManager ID="RadToolTipManager1" |
Width="" |
HideEvent="ManualClose" |
RelativeTo="Element" |
Position="BottomCenter" |
runat="server" |
Autotooltipify="false" |
OffsetY="0" Sticky="True" Font-Bold="False" Title="Knowledge Database Helper"> |
</telerik:RadToolTipManager> |
<img title="<div><i>testing html</i></div><br/>" alt="test" src ="../template/images/knowledge.gif" ID="rad<%=id %>" onmouseover='showToolTip(this);' /> |
</form> |
The HTML code under the title tag would be gathered from the DB.
Is there any better way to populate tooltips with the HTML content without using the title attribute? because I also need to look at this code from the SEO point-of-view..
Thank you in advance.