1var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null; 2with(g_oPopupMenu){ 3addItem("1007", "Darmreinigungsmittel_20Produkte", "/darmreinigungen-produkte/index.html", 1, "", 1, ""); 4addItem("10032", "Vitalprodukte", "/vitalprodukte/index.html", 1, "", 1, ""); 5}; 6 7var m_sSelectedOptionValue = '0'; 8function printCatnavDropdown(){ 9 document.write('<select id="catdropdown" style="width:100%"></select>'); 10 SMShop.base.addMember("CatnavDropdown"); 11}; 12 13function CatnavDropdown_windowOnLoad(args){ 14 var oItems = g_oPopupMenu.selectItems(0, true); 15 var selCatDropDown = $('catdropdown'),oOption = null, sDepth = ''; 16 17 if(m_sSelectedOptionValue == '0'){ 18 oOption = selCatDropDown[selCatDropDown.length] = new Option(); 19 with(oOption){ 20 selected='selected'; 21 text='<Warengruppen>'; 22 value = '0'; 23 } 24 }; 25 26 oItems.each(function(oItem) { 27 sDepth = ''; for(var i=1;i<parseInt(oItem.depth);i++) sDepth += '-'; 28 oOption = selCatDropDown[selCatDropDown.length] = new Option(); 29 with(oOption){ 30 if(oItem.id == m_sSelectedOptionValue) selected = 'selected'; 31 text = sDepth + ' ' + oItem.caption; 32 value = oItem.id; 33 }} 34 ); 35 36 selCatDropDown.onchange = function(){ 37 var oItem = g_oPopupMenu.selectSingleItem(this.value); 38 39 location.href = SMOMAbsoluteRootURL + oItem.url; 40 41 }; 42};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.