forked from marghoobsuleman/ms-Dropdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest-ui.html
131 lines (116 loc) · 5.61 KB
/
test-ui.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Image Dropdown</title>
<link rel="stylesheet" type="text/css" href="msdropdown/dd.css" />
<script type="text/javascript" src="msdropdown/js/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="msdropdown/js/uncompressed.jquery.dd.js"></script>
<style type="text/css">
.toplinks{ font-family:Arial, Helvetica, sans-serif;
font-size:12px;
background-color: #777777;
color:#fff;
border-bottom:2px solid #c3c3c3;
margin-bottom:10px;
padding-bottom:10px;
}
.toplinks a, .toplinks a :visited{color:#FFF;}
.small{font-size:10px; line-height:12px; color:#006; font-weight:normal; font-family:Arial, Helvetica, sans-serif; position:relative; top:-10px}
</style>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.8.18/themes/base/jquery-ui.css" type="text/css" media="all" />
<script src="http://code.jquery.com/ui/1.8.18/jquery-ui.min.js" type="text/javascript"></script>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="toplinks">
<tr>
<td width="11%"><strong><a href="normal.html">Simple</a></strong></td>
<td width="16%"><a href="cssSprite.html"><strong>CSS Sprite</strong></a></td>
<td width="18%"><a href="multipleSkin.html"><strong>Multiple skin</strong></a></td>
<td width="17%"><a href="objectOriented.html"><strong>Object Oriented Approch</strong></a></td>
<td width="18%"><a href="ajax-main.html"><strong>Ajax Call</strong></a></td>
<td width="20%"><a href="mouse-events.html"><strong>Mouse Events</strong></a></td>
</tr>
</table>
<form name="myform" id="myform" action="getvalue.php" enctype="multipart/form-data" method="post">
<h1>Javascript image dropdown <span id="ver"></span> <a class="small" href="http://www.marghoobsuleman.com/jquery-image-dropdown" title="Download">Download</a> </h1>
<p>
<select style="width:200px" class="mydds" name="myimge">
<option value="calendar" selected="selected" title="icons/icon_calendar.gif">Calendar</option>
<option value="shopping_cart" title="icons/icon_cart.gif">Shopping Cart</option>
<option value="cd" title="icons/icon_cd.gif">CD</option>
<option value="email" title="icons/icon_email.gif">Email</option>
<option value="faq" title="icons/icon_faq.gif">FAQ</option>
<option value="games" title="icons/icon_games.gif">Games</option>
<option value="music" title="icons/icon_music.gif">Music</option>
<option value="phone" title="icons/icon_phone.gif">Phone</option>
<option value="graph" title="icons/icon_sales.gif">Graph</option>
<option value="secured" title="icons/icon_secure.gif">Secured</option>
<option value="video" title="icons/icon_video.gif">Video</option>
</select>
<br />
<br />
</p>
<p id="dpholder" >
<h3>With title: used json style in title attribute. ie: title="{image:'icons/icon_cart.gif', title:'Shopping Cart'}" </h3>
<select style="width:200px" class="mydds" name="myimge">
<option value="calendar" selected="selected" title="{image:'icons/icon_calendar.gif', title:'Calendar'}">Calendar</option>
<option value="shopping_cart" title="{image:'icons/icon_cart.gif', title:'Shopping Cart'}">Shopping Cart</option>
<option value="cd" title="{image:'icons/icon_cd.gif', title:'CD'}">CD</option>
<option value="email" title="{image:'icons/icon_email.gif', title:'Email'}">Email</option>
<option value="faq" title="{image:'icons/icon_faq.gif', title:'FAQ'}">FAQ</option>
<option value="games" title="{image:'icons/icon_games.gif', title:'Games'}">Games</option>
<option value="music" title="{image:'icons/icon_music.gif', title:'Music'}">Music</option>
<option value="phone" title="{image:'icons/icon_phone.gif', title:'Phone'}">Phone</option>
<option value="graph" title="{image:'icons/icon_sales.gif', title:'Graph'}">Graph</option>
<option value="secured" title="{image:'icons/icon_secure.gif', title:'Secured'}">Secured</option>
<option value="video" title="{image:'icons/icon_video.gif', title:'Video'}">Video</option>
</select>
<br />
<br />
</p>
<p style="clear:both">
<input type="submit" value="Submit Value" />
</p>
<div style="border:1px solid #c3c3c3; padding:50px; width:200px; background:#fff" id="draggable">
Used jQuery UI - Drag me
</div>
</form>
<script language="javascript" type="text/javascript">
function showvalue(arg) {
alert(arg);
//arg.visible(false);
}
$(document).ready(function() {
try {
oHandler = $(".mydds").msDropDown().data("dd");
//oHandler.visible(true);
//alert($.msDropDown.version);
//$.msDropDown.create("body select");
$("#ver").html($.msDropDown.version);
} catch(e) {
alert("Error: "+e.message);
}
$( "#draggable" ).draggable();
})
/*
$(document).bind("keydown", function() {
console.log("document keydown");
})
*/
</script>
<div class="node-links" style="padding:10px; border:1px solid #c3c3c3;background:#222222; margin-top:40px">
<div class="adsense">
<script type="text/javascript"><!--
google_ad_client = "pub-7681689922712917";
/* 468x15 */
google_ad_slot = "4604426671";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<!--script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script-->
</div>
</div>
</body>
</html>