1

我有这个 jQuery 菜单脚本:

<script type="text/javascript">
        jQuery(document).ready(function(){


            jQuery('#promo').pieMenu({icon : [
                    { 
                        path : "/wp-content/themes/Tersus/images/piemenu/winamp.png",
                        alt  : "Winamp",
                        fn   : function(){alert('Click:: Find');return false}
                    },  { 
                        path : "/wp-content/themes/Tersus/images/piemenu/vlc.png",
                        alt  : "VLC Media Player",
                        fn   : function(){alert('Click:: Plus');return false}   
                    },{ 
                        path : "/wp-content/themes/Tersus/images/piemenu/QuickTime.png",
                        alt  : "Quick Time Player",
                        fn   : function(){alert('Click:: Home');return false}
                    },{ 
                        path : "/wp-content/themes/Tersus/images/piemenu/WMP.png",
                        alt  : "Windows Media Player",
                        fn   : function(){alert('Click:: Music');return false}
                    },{ 
                        path : "/wp-content/themes/Tersus/images/piemenu/popup.png",
                        alt  : "נגן Popup",
                        fn   : function(){alert('Click: E-Mail');return false}
                    },{ 
                        path : "/wp-content/themes/Tersus/images/piemenu/iTunes.png",
                        alt  : "iTunes",
                        fn   : function(){alert('Click: Config');return false}

            });
        })
    </script>
                        },{ 

单击时我需要将图标链接到外部 URL,我该如何实现?

我写这行是因为它需要更好的代码解释,因为代码很长......(?)

4

1 回答 1

0
function(){       
   window.location.href = 'http://domain.com/'; 
   return false
}
于 2012-07-30T12:56:28.110 回答