我有這樣的jQuery的菜單腳本:鏈接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,我怎麼能做到這一點?
和我在寫這行,因爲它需要一個更好的代碼的解釋,因爲代碼很長......(?)
我們可以看到完整的代碼(也許甚至一的jsfiddle?) – SomeKittens 2012-07-30 12:55:16
是ofcourse..ill編輯在一秒 – Trance84 2012-07-30 12:59:08