/* FILE ARCHIVED ON 23:25:29 Oct 6, 2012 AND RETRIEVED FROM THE AN OPENWAYBACK INSTANCE ON 16:18:24 Sep 16, 2024. JAVASCRIPT APPENDED BY OPENWAYBACK, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /** * Dynamic Link Select Box * * Copyright (c) 2009 init AG * https://webarchive.library.unt.edu/web/20121006232529/http://www.init.de * */ /* (function($) { $.fn.linkselect = function() { this.each( function(a) { var initialSelection = $(this).children("li:first").html(); var menuId = $(this).id + "_mod"; var menuItemId = menuId + "_item"; var menuHtml = ''; var menuItemHtml = ''; $(this).before(menuHtml + menuItemHtml); $(this).hide(); var menuSelector = '#' + menuId; var menuItemSelector = '#' + menuItemId; $(menuSelector).click(function() { // show items list $(menuItemSelector).toggle(); // only care when the menu item is visible if ($(menuItemSelector).css("display") != "none") { var offset = $(this).offset(); $(menuItemSelector).css("left", offset.left + "px"); $(menuItemSelector).css("top", offset.top + 19 + "px"); // highlight item list that is currently selected var currentText = $(menuSelector + ' p').text(); $(menuItemSelector + ' p').each(function() { var itemListText = $(this).text(); if (itemListText == currentText) { $(this).addClass("selected"); } }); } }); }); } })(jQuery); */ /* * */