TXT

modalpopupExtenderDemo

By Ruby Garcia,2015-01-04 15:40
24 views 0
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="_Default2" %> U.. </div> <!-- <div id="ad1" class="adBox"><iframe src="/jsp/includes/advert.jsp" width="100%" height="90" scrolling="no" frameborder="0" style="display:block;margin:0 auto;"></iframe></div> --> </div> </div> <div id="pagecontainer" class="reader_inner"> <div class="model pannel_mod" data-page="1"> <div id="page1" class="scrollLoading"> null</div></div> </div> </div> <div class="model pannel_mod" data-page="2"> <div id="page2" class="scrollLoading"> null</div></div> </div> </div> <div class="model pannel_mod" data-page="3"> <div id="page3" class="scrollLoading"> null</div></div> </div> </div> <div class="model pannel_mod" data-page="4"> <div id="page4" class="scrollLoading"> null</div></div> </div> </div> <div class="model pannel_mod" data-page="5"> <div id="page5" class="scrollLoading"> null</div></div> </div> </div> </div> </div> </div> <div id="doc_sidebar" class="doc_sider"> <div class="doc_sider_inner"> <div id="relativeAjax" class="relative_mod"> </div> <div class="report_mod"> <p class="report_bd"><a href="javascript:void(0);" id="report" title="Report this document">Report this document <span class="icon icon_report"></span></a></p> <p>For any questions or suggestions please email <br /><a href="mailto:cust-service@docsford.com" title="cust-service@docsford.com">cust-service@docsford.com</a></p> </div> <!--advertisement--> <!-- <div class="right_ad_mod"> <div class="m1"> </div> </div> --> </div> </div> </div> </div> </div> <script type="text/javascript"> var picture_image_path_v1 = "http://st.docsford.com"; </script> <script type="text/javascript" src="http://www.docsford.com/js/jquery-1.11.1.min.js?rand=20160302"></script> <script type="text/javascript" src="http://www.docsford.com/js/common_global.js?rand=20160302"></script> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-62413738-1', 'auto'); ga('send', 'pageview'); </script> <div class="gobackTop"><a href="javascript:void(0);" class="t"></a></div> <script type="text/javascript">var addthis_config = {"data_track_addressbar":false};</script> <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-559395ba386a9f3e" async="async"></script> <script type="text/javascript"> var readerConfig = { allPage:5, productId:643517368, docProductId:1403366, isLogin:0, productName:'modalpopupExtenderDemo', load_url:'http://st.docmatize.com/' }; (function(){ jQuery.post("http://www.docsford.com/productEnd/viewStat.do",{"enId":"1403366"}); })(); </script> <script type="text/javascript" src="http://www.docsford.com/js/reader_html_test.js?rand=20160302"></script> <script type="text/javascript"> var docsford = { init:function(){ var _this = this; if(jQuery(".search_input").length>0){ jQuery(".search_input").focus(); } _this.hastop(); _this.report(); }, hastop:function(){ var _this = this; jQuery(".btn_like").bind("click",function(){ _this.increaseVoteCount(1); }); jQuery(".btn_hit").bind("click",function(){ _this.increaseVoteCount(-1); }); }, increaseVoteCount:function(type){ jQuery.post("http://www.docsford.com/productEnd/increaseVoteCount.do",{ "enId":"1403366","type":type},function(data){ if(data == 0){ var left, top = 10; if(type == 1){ left = parseInt(jQuery(".btn_like").offset().left)+10; var oVoteNum = parseInt(jQuery("#hitNum").html()); jQuery("#hitNum").html(oVoteNum+1); }else{ left = parseInt(jQuery(".btn_hit").offset().left)+10; } if(jQuery('#zhan').length>0){ jQuery('#zhan').remove(); } var addP = jQuery('<div id="zhan" style="font-size:24px;"><b>+1<\/b></\div>').appendTo(jQuery(".toolbar_left_mod")); jQuery('#zhan').css({'position':'absolute','z-index':'1', 'color':'#2284e2','left':left+'px','top':top+'px'}).animate({top:top-10,left:left+10},'slow',function(){addP.fadeIn('fast').remove();}); }else{ //alert("You already had voted, please don't repeat voting!"); } }); }, report:function(){ var _this = this; var aReportBtn = jQuery("#report,.report_inline"); if(aReportBtn.length == 0){return;} aReportBtn.bind("click",function(){ jQuery.ajax({ type:'GET', url:"/jsp/productEnd/include/doc_layer.jsp", data:"layer=report", context: document.body, success:function(data){ if(data){ var oHtml = data; jQuery(this).append(oHtml); dialogBoxShadow(); setObjCenter("reportDiv"); _this.initReport(); } } }); }); }, initReport:function(){ var oErrorType = 3,oReportSubmit = jQuery("#reportSubmit"),aErrorType = jQuery("input[name='error']"), oTextArea = jQuery("#reportInfo"),oRepeatUrl = jQuery("#purl"); if(oReportSubmit.length>0){ oReportSubmit.bind("click",function(){ var result = getErrorType(); if(result == 3){return false;} jQuery.ajax({ url:"/productEnd/insertDocReport.do", data:"content="+encodeURI(oTextArea.val())+"&choose="+result+"&productId="+1403366+"&dupUrl="+oRepeatUrl.val(), success:function(data){ if(data == 2){//0:faild 1:repeat 2:success jQuery("#reportDiv .report_message,#reportDiv .dialog_buttons").hide(); jQuery(".report_tips").show(); commonConutHideBox('reportDiv',1,2); } else if(data == 0){ alert("Failure report!"); } else if(data == 1){ alert("You had reported this document,please don't reported again!"); } } }); }); } if(aErrorType.length>0){ aErrorType.bind("click",function(){ if(aErrorType.is(":checked")){ oReportSubmit.removeClass('btn_forbid'); } else{ oReportSubmit.addClass('btn_forbid'); } if(jQuery(this).data("error") == 2){ jQuery("#repeatproduct").show().focus(); } else{ jQuery("#repeatproduct").hide(); } }); } function getErrorType(){ jQuery.each(aErrorType,function(i){ if(jQuery(this).is(":checked")){ oErrorType = jQuery(this).data("error"); return false; } }); return oErrorType; } } } docsford.init(); function submit(){ if(jQuery(".search_input").length>0){ if(jQuery(".search_input").val()!=""){ document.forms[0].submit(); } else{ jQuery(".search_input").foucs(); } } } jQuery(function(){ var oBackTop = jQuery(".gobackTop"); var oSideBarW = oBackTop.width(); var pageWidth = jQuery(".global_wrapper").width(); jQuery(window).bind("scroll resize", setBarPosition); jQuery(".gobackTop").unbind(); jQuery(".gobackTop").bind("click",function(){ jQuery("html, body").animate({ scrollTop: 0 }, 120); }); function setBarPosition(){ var winh = jQuery(window).height(),winw = jQuery(window).width(); var oRight = (winw-pageWidth)/2+pageWidth+20; oBackTop.css({'left':oRight}); var st = jQuery(document).scrollTop(); (st > winh)? oBackTop.show(): oBackTop.hide(); } }); if(false){ showLogin(); } </script> </body> </html>