1. Drop down menu :
<!--Example drop down menu 1--> <form name="form1"> <select name="select1" size="1" style="background-color:#FFFFD7" onchange="displaydesc(document.form1.select1, thetext1, 'textcontainer1')"> <option selected value="http://www.javascriptkit.com" />JavaScript Kit <option value="http://freewarejava.com" />Freewarejava.com <option value="http://wired.com" target="newwin" />Wired News <option value="http://www.news.com" />News.com <option value="http://www.codingforums.com" target="newwin" />Coding Forums </select> <input type="button" value="Go" onclick="jumptolink(document.form1.select1)" /><br /> <span id="textcontainer1" align="left" style="font:italic 13px Arial"> </span> </form> <!--Example drop down menu 2--> <!-- <form name="form2"> <select name="select2" size="1" style="background-color:#E3FFDF" onchange="displaydesc(document.form2.select2, thetext2, 'textcontainer2')"> <option selected value="http://www.cnn.com" />CNN <option value="http://www.msnbc.com" />MSNBC <option value="http://news.bbc.co.uk" />BBC News <option value="http://www.theregister.com/" />The Register </select> <input type="button" value="Go" onclick="jumptolink(document.form2.select2)" /><br /> <span id="textcontainer2" align="left" style="font:italic 13px Arial"> </span> </form> --> <!--IMPORTANT: Below script should always follow all of your HTML codes above, and never proceed them--> <!--To be safe, just add below script at the end of your page--> <script type="text/javascript"> /*********************************************** * Drop down menu w/ description- (c) Dynamic Drive (www.dynamicdrive.com) * This notice must stay intact for use * Visit http://www.dynamicdrive.com/ for full source code ***********************************************/ //1) CUSTOMIZE TEXT DESCRIPTIONS FOR LINKS ABOVE var thetext1=new Array() thetext1[0]="Comprehensive JavaScript tutorials and over 400+ free scripts" thetext1[1]="Direct link to hundreds of free Java applets online!" thetext1[2]="Up to date news on the technology front" thetext1[3]="News.com- The #1 technology News site." thetext1[4]="Web Coding and development forums" /// You may define additional text arrays if you have multiple drop downs: var thetext2=new Array() thetext2[0]="CNN- US and World News." thetext2[1]="MSNBC- NBC News online." thetext2[2]="BBC News- Updated every minute of every day." thetext2[3]="TheRegister- Daily IT news." // Now, see 2) below for final customization step function displaydesc(which, descriptionarray, container){ if (document.getElementById) document.getElementById(container).innerHTML=descriptionarray[which.selectedIndex] } function jumptolink(what){ var selectedopt=what.options[what.selectedIndex] if (document.getElementById && selectedopt.getAttribute("target")=="newwin") window.open(selectedopt.value) else window.location=selectedopt.value } //2) Call function displaydesc() for each drop down menu you have on the page // This function displays the initial description for the selected menu item // displaydesc(name of select menu, name of corresponding text array, ID of SPAN container tag): // Important: Remove the calls not in use (ie: 2nd line below if there's only 1 menu on your page) displaydesc(document.form1.select1, thetext1, 'textcontainer1') displaydesc(document.form2.select2, thetext2, 'textcontainer2') </script>2. SwitchMenu :
<style type="text/css"> .menutitle{ cursor:pointer; margin-bottom: 5px; background-color:#ECECFF; color:#000000; width:140px; padding:2px; text-align:center; font-weight:bold; /*/*/border:1px solid #000000;/* */ } .submenu{ margin-bottom: 0.5em; } </style> <script type="text/javascript"> /*********************************************** * Switch Menu script- by Martial B of http://getElementById.com/ * Modified by Dynamic Drive for format & NS4/IE4 compatibility * Visit http://www.dynamicdrive.com/ for full source code ***********************************************/ var persistmenu="yes" //"yes" or "no". Make sure each SPAN content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc) var persisttype="sitewide" //enter "sitewide" for menu to persist across site, "local" for this page only if (document.getElementById){ //DynamicDrive.com change document.write('<style type="text/css">\n') document.write('.submenu{display: none;}\n') document.write('</style>\n') } function SwitchMenu(obj){ if(document.getElementById){ var el = document.getElementById(obj); var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change if(el.style.display != "block"){ //DynamicDrive.com change for (var i=0; i<ar.length; i++){ if (ar[i].className=="submenu") //DynamicDrive.com change ar[i].style.display = "none"; } el.style.display = "block"; }else{ el.style.display = "none"; } } } function get_cookie(Name) { var search = Name + "=" var returnvalue = ""; if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) if (offset != -1) { offset += search.length end = document.cookie.indexOf(";", offset); if (end == -1) end = document.cookie.length; returnvalue=unescape(document.cookie.substring(offset, end)) } } return returnvalue; } function onloadfunction(){ if (persistmenu=="yes"){ var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname var cookievalue=get_cookie(cookiename) if (cookievalue!="") document.getElementById(cookievalue).style.display="block" } } function savemenustate(){ var inc=1, blockid="" while (document.getElementById("sub"+inc)){ if (document.getElementById("sub"+inc).style.display=="block"){ blockid="sub"+inc break } inc++ } var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname var cookievalue=(persisttype=="sitewide")? blockid+";path=/" : blockid document.cookie=cookiename+"="+cookievalue } if (window.addEventListener) window.addEventListener("load", onloadfunction, false) else if (window.attachEvent) window.attachEvent("onload", onloadfunction) else if (document.getElementById) window.onload=onloadfunction if (persistmenu=="yes" && document.getElementById) window.onunload=savemenustate </script> <!-- Keep all menus within masterdiv--> <div id="masterdiv"> <div class="menutitle" onclick="SwitchMenu('sub1')">Link Web Excel</div> <span class="submenu" id="sub1"> - <a href="https://sites.google.com/site/t13xc2/excel-1/cachamtutaochoworksheet">Các hàm Tự Tạo Trong Excel</a><br /> - <a href="http://www.giaiphapexcel.com/">Giải Pháp Excel</a><br /> - <a href="http://webketoan.com/forums/71-ung-dung-excel/">Ứng dụng Excel</a><br /> - <a href="http://excel.webkynang.vn/">Học Excel</a><br /> - <a href="http://excelviet.com ">Excel Việt</a><br /> - <a href="http://tuhocexcel.blogspot.com ">Tự Học Excel</a><br /> - <a href="http://www.hocexcel.online">Học Excel Online</a><br /> </span> <div class="menutitle" onclick="SwitchMenu('sub2')">Thủ Thuật Excel</div> <span class="submenu" id="sub2"> - <a href="https://support.office.com/vi-vn/article/T%E1%BA%A1o-ho%E1%BA%B7c-x%C3%B3a-b%E1%BB%8F-%C4%91%E1%BB%8Bnh-d%E1%BA%A1ng-s%E1%BB%91-t%C3%B9y-ch%E1%BB%89nh-83657CA7-9DBE-4EE5-9C89-D8BF836E028E">Tạo hoặc xóa bỏ định dạng số tùy chỉnh</a><br /> - <a href="http://quantrimang.com/cac-phuong-phap-giau-so-0-trong-excel-8250">Các phương pháp giấu số 0 trong Excel</a><br /> - <a href="https://support.office.com/vi-vn/article/C%C3%A1c-h%C3%A0m-Excel-theo-th%E1%BB%83-lo%E1%BA%A1i-5F91F4E9-7B42-46D2-9BD1-63F26A86C0EB">Các hàm Excel (theo thể loại)</a><br/> - <a href="http://caulacbovb.com/forum/viewtopic.php?t=10177">Hướng dẫn viết VBA Excel chạy trên ứng dụng VB6</a><br/> - <a href="http://blogchiasekienthuc.com/hoc-office/hoc-excel/ ">Học Excel - blogchiasekienthuc</a><br/> - <a href="http://blogcongdong.com/tag/tu-hoc-excel-online">Học Excel - blogcongdong</a><br/> </span> <div class="menutitle" onclick="SwitchMenu('sub3')">Help Forum</div> <span class="submenu" id="sub3"> - <a href="http://www.codingforums.com">Coding Forums</a><br /> </span> <div class="menutitle" onclick="SwitchMenu('sub4')">Trang Web Hỗ Trợ Blog</div> <span class="submenu" id="sub4"> - <a href="http://www.makingdifferent.com/category/blogger-widgets/ ">Blogger Widgets</a><br /> - <a href="http://blog.hubspot.com/marketing/blog-sidebar-plugins-widgets-add-ons-list">13 Widgets, Plugins, and Add-Ons to Enhance Your Blog's Performance</a><br /> - <a href="http://mashable.com/2007/09/06/widgets-2/#oP9qFO7s4Zq3">50 Widget cho blog</a><br /> - <a href="http://4site.vn ">4site.vn</a><br /> - <a href="http://feedjit.com ">feedjit.com </a><br /> <!-- - <a href="http://www.javascriptkit.com">JavaScript Kit</a><br /> - <a href="http://www.freewarejava.com">Freewarejava</a><br /> - <a href="http://www.cooltext.com">Cool Text</a><br /> - <a href="http://www.google.com">Google.com</a> --> </span> <img src="http://www.b-lốc.vn/favicon.ico" onclick="SwitchMenu('sub5')" /> <font size="2" color="green"><-Xem Blogger & Bài Viết Click vào biểu Tượng</font> <br /> <span class="submenu" id="sub5"> - <a href="http://www.terocket.com">Trang Blog Terocket</a><br /> - <a href="http://www.24hnews.top">Trang Blog 24hnews</a><br /> - <a href="http://www.tips24h.net">Trang Blog tips24h</a><br /> - <a href="http://nguyencaotu.com">Trang Blog nguyencaotu</a><br /> - <a href="http://www.tohaitrieu.net">Trang Blog tohaitrieu</a><br /> - <a href="http://noct-land.blogspot.com ">Trang Blog noct-land</a><br /> - <a href="http://www.dxoan.com ">Trang Blog dxoan</a><br /> - <a href="http://www.tranbadat.info">Trang Blog tranbadat</a><br /> - <a href="http://minhtamblog.com">Trang Blog minhtam</a><br /> - <a href="http://canthoit.info ">Trang Blog canthoit.info </a><br /> - <a href="http://www.thanhf.com">Trang Blog thanhf.com </a><br /> <!-- google --> - <a href="http://www.khoahocseo.vn/2015/06/cach-xoa-credit-link-trong-template-blogger.html">Cách Xóa Credit Link Trong Template Blogger </a><br /> - <a href="http://www.tips24h.net/2014/12/cac-the-dieu-kien-trong-blogspot.html">Thẻ điều kiện trong blogspot</a><br /> - <a href="http://www.terocket.com/2013/01/edit-blogger-mobile-templates-for.html">Tùy chỉnh Blogger Templates khi xem bằng Mobile </a><br /> - <a href="http://www.24hnews.top/2015/06/thu-gon-bai-viet-tren-trang-chu.html">Thu gọn bài viết trên trang chủ<br /> - <a href="http://www.terocket.com/2011/02/cach-chia-module-blog-lam-nhieu-cot.html">Chia tiện ích trong blogspot thành nhiều cột</a><br /> - <a href="http://thuthuat.congnghehomnay.com/huong-dan-thiet-ke-template-blogger-hoan-chinh/">Hướng dẫn thiết kế template Blogger hoàn chỉnh </a><br /> - <a href="http://nguyencaotu.com/the-dieu-kien-if-trong-blogspot.html">Thẻ điều kiện IF trong Blogspot </a><br /> - <a href="http://thaimeo.net/cai-dat-nang-cao-blogger">Cài đặt nâng cao Blogger </a><br /> - <a href="http://www.kenhchiase.biz/2015/09/tuy-chinh-hien-thi-noi-dung-voi-cau-dieu-kien-blogspot.html">Tùy chỉnh hiển thị với câu lệnh đều kiện trong Blogspot </a><br /> - <a href="http://www.tohaitrieu.net/an-hien-widgets-gadgets-tai-mot-trang-bat-ki-trong-blogspot/">Ẩn/Hiện Widgets/Gadgets tại một trang bất kì trong blogspot </a><br /> - <a href="http://noct-land.blogspot.com/2011/05/blogspot-mot-so-van-e-thuong-gap.html">Blogspot : một số vấn đề thường gặp </a><br /> - <a href="http://www.weblog247.info/2015/06/cac-thu-thuat-ma-cac-blogger-nen-biet_29.html">Các thủ thuật ẩn mà các blogger nên biết </a><br /> - <a href="http://www.sevryukov.org/loi-khuyen-seo-danh-cho-blogger-va-blogspot/">Lời khuyên SEO dành cho Blogger và Blogspot </a><br /> - <a href="http://blog-xtraffic.pep.vn/seo-cho-blogger-blogspot/">SEO cho Blogger (Blogspot) </a><br /> - <a href="http://www.dxoan.com/2015/04/tong-hop-mot-so-dich-vu-dns-trung-gian-mien-phi-dang-lua-chon-cho-webmaster.html">Tổng hợp một số dịch vụ DNS trung gian miễn phí đáng lựa chọn cho Webmaster </a><br /> - <a href="http://www.tranbadat.info/2015/09/cach-dung-cloudflare-de-khong-bi-chan-blogspot.html">Cách dùng Cloudflare để không bị chặn Blogspot </a><br /> - <a href="http://traffic.vnblogger.org/1/post/2013/10/huong-dan-tro-sub-domain-toi-self-hosting.html#.VwFFKo7P_L0">Hướng dẫn trỏ Sub Domaint tới Self Hosting </a><br /> - <a href="http://minhtamblog.com/top-website/top-10-website-tiep-thi-lien-ket-tot-nhat.html ">Top 10 website tiếp thị liên kết tốt nhất </a><br /> - <a href="http://canthoit.info/feedjit-va-nhung-widget-thu-vi-cho-trang-web">FEEDJIT và những Widget thú vị cho trang Web! </a><br /> - <a href="http://www.kslzone.net/2014/10/tao-trang-demo-va-download-cho-blogger.html">Chia sẻ trang demo và download đẹp cho Blogger </a><br /> - <a href="http://doiguocmoc.com/blogspot/thu-thuat-blogspot/chen-quang-cao-vao-giua-bai-viet-cho-blogspot.html ">Chèn quảng cáo vào giữa bài viết cho Blogspot </a><br /> - <a href="http://www.phanhung.info/2015/10/huong-dan-chen-plugin-seo-the-meta-cho-blogspot.html">Hướng dẫn chèn Plugin SEO thẻ Meta cho Blogspot </a><br /> - <a href="http://www.ngocanhblog.com/2015/11/seo-all-in-one-pack-2015-2016-cho-blogspot.html">SEO All in One Pack 2015-2016 cho Blogspot Plugin-Blogger </a><br /> - <a href="http://www.dxoan.com/2014/10/plugin-load-json-for-blogspot-cong-cu.html ">Plugin Load Json for Blogspot / Công cụ load tin cho Blogspot </a><br /> - <a href="http://www.nhatchanh.info/2015/03/huong-dan-tao-breadcrumbs-cho-blogspot.html">Hướng dẫn tạo Breadcrumbs cho Blogspot </a><br /> - <a href="http://www.terocket.com/2015/01/cloudflare-for-blogger.html">Cài đặt Cloudflare cho tên miền Blogger / Blogspot không bị chặn </a><br /> - <a href="http://www.terocket.com/2014/12/nut-button-open-close-mo-dong-an-hien-noi-dung-cho-blogspot-blogger.html#more">Nút button Open/Close mở đóng & ẩn hiện nội dung cho Blogspot Blogger </a><br /> - <a href="http://www.terocket.com/2014/11/nut-buttons-dong-bang-css3-v1.html">Nút buttons động bằng CSS3 cho Blogger V1 </a><br /> <!-- - <a href="http://www.dynamicdrive.com/link.htm">Link to DD</a><br /> - <a href="http://www.dynamicdrive.com/recommendit/">Recommend Us</a><br /> - <a href="http://www.dynamicdrive.com/contact.htm">Email Us</a><br /> --> </a></span> </div>
EmoticonEmoticon