HTML右键菜单
2020-02-16 18:32
316 查看
<!DOCTYPE html>
<html lang="zh"><head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>超实用jQuery右键菜单DEMO演示</title>
<link rel="stylesheet" type="text/css" href="bootstrap-3.3.6/css/bootstrap.min.css" />
<style type="text/css">
body, html { font-size: 100%; padding: 0; margin: 0;}
</style>
</head>
<body>
<div style="text-align:center;clear:both">
<script src="/gg_bd_ad_720x90.js" type="text/javascript"></script>
<script src="/follow.js" type="text/javascript"></script>
</div>
<div class="container" style="margin-top:20px;">
<div class="panel panel-primary">
<div class="panel-heading">jQuery Contextify Demo</div>
<div class="panel-body">
使用右键点击这里
</div>
</div>
</div>
<script src="js/jquery-2.1.1.min.js" type="text/javascript"></script>
<script src="src/jquery.contextify.js"></script>
<script>
var options = {items:[
{header: '右键功能菜单'},
{divider: true},
{text: '第一个链接', href: '#'},
{text: '第二个链接', onclick: function() {alert("你点击了第二个链接")}},
{text: '第三个链接', onclick: function() {alert("你点击了第3个链接")}},
{text: '第四个链接', onclick: function() {alert("你点击了第4个链接")}},
{divider: true},
{text: '更多...', href: '#'}
]}
$('.panel-body').contextify(options);
</script>
</body>
</html>
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- html开发环境搭建
- 【你没发现Github的隐藏功能之】预览html网页效果
- HTML简介
- 三天HTML入门
- 近来对html学习的浅谈和认识实践
- html登录界面
- html控件、html服务器控件等的区别详解
- Brain storming a method of validating a HTML table's content with Watir-webdrive
- HTM载入报错:XHTML 1.0 检验 -- HTML 标签不识别
- Servlet,html实现定时刷新到另外一个页面
- 将ajax获取的内容添加到HTML后如何操作DOM修改属性
- 关于HTML学习整理(一)
- HTML—项目实战(注册界面的设计以及实现)
- element.insertAdjacentHTML的用法
- HTML常用标签
- html的标签,为图片添加自定义热点!
- 前端面试知识点汇总 - HTML
- HTML 在线播放flv、MP4 超简单插件----flowplayer
- HTML基础
- html课后笔记