将jQuery菜单按钮链接到url
Link jQuery menu button to url
我有这个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,我该如何实现?
我写这行是因为它需要更好的代码解释,因为代码很长。。。(?)
function(){
window.location.href = 'http://domain.com/';
return false
}
相关文章:
- 将重定向URL链接添加到JS函数
- 我如何重新加载URL链接,在我点击提交按钮后它保持不变
- 如何摆脱AngularJS中的当前域URL链接
- Javascript:我如何自动打开链接中的url链接
- 如何在Javascript中用URL链接不同的幻灯片图像
- 获取javascript中的URL链接名称
- 用于浏览器检测和url链接的脚本
- 翻译一篇文章'上.单击'PHP中的事件,来自'window.open'到基本URL链接
- javascript替换url链接循环
- 带有JS点击相对路径的网页URL链接
- 使用javascript基于登录用户重定向URL链接
- 带有URL链接且无重复项的旋转横幅
- 有一些条形图不是高图表上的 url 链接
- 如何使用 css 元素从 java 添加 url 链接
- 如何通过 css 元素从 jquery 添加 url 链接
- 使用 JavaScript 动态显示 URL 链接
- 使用JS逻辑从自定义选项构建URL链接
- 使用URL链接加载弹出窗口
- 为文件夹[javascript]中的文件生成URL链接列表
- 将数据存储到URL链接中