Portal Engine
Version 3.x > Portal Engine > Inline control with mouser over... View modes: 
User avatar
Member
Member
SocuteRaptor-gmail - 11/7/2008 3:46:31 AM
   
Inline control with mouser over...
Hi...
I want to create an inline control, that acts like a label, but when I move my mouse pointer over it, a panel contains some text will appear at the pointer position, and when the pointer moves away, it'll disappear.
I don't even know how to do, and where to start... Can anyone help me?
Thanks in advance...

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 11/10/2008 5:33:07 AM
   
RE:Inline control with mouser over...
Hi,

you could use a HTML and CSS solution which changes the cursor.

1.
The first solution is desirable for context help. It adds a question mark to the cursor and a text from title property of html tag. The sample code could looks like this:
CSS:
span.help {
background:#fff;
color:#666;
cursor:help;
font-style:bold;
border-bottom:1px dashed #666;
}

HTML:
<span class="help" title="whatever I want to add help to">Word that I want to add help to</span>

2.
More universal could be using a custom URL in cursor properties. Please see the “smile” example and its source code here: http://www.quackit.com/html/codes/html_cursor_code.cfm

Best regards,
Helena Grulichova