Re: Support button inside a jquery panel

  •  11-17-2010, 8:04 PM

    Re: Support button inside a jquery panel

    Hi joses,
     
    Please try the code below
     
    1. <%@ Page Language="C#" %>  
    2.   
    3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    4.   
    5. <html xmlns="http://www.w3.org/1999/xhtml">  
    6. <head runat="server">  
    7.     <title>Untitled Page</title>  
    8. </head>  
    9. <body>  
    10.     <form id="form1" runat="server">  
    11.         <div>  
    12.             <div id="divWatermark " style="position: absolute; top: 0px; right: 0px;">  
    13.   
    14.                 <script src='<%=ResolveUrl("~/CuteSoft_Client/CuteChat/")%>Support-Image-Button.js.aspx'></script>  
    15.   
    16.                 <script src='<%=ResolveUrl("~/CuteSoft_Client/CuteChat/")%>Support-Visitor-monitor.js.aspx'></script>  
    17.   
    18.             </div>  
    19.             <p>  
    20.                 Try scrolling this window.  
    21.             </p>  
    22.             <p style="height: 2000px">  
    23.                    
    24.             </p>  
    25.         </div>  
    26.     </form>  
    27. </body>  
    28. </html>  
    29.   
    30. <script>   
    31. window.onscroll=function(){   
    32.   
    33.    var browser = navigator.userAgent.toLowerCase();  
    34.     var divWatermark=document.getElementById( "divWatermark ");   
    35.     var isChrome=(browser.indexOf("chrome")!=-1);  
    36.     if(!isChrome)  
    37.     {  
    38.           divWatermark.style.top=document.documentElement.scrollTop+"px";  
    39.           divWatermark.style.right=-document.documentElement.scrollLeft+"px";  
    40.      }  
    41.     else  
    42.     {  
    43.         divWatermark.style.top=document.body.scrollTop+"px";  
    44.         divWatermark.style.right=-document.body.scrollLeft+"px";  
    45.     }  
    46.  }   
    47. </script>  

     
    Regards,
     
    ken 
View Complete Thread