<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="jqueryanimatedpop.WebForm1" %> <!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 runat="server"> <title></title> <style type="text/css"> div.item { width:100px; height:50px; background-color: maroon; text-align:center; padding-top:25px; } div#item_4 { position: absolute; top: 500px; left: 500px; } </style> <style type="text/css"> div.jquery-gdakram-tooltip { width: 340px; color: white; font-size: 12px; position: absolute; z-index: 10000; top: 0px; left: 0px; display: none; } div.jquery-gdakram-tooltip div.content { -moz-border-radius: 1em; -webkit-border-radius: 1em; background-color: #671329; width: 280px; min-height: 200px; float: left; padding: 10px; } div.jquery-gdakram-tooltip div.content h1 { font-size: 16px; border-bottom: 1px solid #C4C4C4; padding-bottom: 5px; } div.jquery-gdakram-tooltip div.up_arrow { background : url('images/up_arrow.png') 60px 0px no-repeat; width: 100%; height: 20px; } div.jquery-gdakram-tooltip div.down_arrow { background : url('images/down_arrow.png') 60px 0px no-repeat; width: 100%; height: 20px; } /*div.jquery-gdakram-tooltip div.left_arrow { height: 100%; }*/ /*div.jquery-gdakram-tooltip div.left_arrow { float:left; background : url('images/left_arrow.png') 0px 0px no-repeat; width: 20px; height: 20px; position: relative; top: 40px; left: 0px; }*/ </style> <script type="text/javascript" src="Scripts/jquery.min.js"></script> <script type="text/javascript" src="Scripts/jquery.tooltip.js"></script> <script type="text/javascript"> $j = jQuery.noConflict(); $j(document).ready(function () { $j("div.item").tooltip(); }); </script> </head> <body> <form id="form1" runat="server"> <table> <tr> <td> <asp:Button ID="btn_click" Text="test" OnClick="hell_Click" runat="server" /> </td> </tr> <tr> <td> <div id="item_4" class="item">Item 4</div> <div class="tooltip_description" style="display:none" title="jQueryScript.Net"> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. </div> </td> </tr> </table> </form> </body> </html>
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace jqueryanimatedpop { public partial class WebForm1 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void hell_Click(object sender, EventArgs e) { Response.Write("hello"); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)