HTC and application demonstration of TAB controls on the Web

zhaozj2021-02-16  77

Tab control .htm

</ title> <style type = "text / css"> page /: tab {behavior: URL (Tab.htc);} </ stop> </ head> < Body BGColor = "Buttonface"> <page: Tab Style = Width: 300px; Height: 150px; Background: ButtonFace; Font: 9pt; Color: Black; Text-Align: Left;> <Page: frame text = Ding one "> Content </ page: Frame text =" Settings 2 "> Frame Text =" Other Options "> Content </ Page: frame> </ Page: Tab> </ body> </ html></p> <p>Tab.htc</p> <p><Public: Component> <public: proty = "default" /> <script language = "jscript"> function open (mindex) {if (neyx) {for (IINDEX = 0; IIndex <vararray.length; IINDEX ) IF (Vararray [IIndex] == Event.Srcelement) {mindex = IIndex;}} for (IIndex = 0; IIndex <varRay.Length; IIndex ) {if (IIndex == mindex) {varRaRray [IIndex] .Style.zindex = Vararray.Length * 2 1; Childnodes [IIndex Vararray.Length] .style.zindex = varage.Length * 2; Vararray [IIndex] .Style.Postop = 0; Vararray [IIndex] .Style.posleft = varRay [IIndex ] .left-2; var - 2; "5px"; ChildNodes [IIndex Vararray.length] .style.visibility = "visible";} else {childnodes [IIndex varRay.length] .style.. Visibility = "hidden";} if (IIndex <mindex) {var .s.zindex = IIndex * 2 1; ChildNodes [IIndex Vararray.Length] .style.zindex = IIndex * 2;} if (IIndex > mindex) {varharray [IIndex] .style.zindex = IINDEX * 2-1; ChildNodes [IIndex Vararray.Length] .style.zindex = IINDEX * 2-2;} if (IIndex <mindex || IIndex> MINDEX){Vararray [IIndex] .style.postop = 2; Vararray [IIndex] .Style.posleft = var; var (IIndex) ;Style.padding = "3px";} varicray [ionDex] .style.paddingtop = "2px";}} function Nothing () {Event.ReturnValue = false;} Var Object, Strvalue, Varrule, VaRray = New Array (), IIndex, Kindex, Varbgcolor, NINDEX; IF (HaschildNodes ()) {IF ! style.position || style.position == "static") style.position = "relative"; varbgcolor = style.back; style.Background = "transparent";</p> <p>style.overflow = "hidden"; varRule = childNodes.item (0); for (iIndex = 0; iIndex <childNodes.length; iIndex ) if (! childNodes [iIndex] .nodeName = "frame") removeChild (childNodes [iIndex ]); For (IIndex = 0; IIndex <childnodes.length; IIndex ) {varRaRray [IIndex] = Document.createElement ("span"); Vararray [IIndex] .style.position = "absolute"; varArray [IIndex]. Style.postop = 2; varyle [neyDex] .style.color = "black"; varRray [IIndex] .INnertext = childnodes [neyDex] .text; var .bordertop = "1px solid white"; varray [ IINDEX] .Style.Borderleft = "1px solid white"; varyle [henticiex] .style.borderright = "1px solid black"; varque.padding = "3px"; varArRay [IIndex] .Style.paddingtop = "2px"; varArray [iIndex] .style.background = varBgColor; varArray [iIndex] .style.cursor = "default"; varArray [iIndex] .οnclick = open; varArray [iIndex] .onselectstart = nothing; childNodes [iIndex] .style.Width = style.poswidth; ChildNodes [IIndex] .Style.Bordertop = "1px solid white"; childnodes [neyDex] .Style.Borderleft = "1PX S olid white "; childNodes [iIndex] .style.borderRight =" 1px solid black "; childNodes [iIndex] .style.borderBottom =" 1px solid black "; childNodes [iIndex] .style.background = varBgColor; childNodes [iIndex]. Style.Position = "absolute"; childnodes [IIndex] .style.padding = "5px";} for (IIndex in var) {INSERTBEFORE (Vararray [IIndex], Varrule); if (IINDEX> 0) {nindex = 2; For (Kindex = 0; Kindex <IIndex; Kindex ) {NINDEX = Vararray [Kindex] .clientWidth 4;</p></div><div class="text-center mt-3 text-grey"> 转载请注明原文地址:https://www.9cbs.com/read-16141.html</div><div class="plugin d-flex justify-content-center mt-3"></div><hr><div class="row"><div class="col-lg-12 text-muted mt-2"><i class="icon-tags mr-2"></i><span class="badge border border-secondary mr-2"><h2 class="h6 mb-0 small"><a class="text-secondary" href="tag-2.html">9cbs</a></h2></span></div></div></div></div><div class="card card-postlist border-white shadow"><div class="card-body"><div class="card-title"><div class="d-flex justify-content-between"><div><b>New Post</b>(<span class="posts">0</span>) </div><div></div></div></div><ul class="postlist list-unstyled"> </ul></div></div><div class="d-none threadlist"><input type="checkbox" name="modtid" value="16141" checked /></div></div></div></div></div><footer class="text-muted small bg-dark py-4 mt-3" id="footer"><div class="container"><div class="row"><div class="col">CopyRight © 2020 All Rights Reserved </div><div class="col text-right">Processed: <b>0.049</b>, SQL: <b>9</b></div></div></div></footer><script src="./lang/en-us/lang.js?2.2.0"></script><script src="view/js/jquery.min.js?2.2.0"></script><script src="view/js/popper.min.js?2.2.0"></script><script src="view/js/bootstrap.min.js?2.2.0"></script><script src="view/js/xiuno.js?2.2.0"></script><script src="view/js/bootstrap-plugin.js?2.2.0"></script><script src="view/js/async.min.js?2.2.0"></script><script src="view/js/form.js?2.2.0"></script><script> var debug = DEBUG = 0; var url_rewrite_on = 1; var url_path = './'; var forumarr = {"1":"Tech"}; var fid = 1; var uid = 0; var gid = 0; xn.options.water_image_url = 'view/img/water-small.png'; </script><script src="view/js/wellcms.js?2.2.0"></script><a class="scroll-to-top rounded" href="javascript:void(0);"><i class="icon-angle-up"></i></a><a class="scroll-to-bottom rounded" href="javascript:void(0);" style="display: inline;"><i class="icon-angle-down"></i></a></body></html><script> var forum_url = 'list-1.html'; var safe_token = 'nyyxJWYSd_2FjkRY6mMy_2FSJmcCjfsl4iFijiX9qo4OJ_2FuBksqAT6LrmpeyENksk9Uox4us7y6E_2FHhuKYxKEkLAVw_3D_3D'; var body = $('body'); body.on('submit', '#form', function() { var jthis = $(this); var jsubmit = jthis.find('#submit'); jthis.reset(); jsubmit.button('loading'); var postdata = jthis.serializeObject(); $.xpost(jthis.attr('action'), postdata, function(code, message) { if(code == 0) { location.reload(); } else { $.alert(message); jsubmit.button('reset'); } }); return false; }); function resize_image() { var jmessagelist = $('div.message'); var first_width = jmessagelist.width(); jmessagelist.each(function() { var jdiv = $(this); var maxwidth = jdiv.attr('isfirst') ? first_width : jdiv.width(); var jmessage_width = Math.min(jdiv.width(), maxwidth); jdiv.find('img, embed, iframe, video').each(function() { var jimg = $(this); var img_width = this.org_width; var img_height = this.org_height; if(!img_width) { var img_width = jimg.attr('width'); var img_height = jimg.attr('height'); this.org_width = img_width; this.org_height = img_height; } if(img_width > jmessage_width) { if(this.tagName == 'IMG') { jimg.width(jmessage_width); jimg.css('height', 'auto'); jimg.css('cursor', 'pointer'); jimg.on('click', function() { }); } else { jimg.width(jmessage_width); var height = (img_height / img_width) * jimg.width(); jimg.height(height); } } }); }); } function resize_table() { $('div.message').each(function() { var jdiv = $(this); jdiv.find('table').addClass('table').wrap('<div class="table-responsive"></div>'); }); } $(function() { resize_image(); resize_table(); $(window).on('resize', resize_image); }); var jmessage = $('#message'); jmessage.on('focus', function() {if(jmessage.t) { clearTimeout(jmessage.t); jmessage.t = null; } jmessage.css('height', '6rem'); }); jmessage.on('blur', function() {jmessage.t = setTimeout(function() { jmessage.css('height', '2.5rem');}, 1000); }); $('#nav li[data-active="fid-1"]').addClass('active'); </script>