Use jquery UI to modify the Bubble Floating Box of the title attribute

Source: Internet
Author: User

By using the tooltip () function of jquery UI, the floating prompt box is no longer the same. Click here to see the effect first: http://www.keleyi.com/keleyi/phtml/tooltip/

CompleteCode: Save it to an HTML file.

 <!  Doctype html  >  <  Html  >  <  Head  >  <  Meta  HTTP-equiv  = "Content-Type" Content  = "Text/html; charsets = UTF-8"   />  <  Title  > Use jquery UI to modify the Bubble Floating Box (tooltip) of the title Attribute-ke leyi </  Title  >  <  Script  Type  = "Text/JavaScript"  SRC  = "Http://www.keleyi.com/keleyi/pmedia/jquery-1.9.1.min.js" > </  Script  >  <  Link  REL  = "Stylesheet"  Href  = "Http://www.keleyi.com/keleyi/pmedia/jquery/ui/1.10.2/themes/sunny/jquery-ui.min.css"   />  <  Script  Type  = "Text/JavaScript"  SRC = "Http://www.keleyi.com/keleyi/pmedia/jquery/ui/jquery-ui-1.10.2.custom.min.js"  > </  Script  >  <  Script  Type  = "Text/JavaScript"  >  $ (  Function  () {$ (Document). tooltip ();});  </  Script >  <  Style  Type  = "Text/CSS"  >  Label  {  Display  :  Inline-block  ;  }  </ Style  >  </  Head  >  <  Body  >  <  H2  > Different floating prompt boxes </  H2  >  <  P  > If the title attribute is added to an element, a floating prompt box is displayed next to the element when the cursor moves over the element. </  P  >  <  P  > In general, the floating prompt box cannot be modified by style, but if you use <  A  Href  = "Http://www.keleyi.com/menu/jquery"  Title  = "Jquery special effects, materials, and other learning content. "  Target  = "_ Blank"  > Jquery</  A  > UI, You can see different effects, the method is added: $ (document). tooltip (); </  P  > <  P  > Move the cursor over the input box (or hyperlink) to see the effect of the floating prompt box. </  P  >  <  P  > <  Label  For = "Age"  > Email: </  Label  > <  Input  ID  = "Age"  Title  = "It can be used to retrieve the password. It is recommended that you enter it. "   /> </  P  >  <  P  > <  A Href  = "Http://www.keleyi.com"  Target  = "_ Blank"  Title  = "Ke leyi Homepage"  > Ke leyi </  A  > Style 1 <  A  Href  = "Http://www.keleyi.com/keleyi/phtml/tooltip/tooltip2.htm"  Title = "Style 2: Redmond"  > Style 2 </  A  >   <  A  Href  = "Http://www.keleyi.com/a/bjac/a6d651710217f7a0.htm"  Target  = "_ Blank"  Title  = "View Original"  > Original </  A > </  P  >  </  Body  >  </  Html  > 

 

This article Reprinted from Ke leyi: http://www.keleyi.com/a/bjac/a6d651710217f7a0.htm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.