想要在下拉列表中添加工具提示 [英] want to add tooltip on dropdown

查看:62
本文介绍了想要在下拉列表中添加工具提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个主页面我有菜单用户控制和用户控制包含菜单和i框架,当我点击菜单然后我框架加载相应的页面,我有很多下拉列表我可以在该下拉列表中添加工具提示。用户控件是单独的文件LeftMenuUC.ascx,我已经拖入母版页。此用户控件包含i框架和链接,当点击链接然后我框架得到相应的页面。所以我已经通过javascript在文档就绪功能上附加了工具提示但是当我解雇服务器端选择索引更改功能时我的工具提示不起作用。





MasterPage-> MENU用户控制 - >我框架 - >下拉列表



我如何添加





MASTER PAGE



i have master page in this i have menu user control and user control contain menu and i frame when i click on menu then i frame load corresponded page onthis i have many dropdowns ho can i add tool tip on that dropdownlist. user control is separate file LeftMenuUC.ascx and i have dragged in to master page. this User Control contain i frame and links when click on links then i frame got the corresponding page . so i have attached tooltip by javascript on document ready function but when i fire server side select index change function my tooltip not work .


MasterPage->MENU user Control -> i frame -> dropdown list

How Can i add


MASTER PAGE

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage_MasterPage" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Src="../Lead Management System/UserControl/LeftMenuUC.ascx" TagName="LeftMenuUC"

    TagPrefix="uc3" %>
<%@ Register Src="../UserControl/MainMenu.ascx" TagName="MainMenu" TagPrefix="uc2" %>
<%@ Register Src="../UserControl/Loginstatus.ascx" TagName="Loginstatus" TagPrefix="uc1" %>
<!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 id="Head1"  runat="server">
    <title>Galaxy</title>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <link rel="Stylesheet" href="../JavaScript/date control/css/xc2_default.css" type="text/css" />

    <script language="javascript" src='<%= ResolveClientUrl ("~/Jquery/jquery-1.4.2.js") %>'

        type="text/javascript"></script>

    <script language="javascript" type="text/javascript">
        window.history.forward();
        function alertmsg() {
            var hdnval = document.getElementById("<%=hdnMsg.ClientID%>");
            if (hdnval != null) {
                if (hdnval.value != '') {
                    //alert(hdnval.value);
                    //hdnval.value=''
                    var a = hdnval.value.split('|');
                    for (var i = 0; i < a.length; i++) {

                        alert(a[i]);

                    }

                    hdnval.value = '';

                }

            }

        }

   

    </script>

    <script language="javascript" type="text/javascript">
 var sessionTimeout = 17; //length of time until logged out (minutes)
 var warningTime = 2; //length of time popup stays up for (minutes)
//popup opens sessionTimeout minus warningTime minutes after the page is opened
var thisTimer = null; //stop/start session timer
var thisWarningTimer = null; //stop/start warning timer
var SessionPop=null;

function startTimeoutTimer()
{  
//debugger
    clearTimeout(thisTimer);
    clearTimeout(thisWarningTimer);
    thisTimer = setTimeout("closeSession()", sessionTimeout * 60000);
    thisWarningTimer = setTimeout("popupAsk()", (sessionTimeout - warningTime) * 60000);
} 

function ResetTimeoutForOnlineTest()
{
    sessionTimeout=17;
    clearTimeout(thisTimer);
    clearTimeout(thisWarningTimer);
    thisTimer = setTimeout("closeSession()", sessionTimeout * 60000);
    thisWarningTimer = setTimeout("popupAsk()", (sessionTimeout - warningTime) * 60000);
} 
function startTimeoutTimerForOnlineTest()
{  
     sessionTimeout=40;
    clearTimeout(thisTimer);
    clearTimeout(thisWarningTimer);
    thisTimer = setTimeout("closeSession()", sessionTimeout * 60000);
    thisWarningTimer = setTimeout("popupAsk()", (sessionTimeout - warningTime) * 60000);
} 

function refreshSession()
{  //debugger
    var args="Galaxy";
    var context=new Object();
    context.CommandName="Refresh";
    <%=MasterGlobalReference%>
    //restart timers   
    SessionPop=null;
    clearTimeout(thisTimer);
    clearTimeout(thisWarningTimer);
    startTimeoutTimer();    
}
   function onError()
   {  

   }
    function ServerToClient(cycleArgs,context)
    {       

    }

 function ResetSessionTimer()
 {    
    //restart timers
   clearTimeout(thisTimer);
   clearTimeout(thisWarningTimer);
   startTimeoutTimer();  
 }
 
function closeSession()
{    
    SessionPop=null;
    //redirect to login page with logged out message         
    document.location.href="<%=GetServerPath()%>/AbandonSession.aspx";
}

function popupAsk()
{
    var left = parseInt((screen.availWidth/2) - (450/2));
    var top = parseInt((screen.availHeight/2) - (120/2));
    //open popup window
    SessionPop=window.open('<%=GetServerPath()%>/SessionPopUp.htm','WindowSession', 'width=450, height=120, toolbar=no, scrollbars=no, resizable=no,dependent=yes,left='+ left +',top='+ top);
}
function destroyPopUps()
{
    if(SessionPop == null) return;
    SessionPop.close();
}
  function goodbye()
    {
        
        if(document.getElementById('ctl00_hidPopup').value == "1")
        {
           popupWin.close();    
        }
    } 

    </script>

    <link href="~/css/admin.css" rel="stylesheet" type="text/css" />
    <%--<link href="../css/admin.css" rel="stylesheet" type="text/css" />
    	 <link href="../css/admin.css" type="text/css" />
    <link href="../css/admin.css" type="text/css" />
    <link href="../../css/admin.css" rel="stylesheet" type="text/css" />
    <link href="../css/admin.css" type="text/css" />
    <link href="../../css/admin.css" rel="stylesheet" type="text/css" />--%>
    <link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"

        rel="stylesheet" type="text/css" />
        <asp:ContentPlaceHolder ID="HeadCP" runat="server" >
        
</head>
<body onload=" startTimeoutTimer();alertmsg();"  önunload="destroyPopUps();goodbye();">
    <form id="form1"  runat="server" autocomplete="off">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" AsyncPostBackTimeout="360000">
    
    <div>
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr id="trheader"  runat="server">
                <td valign="top" class="headback" colspan="2" style="width: 100%">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td align="center" style="width: 5%" colspan="2">
                                <img id="imagesrc"  runat="server" src="../images/sts_logo.jpg" />
                            </td>
                            <td rowspan="2" valign="top" class="whitetxt" style="width: 80%">
                                <uc1:Loginstatus ID="Loginstatus1"  runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2" style="height: 32px" valign="middle">
                                <img id="Img1" src="../images/indiabulls_galaxy.gif"  runat="server" />
                            </td>
                        </tr>
                    </table>
                </td>
            
            <tr id="trmenu"  runat="server">
                <td valign="middle" colspan="2" class="vertstrip">
                    <uc2:MainMenu ID="MmenuControl"  runat="server" />
                </td>
            
            <tr id="trgradient"  runat="server">
                <td valign="top" colspan="2" class="gradient_back">
                    <img id="Img2" src="../images/spacer.gif"  runat="server" />
                </td>
            
            <tr>
                <td id="treeView"  runat="server" valign="top">
                    <uc3:LeftMenuUC ID="treeViewUsers"  runat="server" Visible="false"   />
                
                <td valign="top">
                    <asp:ContentPlaceHolder ID="cphContent" runat="server">
                    
                </td>
            </tr>
            <tr>
                <td valign="top" colspan="2">
                    <asp:ContentPlaceHolder ID="cphJScript" runat="server">
                    
                    <input type="hidden" id="hidPopup"  runat="server" />
                </td>
            </tr>
        </table>
        <input id="hdnMsg" style="z-index: 102; left: 17px; width: 38px; position: absolute;
            top: 556px" type="hidden"  runat="server" />
    </div>
    </form>
</body>
</html>





====================

User Control



=======================



====================
User Control

=======================

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="LeftMenuUC.ascx.cs" Inherits="Lead_Management_System_UserControl_MenuUC" %>
<style type="text/css">
 .menuheader
  {
   background-image:url(<%=GetImagePath()%>/gradient.jpg);
   text-align:top;
   vertical-align:top;
   font-size:12px;
   border-top:solid 1px #798da8;
  }
    .teammenuheader
  {
   vertical-align:top;
   border-top:solid 1px #798da8;
  }
  .menumouseover
  {
  cursor:pointer;
  border:solid 1px #ffe6a0;
  background-image:url(<%=GetImagePath()%>/glow.jpg);
  }  
  .menuitemselect
  {
  background-color:#ffe6a0;
  } 
  .leadimage {
  vertical-align:middle;
  cursor:pointer;
  }
  .apfimage {
  vertical-align:middle;
  cursor:pointer;
  }
  .leadheader
  {
  background-image:url(<%=GetImagePath()%>/back.gif);font-size:medium !important;
  height:23px;
  }
  .leadwork
  {
  vertical-align:middle; margin-left:136px; cursor:pointer;
  } 
  
  .leadmanagement
  {
  vertical-align:middle; margin-left:81px; cursor:pointer;
  }
  #TABS {
  position:relative;
 
}
  .leadteam
  {  
  vertical-align:top; cursor:pointer; position:absolute;
  right:2px !important;
  
  }  
  .lead a
  {
  text-decoration:none;
  }
  
  .apf a
  {
  text-decoration:none;
  }
 #TABS ul {
	list-style: none;
	padding:0;
	margin:0;
	float:left;
	margin-left:0px;
	cursor:pointer;
    }
   #TABS li {
	display: inline;
  	
	} 
	.highlight{
background-color:#E0E0E0;color:#015277;font-size:11px;font-family:Arial;border-left:1px solid #E5E5E5;height:16px;margin-left:2px;text-align:center;
}  
.grid{
border:1px; border-style:solid;border-color:black; align:left; cellpadding:0; cellspacing:0;
}

.grid td
{
align:left;font-size:10px;font-family:Verdana;;font-weight:normal;border:1px; border-style:solid;border-color:#EEEEEE;color:#015277;height:5px;line-height:12px;
}
.data
{
text-align:center;
}
.boldtext /*This Class used for Heading or Upper Form Style in the Form*/
{FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #ffffff; LINE-HEIGHT: 14px; FONT-FAMILY: Arial}
.strip1 
{BACKGROUND-COLOR: #015277}
.submit	/*This Class used for Button Control*/
{BORDER: #BFDCDF 1px solid; background-color: #DAEAED; FONT-SIZE: 11px; COLOR: #015277; font-weight:bold}



#dialog-overlay{
/* set it to fill the whil screen */
width:100%;height:100%;
/* transparency for different browsers */
filter:alpha(opacity=30);-moz-opacity:0.3;-khtml-opacity:0.3;opacity:0.3;background:#000;
/* make sure it appear behind the dialog box but above everything else */
position:absolute;top:0;left:0;z-index:3000;
/* hide it by default */
display:none;}
#dialog-box{/* css3 drop shadow */-webkit-box-shadow:0px 0px 10px rgba(0,0,0,0.5);-moz-box-shadow:0px 0px 10px rgba(0,0,0,0.5);/* css3 border radius */
-moz-border-radius:5px;-webkit-border-radius:5px;background:#eee;border: 1px solid black;
/* styling of the dialog box, i have a fixed dimension for this demo */width:98%;
/* make sure it has the highest z-index */position:absolute;z-index:5000;/* hide it by default */display:none;overflow:scroll;}
#dialog-box .dialog-content{/* style the content */text-align:center;padding:1px;margin:2px;color:#666;font-family:arial;font-size:11px;}
a.button{/* styles for button */float:right;margin:10px auto 0 auto;text-align:center;background-color:#DAEAED;display:block;width:50px;
padding:5px 10px 6px;color:#015277;text-decoration:none;font-weight:bold;line-height:1;/* css3 implementation :) */
-moz-border-radius:5px;-webkit-border-radius:5px;-moz-box-shadow:0 1px 3px rgba(0,0,0,0.5);
-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.5);text-shadow:0 -1px 1px rgba(0,0,0,0.25);
border-bottom:1px solid rgba(0,0,0,0.25);position:relative;cursor:pointer;}
#dialog-box .dialog-content p{font-weight:700;margin:0;}
#dialog-box .dialog-content ul{margin:10px 0 10px 20px;padding:0;height:50px;}
</style>

<script src='<%= ResolveClientUrl ("~/Jquery/jquery1.7.js") %>' type="text/javascript"></script>
 <script src='<%= ResolveClientUrl ("~/Jquery/ui/jquery-ui.js") %>' type="text/javascript"></script>
 <link href='<%= ResolveClientUrl ("~/Jquery/themes/base/jquery-ui.css") %>' rel="stylesheet" type="text/css" />
 <%--<script src='<%= ResolveClientUrl ("~/JavaScript/Communicate.js") %>' type="text/javascript"></script>--%>
<script type="text/javascript">

function openShadowBox(url, height, width, title){
    width = parseInt(width);
    height= parseInt(height);
    var horizontalPadding = 0;
    var verticalPadding = 0;
    var id="shadowbox_details"+ Math.floor((Math.random()*500)+1);
    $('<iframe id="'+id+'" src="' + url + '" frameBorder="1"/>').dialog({
        title: (title) ? title : 'Details',
        autoOpen: true,
        width: width,
        height: height,
        modal: true,
        resizable: false,
        autoResize: false,
        closeOnEscape: true,
        draggable: false,
        position: 'center',
        overlay: {
            opacity: 0.5,
            background: "black"
        }
    }).width(width - horizontalPadding).height(height - verticalPadding);
    $('html, body').scrollTop(0);  
}

//Popup dialog
function popupMe(message) {
		
	// get the screen height and width  
	var maskHeight = $(document).height();  
	var maskWidth = $(window).width();
	
	// calculate the values for center alignment
	var dialogTop =  (maskHeight/3) - ($('#dialog-box').height());  
	var dialogLeft = (maskWidth/2) - ($('#dialog-box').width()/2); 
	dialogTop=70;
	// assign values to the overlay and dialog box
	$('#dialog-overlay').css({height:maskHeight, width:maskWidth}).show();
	$('#dialog-box').css({top:dialogTop, left:dialogLeft}).show();
	$('#dialog-box').focus();
	// display the message
	$('#dialog-message').html(message);
			
}
function popupMe(message,UserName) {
		
	// get the screen height and width  
	var maskHeight = $(document).height();  
	var maskWidth = $(window).width();
	
	// calculate the values for center alignment
	var dialogTop =  (maskHeight/3) - ($('#dialog-box').height());  
	var dialogLeft = (maskWidth/2) - ($('#dialog-box').width()/2); 
	dialogTop=70;
	// assign values to the overlay and dialog box
	$('#dialog-overlay').css({height:maskHeight, width:maskWidth}).show();
	$('#dialog-box').css({top:dialogTop, left:dialogLeft}).show();
	$('#dialog-box').focus();
	$('#bUserName').html(UserName);
	// display the message
	$('#dialog-message').html(message);
			
}
function popupClose()
{
$('#dialog-overlay, #dialog-box').hide();
}


var KEYCODE_ENTER = 13;
var KEYCODE_ESC = 27;


$(function(){
  // Initialse Communicator Object  
 // InitComm();
  
   $(this).bind("contextmenu", function(e) {
                e.preventDefault();
            });

$("#dialog-box").keyup(function(e) {
   if (e.keyCode == KEYCODE_ESC) { 
      $('#dialog-overlay, #dialog-box').hide();	
        } 
});
            
// if user clicked on button, the overlay layer or the dialogbox, close the dialog	
	$('a.btn-ok, #dialog-overlay,#imgBtnClose').click(function () {		
		$('#dialog-overlay, #dialog-box').hide();		
		return false;
	});
	
	// if user resize the window, call the same function again
	// to make sure the overlay fills the screen and dialogbox aligned to center	
	$(window).resize(function () {
		
		//only do it if the dialog box is not hidden
		if (!$('#dialog-box').is(':hidden')) popup();		
	});	
	

  var path='<%=GetImagePath()%>';

//   $('.today').addClass('menuitemselect'); 
$("'."+<%= "'"+GetClickType()+"'" %>+"'").addClass('menuitemselect'); 


  $('.work').mouseover(function(){ 
 $(this).addClass('menumouseover'); 
  });
  
  $('.work').mouseout(function(){
  $(this).removeClass('menumouseover'); 
  });
  
   $('.lead td:nth-child(2)').mouseover(function(){
  $(this).addClass('menumouseover'); 
  });
  
  $('.lead td:nth-child(2)').mouseout(function(){
  $(this).removeClass('menumouseover'); 
  });  
  
   $('.apf td:nth-child(2)').mouseover(function(){
  $(this).addClass('menumouseover'); 
  });
  
  $('.apf td:nth-child(2)').mouseout(function(){
  $(this).removeClass('menumouseover'); 
  });  
  
  $('.work').click(function(){
      $('td').removeClass('menuitemselect'); 
      $('a').removeClass('menuitemselect');
      $('.lead td:nth-child(2)').removeClass('menuitemselect'); 
      $('.apf td:nth-child(2)').removeClass('menuitemselect'); 
       $('.work').removeClass('menuitemselect');
       $(this).addClass('menuitemselect');
      //alert($(this).attr("id"));
  });
  
  $('.lead td:nth-child(2)').click(function(){
   $('td').removeClass('menuitemselect'); 
   $('a').removeClass('menuitemselect');
   $('.work').removeClass('menuitemselect');
   $("'."+<%= "'"+GetClickType()+"'" %>+"'").removeClass('menuitemselect'); 
   $('.lead td:nth-child(2)').removeClass('menuitemselect');  
   $('.apf td:nth-child(2)').removeClass('menuitemselect');  
   $(this).addClass('menuitemselect');    
  });
  
   $('.apf td:nth-child(2)').click(function(){
   $('td').removeClass('menuitemselect'); 
   $('a').removeClass('menuitemselect');
   $('.work').removeClass('menuitemselect');  
   $('.lead td:nth-child(2)').removeClass('menuitemselect');  
    $('.apf td:nth-child(2)').removeClass('menuitemselect');  
   $(this).addClass('menuitemselect');    
  });
  
  $('#imgwork').click(function(){
  $('.work').slideToggle(function(){ 
  if($('.work').is(':visible'))  
  { 
   $('#imgwork').attr('src',path+'/uparrow.jpg'); 
  }
  else
  {
    $('#imgwork').attr('src',path+'/downarrow.jpg');
  }
  });
  });
 
  
  $('#imglead').click(function(){ 
  $('.lead').slideToggle(function(){  
  if($('.lead').is(':visible'))  
  { 
  $('#imglead').attr('src',path+'/uparrow.jpg'); 
  }
  else
  {
    $('#imglead').attr('src',path+'/downarrow.jpg');
  }  
  });
  });
  
  $('#imgapf').click(function(){ 
  $('.apf').slideToggle(function(){  
  if($('.apf').is(':visible'))  
  { 
  $('#imgapf').attr('src',path+'/uparrow.jpg'); 
  }
  else
  {
    $('#imgapf').attr('src',path+'/downarrow.jpg');
  }  
  });
  });
  
  $('#imgteam').click(function(){    
  $('.team').slideToggle(function(){  
  if($('.team').is(':visible'))  
  { 
  $('#imgteam').attr('src',path+'/uparrow.jpg'); 
  }
  else
  {
    $('#imgteam').attr('src',path+'/downarrow.jpg');
  }
  });
  }); 
    
  
    $('.tabItem1').click(function(){
    window.parent.refreshSession();
    $('#tabContent1').css('display','block');  
    $('#tabContent2').css('display','none');  
    $('#tabContent3').css('display','none');   
    
     if('<%=CurrentCompany%>'=="IHFL") 
     {    
      $('#tabItemImage2').attr('src',path+'/ro_buttonover.jpg');
     }   
     else if('<%=CurrentCompany%>'=="PSG") 
     {    
      $('#tabItemImage2').attr('src',path+'/bee_buttover.jpg');
      $('#tabItemImage1').attr('src',path+'/team_button.jpg');
     
     }  
     else if('<%=CurrentCompany%>'=="IHFLCR") 
     {    
      $('#tabItemImage2').attr('src',path+'/sales_buttonover.jpg');
      $('#tabItemImage3').attr('src',path+'/direct_buttonover.jpg');
     }
     else    
     {
     $('#tabItemImage2').attr('src',path+'/evp_buttonover.jpg');
     }
     if('<%=IsCrossSellUser()%>'=='True') 
     {    
      $('#tabItemImage2').attr('src',path+'/evp_buttonover.jpg');
     }  
     if('<%=CurrentCompany%>'=="IHFLCR") 
     {    
      $('#tabItemImage1').attr('src',path+'/credit_button.jpg');
     }   
     else if('<%=CurrentCompany%>'=="IHFLSL") 
     {    
      $('#tabItemImage1').attr('src',path+'/sales_button.jpg');
     }   
     else    
     {
      $('#tabItemImage1').attr('src',path+'/team_button.jpg');
     }  
   });
  
   $('.tabItem2').click(function(){  
    window.parent.refreshSession();
    $('#tabContent2').css('display','block');  
    $('#tabContent1').css('display','none');  
     $('#tabContent3').css('display','none');   
     
     if('<%=CurrentCompany%>'=="IHFLCR") 
     {    
      $('#tabItemImage1').attr('src',path+'/credit_buttonover.jpg');
      $('#tabItemImage3').attr('src',path+'/direct_buttonover.jpg');
     }    
     else    
     {
      $('#tabItemImage1').attr('src',path+'/team_buttonover.jpg');
     }  
      
     if('<%=CurrentCompany%>'=="IHFL") 
     {    
      $('#tabItemImage2').attr('src',path+'/ro_button.jpg');
     }
     else if('<%=CurrentCompany%>'=="PSG") 
     {    
      $('#tabItemImage2').attr('src',path+'/bee_butt_over.jpg');
      $('#tabItemImage1').attr('src',path+'/team_buttonover.jpg');
      
     }
     else if('<%=CurrentCompany%>'=="IHFLCR") 
     {    
      $('#tabItemImage2').attr('src',path+'/sales_button.jpg');
     }
     else    
     {
     $('#tabItemImage2').attr('src',path+'/evp_button.jpg');
     }   
     if('<%=IsCrossSellUser()%>'=='True') 
     {
     $('#tabItemImage2').attr('src',path+'/evp_button.jpg');
     } 
   });
  
  $('.tabItem3').click(function(){  
    window.parent.refreshSession();
    $('#tabContent3').css('display','block');  
    $('#tabContent1').css('display','none');   
    $('#tabContent2').css('display','none');
      
     if('<%=CurrentCompany%>'=="IHFLCR") 
     {    
      $('#tabItemImage1').attr('src',path+'/credit_buttonover.jpg');
       $('#tabItemImage2').attr('src',path+'/sales_buttonover.jpg');
     }    
     else    
     {
      $('#tabItemImage1').attr('src',path+'/team_buttonover.jpg');
     }  
      
     if('<%=CurrentCompany%>'=="IHFL") 
     {    
      $('#tabItemImage2').attr('src',path+'/ro_button.jpg');
     }
     else if('<%=CurrentCompany%>'=="IHFLCR") 
     {    
      $('#tabItemImage3').attr('src',path+'/direct_button.jpg');
     }
     else    
     {
     $('#tabItemImage2').attr('src',path+'/evp_button.jpg');
     }   
     if('<%=IsCrossSellUser()%>'=='True') 
     {
     $('#tabItemImage2').attr('src',path+'/evp_button.jpg');
     }   
  });
  
  });
  
  $(document).ready(function() {
  if('<%=IsNonPSGUser()%>'=='True' || '<%=IsPSGCrossSellUser()%>'=='True' ||'<%=isUserRight%>'=='True'   ) 
     {    
      $('#tbTeamRO').css('display','none'); 
     }});
    
   
   
     
function ClearSelection()
{
  $('td').removeClass('menuitemselect'); 
  $('a').removeClass('menuitemselect');
  $('.lead td:nth-child(2)').removeClass('menuitemselect'); 
  $('.work').removeClass('menuitemselect');

}
  function Click(Type)
  {

   window.parent.refreshSession();
    document.getElementById("frmPageName").style.display="block";  
    
    if(Type=="TODAY")
    {
       self.frames['frmPageName'].location.href="<%=GetPath()%>/HomeLoanfollowUp.aspx?mode=TODAY";
    }
    else if(Type=="PENDING")
    {
      self.frames['frmPageName'].location.href="<%=GetPath()%>/HomeLoanfollowUp.aspx?mode=PENDING";
    }
    else if(Type=="FRESH")
    {
       self.frames['frmPageName'].location.href="<%=GetPath()%>/HomeLoanfollowUp.aspx?mode=FRESH";
    }
    else if(Type=="EXISTING")
    {
       self.frames['frmPageName'].location.href="<%=GetPath()%>/HomeLoanfollowUp.aspx?mode=EXISTING";
    }
    else if(Type=="TRASH")
    {
       self.frames['frmPageName'].location.href="<%=GetPath()%>/HomeLoanfollowUp.aspx?mode=TRASH";
    }
    else if(Type=="REALLOCATION")
    {
       self.frames['frmPageName'].location.href="<%=GetPath()%>/HLLead Allocation.aspx";
    }
    else if(Type=="LEADENTRY")
    {
       self.frames['frmPageName'].location.href="<%=GetPath()%>/HLLead Entry.aspx";
    }
    else if(Type=="PSGLEADENTRY")
    {
       self.frames['frmPageName'].location.href="<%=GetPath()%>/PSGLead Entry.aspx";
    }
    else if(Type=="SEARCH")
    {
       self.frames['frmPageName'].location.href="<%=GetPath()%>/HLSearch.aspx";
    }
    else if(Type=="PSGSEARCH")
    {
       self.frames['frmPageName'].location.href="<%=GetPath()%>/PSGLead Search.aspx";
    }
    else if(Type=="UPLOAD")
    {
     self.frames['frmPageName'].location.href="<%=GetUploadPath()%>/CSVUpload.aspx";
    }
    else if(Type=="REPORT")
    {
      alert('Report will be coming shortly');
      return;
    }
    else if(Type=="REPORTADMIN")
    {
      self.frames['frmPageName'].location.href="<%=GetReportPath()%>/OpenReport.aspx?Mode=SALESTRAK";
      return;
    }
     else if(Type=="ADMIN")
    {
     self.frames['frmPageName'].location.href="<%=GetPath()%>/HLAdmin.aspx";
    }
    else if(Type=="FUTURE")
    {
       self.frames['frmPageName'].location.href="<%=GetPath()%>/HomeLoanfollowUp.aspx?mode=FUTURE";
    }
    else if(Type=="PRIORITY")
    {
       self.frames['frmPageName'].location.href="<%=GetPath()%>/HomeLoanfollowUp.aspx?mode=PRIORITY";
    }
   // Start TEAM_PRIORITY Added by Rituraj
    else if(Type=="TEAM_PRIORITY")
    {
       self.frames['frmPageName'].location.href="<%=GetPath()%>/HomeLoanfollowUp.aspx?mode=TEAM_PRIORITY";
    }
   //    END 
    else if(Type=="UNALLOCATED_LEADS")
    {
       self.frames['frmPageName'].location.href="<%=GetPath()%>/HomeLoanfollowUp.aspx?mode=UNALLOCATED_LEADS";
  
    }
    else if (Type=="MASTERADMIN")
    {
       self.frames['frmPageName'].location.href="<%=GetPath()%>/HlMasterAdmin.aspx";
    }
     else if (Type=="DISBURSALMASTERADMIN")
    {
       self.frames['frmPageName'].location.href="<%=GetPath()%>/HlDisbursalMasterAdmin.aspx";
    }
    else if (Type=="ALMMASTERADMIN")
    {
       self.frames['frmPageName'].location.href="<%=GetALMPath()%>/ALMUserMaster.aspx";
    }
     else if(Type=="SANCTION")
    {
       self.frames['frmPageName'].location.href="<%=GetPath()%>/HomeLoanfollowUp.aspx?mode=SANCTION";
    }  
    else if(Type=="AADDISBURSAL")
    {
       self.frames['frmPageName'].location.href="<%=GetPath()%>/AdditionalDisbursalRequest.aspx";
    }  
    else if(Type=="MIS")
    {
       self.frames['frmPageName'].location.href="<%=GetPath()%>/<%=defaultURL%>";
    } 
    else if(Type=="ONLINETEST")
    {
       self.frames['frmPageName'].location.href="<%=GetPath()%>/OnlineTest/HLWelcome.aspx";
    } 
     else if(Type=="DSALEADENTRY")
    {
       self.frames['frmPageName'].location.href="<%=GetPath()%>/HLDSALeadEntry.aspx";
    }  
     else if(Type=="APFENTRY")
    {
       self.frames['frmPageName'].location.href="<%=GetPath()%>/HLAPFEntry.aspx";
    }  
     else if(Type=="APF_Follow_Up")
    {
       self.frames['frmPageName'].location.href="<%=GetPath()%>/HLAPFFollowUp.aspx";
    }
    
     else if(Type=="PendingDIDs")
    {
       self.frames['frmPageName'].location.href="<%=GetPath()%>/HomeLoanfollowUp.aspx?mode=PendingDIDs";
    }
    else if(Type=="SanctionedPriorities")
    {
       self.frames['frmPageName'].location.href="<%=GetPath()%>/HomeLoanfollowUp.aspx?mode=SANCTIONPRIORITIES";
    }
    else if(Type == "NODSTPAYOUT")
    {
      self.frames['frmPageName'].location.href="<%=GetPath()%>/HLDSTNoPayout.aspx";
    }
    else if(Type == "INCENTIVECALCULATION")
    {
      self.frames['frmPageName'].location.href="<%=GetPath()%>/HLIncentiveCalculation.aspx";
    }
    else if(Type == "AUTHORIZESUBVENTION")
    {
      self.frames['frmPageName'].location.href="<%=GetPath()%>/AuthSubventiondetails.aspx";
    }
    else if(Type == "REALLOCATIONSTATUS")
    {
      self.frames['frmPageName'].location.href="<%=GetPath()%>/HLReallocationStatus.aspx";
    }
    else if(Type == "PENDINGAPPROVAL")
    {
      self.frames['frmPageName'].location.href="<%=GetPath()%>/HLLeadReAllocationRequestApproval.aspx";
    }
 }
  
</script>

<table id="maintable" class="border main" cellpadding="0" cellspacing="0">
<tr><td valign="top">
<table>
    <tr>
        <td class="normaltext leadheader">
              Workplace</td>
           
    </tr>
    <tr>
        <td>
            <table id="workplace"   runat="server" width="100%" class="normaltext" cellspacing="1">
                <tr>
                    <td colspan="3" class="menuheader">
                         My Work<img alt="" id="imgwork" class="leadwork" src="<%=GetImagePath()%>/uparrow.jpg" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td class="work TODAY" önclick="Click('TODAY');">
                         <img alt="" class="leadimage" src="<%=GetImagePath()%>/today_activity_icon.jpg" /> <a>
                            style="text-decoration: none;" class="normaltext" href="#">Today's
                            Activities</a> <%=GetTodayActivities() %>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td class="work PENDING" id="tdPENDING" önclick="Click('PENDING');">
                         <img alt="" class="leadimage" src="<%=GetImagePath()%>/pending_activity_icon.jpg" /> <a>
                            style="text-decoration: none;" class="normaltext" href="#">Pending
                            Activities</a> <%=GetPendingActivities() %>
                    </td>
                    <td>
                    </td>
                </tr>
                 <tr>
                    <td>
                    </td>
                    <td class="work FUTURE" önclick="Click('FUTURE');">
                         <img alt="" class="leadimage" src="<%=GetImagePath()%>/future_activity_icon.jpg" /> <a>
                            style="text-decoration: none;" class="normaltext" href="#">Future
                            Activities</a> <%=GetFutureActivities() %>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td class="work FRESH" önclick="Click('FRESH');">
                         <img alt="" class="leadimage" src="<%=GetImagePath()%>/fresh_lead_icon.jpg" /> <a>
                            style="text-decoration: none;" class="normaltext" href="#">Fresh
                            Leads</a> <%=GetFreshActivities() %>
                    </td>
                    <td>
                    </td>
                </tr>    
                
                  <tr>
                    <td>
                    </td>
                    <td class="work PRIORITY" önclick="Click('PRIORITY');">
                         <img alt="" class="leadimage" src="<%=GetImagePath()%>/prioroty_activity_icon.jpg" /> <a>
                            style="text-decoration: none;" class="normaltext" href="#">Priority
                            Leads</a> <%=GetPriorityActivities()%>
                    </td>
                    <td>
                    </td>
                </tr>
                
               <%-- <!-  Add One TR for  TEAMPRIORITY add by Rituraj ->--%>
                  <tr>
                    <td>
                    </td>
                    <td class="work TEAM_PRIORITY" önclick="Click('TEAM_PRIORITY');">
                         <img alt="" class="leadimage" src="<%=GetImagePath()%>/pending_activity_icon.jpg" /> <a>
                            style="text-decoration: none;" class="normaltext" href="#">Team Prioririty 
                            </a> <%=GetTeamPriorityActivities()%>
                    </td>
                    <td>
                    </td>
                </tr>
                  <%-- <!-  End ->--%>
                <tr>
                    <td>
                    </td>
                    <td class="work"   önclick="Click('SANCTION');"  runat="server" id="tdSanction">
                         <img alt="" class="leadimage" src="<%=GetImagePath()%>/accept.gif" /> <a>
                            style="text-decoration: none;" class="normaltext" href="#">Sanction Leads
                            </a> <%=GetSanctionLeads() %>
                    </tr></td>
                    <td>
                    </td>
                </tr> 
              <tr>
                <td>
                 </td>
                   <td class="work"   önclick="Click('PendingDIDs');"  runat="server" id="tdPendingDIDs">
                         <img alt="" class="leadimage" src="<%=GetImagePath()%>/sancpending_icon.jpg" /> <a>
                            style="text-decoration: none;" class="normaltext" href="#">Pending DIDs
                            </a> <%=GetPendingDIDs()%>
                   </tr></table></td>
                  <td>
                    </td>
                </tr> 
                <tr>
                <td>
                 </td>
                   <td class="work"   önclick="Click('SanctionedPriorities');"  runat="server" id="tdSanctionedPriorities">
                         <img alt="" class="leadimage" src="<%=GetImagePath()%>/sancpriority_icon.jpg" /> <a>
                            style="text-decoration: none;" class="normaltext" href="#">Sanctioned Priorities
                            </a> <%=GetSanctionedPriorities()%>
                   
                  <td>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td class="work"   önclick="Click('AADDISBURSAL');"  runat="server" id="tdDisbursal">
                         <img alt="" class="leadimage" src="<%=GetImagePath()%>/add_disb_icon.jpg" /> <a>
                            style="text-decoration: none;" class="normaltext" href="#">Additional Disbursal
                            </a> <%=GetAddDisbursal() %>
                    
                    <td>
                    </td>
               </tr> 
               <tr>
                    <td>
                    </td>
                    <td class="work"   önclick="Click('PENDINGAPPROVAL');"  runat="server" id="tdPendingApproval">
                         <img alt="" class="leadimage" src="<%=GetImagePath()%>/add_disb_icon.jpg" /> <a>
                            style="text-decoration: none;" class="normaltext" href="#">Reallocation Approval
                            </a> <%=GetPendingApprovals() %>
                    
                    <td>
                    </td>
               </tr>
            </table>
        
    
    <tr>
        <td>
            <table width="100%" id="tblLeadMenu" class="normaltext" cellspacing="1"  runat="server">
                <tr>
                    <td colspan="3" class="menuheader">
                         Lead Management<img alt="" id="imglead" src="<%=GetImagePath()%>/uparrow.jpg"

                            class="leadmanagement" /></td>
                </tr>
            
        </td>
    </tr>
      <tr>
        <td>
            <table width="100%" id="tblApfMenu" visible="false" class="normaltext" cellspacing="1"  runat="server">
                <tr>
                    <td colspan="3" class="menuheader">
                         APF Management<img alt="" id="imgapf" src="<%=GetImagePath()%>/uparrow.jpg"

                            class="leadmanagement" /></td>
                </tr>
            
        </td>
    </tr>
    <tr>
        <td>
            <table id="tbTeamRO" width="100%" class="normaltext" cellspacing="1">
                <tr>
                <td id="TABS" valign="top" class="teammenuheader" style="width:100%"><ul><li id="selected" class="tabItem1"><img id="tabItemImage1" src="<%=GetImageTab()%>" /></li> <li class="tabItem2"  id="litab"  runat="server"><img id="tabItemImage2" src="<%=GetImageTabOver()%>" /> <li class="tabItem3"  id="litabTeam"  runat="server"><img id="tabItemImage3" src="<%=GetImagePath()%>/direct_buttonover.jpg"/><li><img alt="" id="imgteam" src="<%=GetImagePath()%>/uparrow.jpg" class="leadteam" /> </li></ul></td>
                    </tr>
                    <tr class="team">
                    
                    <td>
                        <div style="width: 200px; height: 190px; overflow: auto;" id="tabContent1">
                            <asp:TreeView ID="treeView" ExpandImageToolTip="Expand" CollapseImageToolTip="Collapse"  ExpandDepth="0" ShowExpandCollapse="true" runat="server" OnTreeNodePopulate="treeView_TreeNodePopulate"

                                CssClass="normaltext" ShowLines="True" Target="frmPageName">
                                <SelectedNodeStyle ForeColor="#015277" CssClass="menuitemselect" />
                                <nodestyle forecolor="#015277" horizontalpadding="3px" />
                                <hovernodestyle cssclass="menumouseover" />
                            
                        </div>
                        <div style="width: 200px; height: 190px; overflow: auto;display:none;" id="tabContent2"> 
                            <asp:TreeView  ID="treeViewRO" ExpandDepth="0" ShowExpandCollapse="true" runat="server"  OnTreeNodePopulate="treeViewRO_TreeNodePopulate"  CssClass="normaltext" ShowLines="True" Target="frmPageName">
                                <SelectedNodeStyle ForeColor="#015277" CssClass="menuitemselect" />
                                <nodestyle forecolor="#015277" horizontalpadding="3px" />
                                <hovernodestyle cssclass="menumouseover" />
                            
                        </div>
                         <div style="width: 200px; height: 190px; overflow: auto;display:none;" id="tabContent3"> 
                            <asp:TreeView  ID="treeViewteam1" ExpandDepth="0" ShowExpandCollapse="true" runat="server"  OnTreeNodePopulate="treeViewTeam1_TreeNodePopulate"  CssClass="normaltext" ShowLines="True" Target="frmPageName">
                                <SelectedNodeStyle ForeColor="#015277" CssClass="menuitemselect" />
                                <nodestyle forecolor="#015277" horizontalpadding="3px" />
                                <hovernodestyle cssclass="menumouseover" />
                            
                        </div>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
        
    
    <td valign="top" align="left" style="height:610px; width:785px; ">
              
                <iframe id="frmPageName" name="frmPageName" frameborder="0" style="height:610px; width:785px;"   class="border" ></iframe>
                 <div id="dialog-overlay"></div>
                  <div id="dialog-box">
                   
                   <%--class="boldtext" id="bUserName">--%>
                   <div><table>
                <tr>
                    <td align="center" valign="middle" style="height: 20px; font-size: 15px;width:100% " class="strip1" id="tdName">
                     
                     </td>
                     <td>
                     <a id="imgBtnClose" href="#" style="float:right">
                        <img alt="Close" src="<%=GetImagePath()%>/cancel.png" /></a>
                    </td>
                </tr>
                </table></div>
                   <div class="dialog-content">
                       <div id="dialog-message"></div>
                  </div>
                </div>
        
             </td>
           


<input id="hdnLevel"  runat="server" type="hidden"/>

<script type="text/javascript" language="javascript">

function resizeIframe()
{
  document.getElementById('frmPageName').style.width = '100%';
}
 var hdnLevel=document.getElementById("<%=hdnLevel.ClientID %>").value;
//workplace
//if(hdnLevel=="L5")
//{
//   document.getElementById("workplace").style.display="none";
//   Click("EXISTING");
//}
//else
//{
if(document.getElementById("workplace")!=null)
{
document.getElementById("workplace").style.display="block";
}
if((hdnLevel=="T1" ||hdnLevel=="T2" ||hdnLevel=="T3" ||hdnLevel=="T0") && '<%=CurrentCompany%>'=="ISL")
{
var sessPage ='<%=Session["MISMode"]%>';
    
   if(sessPage.length>0)
        Click( <%="'"+ GetClickType()+"'" %>);
   else     
        Click('MIS');
}
else
{
Click( <%="'"+ GetClickType()+"'" %>);
}
    
//}  
</script>



====================================


====================================

推荐答案

('<iframe id=\"'+id+'\" src=\"' + url + '\" frameBorder=\"1\"/>').dialog({
title: (title) ? title : 'Details',
autoOpen: true,
width: width,
height: height,
modal: true,
resizable: false,
autoResize: false,
closeOnEscape: true,
draggable: false,
position: 'center',
overlay: {
opacity: 0.5,
background: \"black\"
}
}).width(width - horizontalPadding).height(height - verticalPadding);
('<iframe id="'+id+'" src="' + url + '" frameBorder="1"/>').dialog({ title: (title) ? title : 'Details', autoOpen: true, width: width, height: height, modal: true, resizable: false, autoResize: false, closeOnEscape: true, draggable: false, position: 'center', overlay: { opacity: 0.5, background: "black" } }).width(width - horizontalPadding).height(height - verticalPadding);


('html, body').scrollTop(0);
}

//Popup dialog
function popupMe(message) {
\t\t
\t// get the screen height and width
\tvar maskHeight =
('html, body').scrollTop(0); } //Popup dialog function popupMe(message) { // get the screen height and width var maskHeight =


(document).height();
\tvar maskWidth =
(document).height(); var maskWidth =


这篇关于想要在下拉列表中添加工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆