ms-dropdown-rails 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. data/.document +5 -0
  2. data/.rspec +1 -0
  3. data/GPL-LICENSE.txt +278 -0
  4. data/Gemfile +9 -0
  5. data/Gemfile.lock +37 -0
  6. data/LICENSE.txt +20 -0
  7. data/MIT-LICENSE.txt +20 -0
  8. data/README.md +200 -0
  9. data/Rakefile +49 -0
  10. data/Readme.txt +10 -0
  11. data/VERSION +1 -0
  12. data/lib/ms-dropdown-rails.rb +7 -0
  13. data/ms-dropdown-rails.gemspec +130 -0
  14. data/spec/README +0 -0
  15. data/spec/ajax-cd.html +2 -0
  16. data/spec/ajax-date.html +2 -0
  17. data/spec/ajax-json.html +1 -0
  18. data/spec/ajax-main.html +142 -0
  19. data/spec/ajax-shoppingcart.html +2 -0
  20. data/spec/cssSprite.html +95 -0
  21. data/spec/getvalue.php +17 -0
  22. data/spec/icons/1273404841_tick_16.png +0 -0
  23. data/spec/icons/Thumbs.db +0 -0
  24. data/spec/icons/button-large.gif +0 -0
  25. data/spec/icons/demoaction.jpg +0 -0
  26. data/spec/icons/enabled.gif +0 -0
  27. data/spec/icons/giftlelo_dot_com.jpg +0 -0
  28. data/spec/icons/icon_calendar.gif +0 -0
  29. data/spec/icons/icon_cart.gif +0 -0
  30. data/spec/icons/icon_cd.gif +0 -0
  31. data/spec/icons/icon_email.gif +0 -0
  32. data/spec/icons/icon_faq.gif +0 -0
  33. data/spec/icons/icon_games.gif +0 -0
  34. data/spec/icons/icon_lockopen.gif +0 -0
  35. data/spec/icons/icon_music.gif +0 -0
  36. data/spec/icons/icon_phone.gif +0 -0
  37. data/spec/icons/icon_sales.gif +0 -0
  38. data/spec/icons/icon_secure.gif +0 -0
  39. data/spec/icons/icon_video.gif +0 -0
  40. data/spec/icons/jquery-msdropdown.gif +0 -0
  41. data/spec/icons/msDropDown.gif +0 -0
  42. data/spec/icons/preview.gif +0 -0
  43. data/spec/icons/sprite.gif +0 -0
  44. data/spec/icons/sprite.jpg +0 -0
  45. data/spec/icons/tick.gif +0 -0
  46. data/spec/images/Thumbs.db +0 -0
  47. data/spec/images/icon-arrow.gif +0 -0
  48. data/spec/images/icon-ok.gif +0 -0
  49. data/spec/images/msDropDown.gif +0 -0
  50. data/spec/index.html +85 -0
  51. data/spec/mouse-events.html +427 -0
  52. data/spec/ms-dropdown-rails_spec.rb +7 -0
  53. data/spec/msdropdown/Thumbs.db +0 -0
  54. data/spec/msdropdown/dd.css +172 -0
  55. data/spec/msdropdown/dd_arrow.gif +0 -0
  56. data/spec/msdropdown/js/jquery-1.3.2.min.js +19 -0
  57. data/spec/msdropdown/js/jquery-1.6.1.min.js +18 -0
  58. data/spec/msdropdown/js/jquery-1.7.1.min.js +4 -0
  59. data/spec/msdropdown/js/jquery-1.7.2.min.js +4 -0
  60. data/spec/msdropdown/js/jquery.dd.js +11 -0
  61. data/spec/msdropdown/js/jquery.dd.min.js +1 -0
  62. data/spec/msdropdown/js/test.js +79 -0
  63. data/spec/msdropdown/js/uncompressed.jquery.dd.js +1110 -0
  64. data/spec/multipleSkin.html +112 -0
  65. data/spec/normal.html +127 -0
  66. data/spec/objectOriented.html +200 -0
  67. data/spec/spec_helper.rb +12 -0
  68. data/spec/test-ui.html +131 -0
  69. data/updates.txt +7 -0
  70. data/vendor/assets/images/ms-dropdown/dd_arrow.gif +0 -0
  71. data/vendor/assets/images/ms-dropdown/icon-arrow.gif +0 -0
  72. data/vendor/assets/images/ms-dropdown/icon-ok.gif +0 -0
  73. data/vendor/assets/images/ms-dropdown/msDropDown.gif +0 -0
  74. data/vendor/assets/images/ms-dropdown/sprite.gif +0 -0
  75. data/vendor/assets/images/ms-dropdown/sprite.jpg +0 -0
  76. data/vendor/assets/javascripts/jquery.dd.js +11 -0
  77. data/vendor/assets/javascripts/jquery.dd.min.js +1 -0
  78. data/vendor/assets/javascripts/uncompressed.jquery.dd.js +1110 -0
  79. data/vendor/assets/stylesheets/ms-dropdown/dd.css +172 -0
  80. metadata +210 -0
@@ -0,0 +1,49 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
+ gem.name = "ms-dropdown-rails"
18
+ gem.homepage = "http://github.com/kristianmandrup/ms-dropdown-rails"
19
+ gem.license = "MIT"
20
+ gem.summary = %Q{Jquery ms-dropdown plugin for Rails asset pipeline}
21
+ gem.description = %Q{Use the ms-dropdown (select dropdown with icons) in your Rails project :)}
22
+ gem.email = "kmandrup@gmail.com"
23
+ gem.authors = ["Kristian Mandrup"]
24
+ # dependencies defined in Gemfile
25
+ end
26
+ Jeweler::RubygemsDotOrgTasks.new
27
+
28
+ require 'rspec/core'
29
+ require 'rspec/core/rake_task'
30
+ RSpec::Core::RakeTask.new(:spec) do |spec|
31
+ spec.pattern = FileList['spec/**/*_spec.rb']
32
+ end
33
+
34
+ RSpec::Core::RakeTask.new(:rcov) do |spec|
35
+ spec.pattern = 'spec/**/*_spec.rb'
36
+ spec.rcov = true
37
+ end
38
+
39
+ task :default => :spec
40
+
41
+ require 'rdoc/task'
42
+ Rake::RDocTask.new do |rdoc|
43
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
44
+
45
+ rdoc.rdoc_dir = 'rdoc'
46
+ rdoc.title = "ms-dropdown-rails #{version}"
47
+ rdoc.rdoc_files.include('README*')
48
+ rdoc.rdoc_files.include('lib/**/*.rb')
49
+ end
@@ -0,0 +1,10 @@
1
+ You may use msDropDown under the terms of either the MIT License or
2
+ the Gnu General Public License (GPL) Version 2.
3
+
4
+ The MIT License is recommended for most projects.
5
+ It is simple and easy to understand, and it places almost no restrictions on what you can do with msDropDown.
6
+
7
+ If the GPL suits your project better, you are also free to use msDropDown under that license.
8
+
9
+ You don't have to do anything special to choose one license or the other, and you don't have to notify anyone which license you are using.
10
+
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
@@ -0,0 +1,7 @@
1
+ module MsDropDown
2
+ module Rails
3
+ # adds vendor/assets to Rails Asset pipeline
4
+ class Engine < ::Rails::Engine
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,130 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "ms-dropdown-rails"
8
+ s.version = "0.1.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Kristian Mandrup"]
12
+ s.date = "2012-10-24"
13
+ s.description = "Use the ms-dropdown (select dropdown with icons) in your Rails project :)"
14
+ s.email = "kmandrup@gmail.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.md"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".rspec",
22
+ "GPL-LICENSE.txt",
23
+ "Gemfile",
24
+ "Gemfile.lock",
25
+ "LICENSE.txt",
26
+ "MIT-LICENSE.txt",
27
+ "README.md",
28
+ "Rakefile",
29
+ "Readme.txt",
30
+ "VERSION",
31
+ "lib/ms-dropdown-rails.rb",
32
+ "ms-dropdown-rails.gemspec",
33
+ "spec/README",
34
+ "spec/ajax-cd.html",
35
+ "spec/ajax-date.html",
36
+ "spec/ajax-json.html",
37
+ "spec/ajax-main.html",
38
+ "spec/ajax-shoppingcart.html",
39
+ "spec/cssSprite.html",
40
+ "spec/getvalue.php",
41
+ "spec/icons/1273404841_tick_16.png",
42
+ "spec/icons/Thumbs.db",
43
+ "spec/icons/button-large.gif",
44
+ "spec/icons/demoaction.jpg",
45
+ "spec/icons/enabled.gif",
46
+ "spec/icons/giftlelo_dot_com.jpg",
47
+ "spec/icons/icon_calendar.gif",
48
+ "spec/icons/icon_cart.gif",
49
+ "spec/icons/icon_cd.gif",
50
+ "spec/icons/icon_email.gif",
51
+ "spec/icons/icon_faq.gif",
52
+ "spec/icons/icon_games.gif",
53
+ "spec/icons/icon_lockopen.gif",
54
+ "spec/icons/icon_music.gif",
55
+ "spec/icons/icon_phone.gif",
56
+ "spec/icons/icon_sales.gif",
57
+ "spec/icons/icon_secure.gif",
58
+ "spec/icons/icon_video.gif",
59
+ "spec/icons/jquery-msdropdown.gif",
60
+ "spec/icons/msDropDown.gif",
61
+ "spec/icons/preview.gif",
62
+ "spec/icons/sprite.gif",
63
+ "spec/icons/sprite.jpg",
64
+ "spec/icons/tick.gif",
65
+ "spec/images/Thumbs.db",
66
+ "spec/images/icon-arrow.gif",
67
+ "spec/images/icon-ok.gif",
68
+ "spec/images/msDropDown.gif",
69
+ "spec/index.html",
70
+ "spec/mouse-events.html",
71
+ "spec/ms-dropdown-rails_spec.rb",
72
+ "spec/msdropdown/Thumbs.db",
73
+ "spec/msdropdown/dd.css",
74
+ "spec/msdropdown/dd_arrow.gif",
75
+ "spec/msdropdown/js/jquery-1.3.2.min.js",
76
+ "spec/msdropdown/js/jquery-1.6.1.min.js",
77
+ "spec/msdropdown/js/jquery-1.7.1.min.js",
78
+ "spec/msdropdown/js/jquery-1.7.2.min.js",
79
+ "spec/msdropdown/js/jquery.dd.js",
80
+ "spec/msdropdown/js/jquery.dd.min.js",
81
+ "spec/msdropdown/js/test.js",
82
+ "spec/msdropdown/js/uncompressed.jquery.dd.js",
83
+ "spec/multipleSkin.html",
84
+ "spec/normal.html",
85
+ "spec/objectOriented.html",
86
+ "spec/spec_helper.rb",
87
+ "spec/test-ui.html",
88
+ "updates.txt",
89
+ "vendor/assets/images/ms-dropdown/dd_arrow.gif",
90
+ "vendor/assets/images/ms-dropdown/icon-arrow.gif",
91
+ "vendor/assets/images/ms-dropdown/icon-ok.gif",
92
+ "vendor/assets/images/ms-dropdown/msDropDown.gif",
93
+ "vendor/assets/images/ms-dropdown/sprite.gif",
94
+ "vendor/assets/images/ms-dropdown/sprite.jpg",
95
+ "vendor/assets/javascripts/jquery.dd.js",
96
+ "vendor/assets/javascripts/jquery.dd.min.js",
97
+ "vendor/assets/javascripts/uncompressed.jquery.dd.js",
98
+ "vendor/assets/stylesheets/ms-dropdown/dd.css"
99
+ ]
100
+ s.homepage = "http://github.com/kristianmandrup/ms-dropdown-rails"
101
+ s.licenses = ["MIT"]
102
+ s.require_paths = ["lib"]
103
+ s.rubygems_version = "1.8.24"
104
+ s.summary = "Jquery ms-dropdown plugin for Rails asset pipeline"
105
+
106
+ if s.respond_to? :specification_version then
107
+ s.specification_version = 3
108
+
109
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
110
+ s.add_development_dependency(%q<rspec>, [">= 2.8.0"])
111
+ s.add_development_dependency(%q<rdoc>, [">= 3.12"])
112
+ s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
113
+ s.add_development_dependency(%q<jeweler>, [">= 1.8.4"])
114
+ s.add_development_dependency(%q<simplecov>, [">= 0.5"])
115
+ else
116
+ s.add_dependency(%q<rspec>, [">= 2.8.0"])
117
+ s.add_dependency(%q<rdoc>, [">= 3.12"])
118
+ s.add_dependency(%q<bundler>, [">= 1.0.0"])
119
+ s.add_dependency(%q<jeweler>, [">= 1.8.4"])
120
+ s.add_dependency(%q<simplecov>, [">= 0.5"])
121
+ end
122
+ else
123
+ s.add_dependency(%q<rspec>, [">= 2.8.0"])
124
+ s.add_dependency(%q<rdoc>, [">= 3.12"])
125
+ s.add_dependency(%q<bundler>, [">= 1.0.0"])
126
+ s.add_dependency(%q<jeweler>, [">= 1.8.4"])
127
+ s.add_dependency(%q<simplecov>, [">= 0.5"])
128
+ end
129
+ end
130
+
File without changes
@@ -0,0 +1,2 @@
1
+ <h1>ajax-cd.html</h1>
2
+ <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
@@ -0,0 +1,2 @@
1
+ <h1>ajax-date.html</h1>
2
+ <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
@@ -0,0 +1 @@
1
+ [{text:'Lorem', value:'5', title:'icons/enabled.gif'},{text:'Ipsum', value:'6',title:'icons/enabled.gif'}]
@@ -0,0 +1,142 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
+ <title>Image Dropdown</title>
6
+ <link rel="stylesheet" type="text/css" href="msdropdown/dd.css" />
7
+ <script type="text/javascript" src="msdropdown/js/jquery-1.6.1.min.js"></script>
8
+ <script type="text/javascript" src="msdropdown/js/uncompressed.jquery.dd.js"></script>
9
+ <style type="text/css">
10
+ .toplinks{ font-family:Arial, Helvetica, sans-serif;
11
+ font-size:12px;
12
+ background-color: #777777;
13
+ color:#fff;
14
+ border-bottom:2px solid #c3c3c3;
15
+ margin-bottom:10px;
16
+ padding-bottom:10px;
17
+ }
18
+ .toplinks a, .toplinks a :visited{color:#FFF;}
19
+ .small{font-size:10px; line-height:12px; color:#006; font-weight:normal; font-family:Arial, Helvetica, sans-serif; position:relative; top:-10px}
20
+
21
+ </style>
22
+ <script type="text/javascript">
23
+ var oHandler, oHandler2; //will be used below
24
+ var counter = 0;
25
+ var h = 1;
26
+ function loadAjaxFile(val) {
27
+ //console.debug(val);
28
+ var url = val;
29
+ if(parseInt(url)==0 || parseInt(url)>4) {
30
+ return false;
31
+ };
32
+ if(url=='4') {
33
+ url = 'ajax-json.html';
34
+ }
35
+ $("#contenP").html("loading...");
36
+ $.ajax({
37
+ url:url,
38
+ type:'get',
39
+ success: function(res) {
40
+ $("#contenP").html(res);
41
+ if(val=='4') {
42
+ //this adds new options
43
+ var json_data = eval(res);
44
+ counter++;
45
+ for(var i=0;i<json_data.length;i++) {
46
+ json_data[i].text = json_data[i].text +" " + (counter);
47
+ oHandler2.add(json_data[i]);//adding
48
+ }
49
+ oHandler2.showRows(json_data.length*h);
50
+ h++;
51
+ //remove first item
52
+ if(counter==1) {
53
+ oHandler2.remove(0);
54
+ }
55
+ $("#contenP").append("<p>New menu has been added in dropdown. Scroll down to see.</p>");
56
+ //alert(json_data)
57
+ }
58
+ }
59
+ })
60
+ }
61
+ </script>
62
+ </head>
63
+ <body>
64
+
65
+
66
+ <table width="100%" border="0" cellspacing="0" cellpadding="5" class="toplinks">
67
+ <tr>
68
+ <td width="11%"><strong><a href="normal.html">Simple</a></strong></td>
69
+ <td width="16%"><a href="cssSprite.html"><strong>CSS Sprite</strong></a></td>
70
+ <td width="18%"><a href="multipleSkin.html"><strong>Multiple skin</strong></a></td>
71
+ <td width="17%"><a href="objectOriented.html"><strong>Object Oriented Approch</strong></a></td>
72
+ <td width="18%"><a href="ajax-main.html"><strong>Ajax Call</strong></a></td>
73
+ <td width="20%"><a href="mouse-events.html"><strong>Mouse Events</strong></a></td>
74
+ </tr>
75
+ </table>
76
+ <form name="myform" id="myform" action="getvalue.php" enctype="multipart/form-data" method="post">
77
+ <h1>Javascript image dropdown <span id="ver"></span> <a class="small" href="http://www.marghoobsuleman.com/jquery-image-dropdown" title="Download">Download</a> </h1>
78
+ <table width="100%" border="0" cellspacing="0" cellpadding="2">
79
+ <tr>
80
+ <td width="10%">&nbsp;</td>
81
+ <td>&nbsp;
82
+ Data will added in this dropdown: (choose <strong>Add dynamic json </strong>from the left dropdown)</td>
83
+ </tr>
84
+ <tr>
85
+ <td><select class="mydds" name="ajaxdd" id="ajaxdd" onchange="loadAjaxFile(this.value)">
86
+ <option value="0" selected="selected">Choose One</option>
87
+ <option value="ajax-date.html" title="icons/icon_calendar.gif">Load date file</option>
88
+ <option style="background:#333;color:#fff" value="ajax-shoppingcart.html" title="icons/icon_cart.gif">Load shopping cart</option>
89
+ <option value="ajax-cd.html" title="icons/icon_cd.gif">Load CD file</option>
90
+ <option value="4" title="icons/enabled.gif">Add dynamic json data</option>
91
+ </select></td>
92
+ <td><select class="mydds" name="dynamic" id="dynamic">
93
+ <option value="0" selected="selected">Will be added later</option>
94
+ </select></td>
95
+ </tr>
96
+ </table>
97
+ <p>&nbsp; </p>
98
+ <p>&nbsp;</p>
99
+ <div id="contenP">
100
+
101
+ </div>
102
+ <p>
103
+ <input type="submit" value="Submit Value" />
104
+ </p>
105
+ </form>
106
+ <script language="javascript" type="text/javascript">
107
+
108
+ function showvalue(arg) {
109
+ alert(arg);
110
+ //arg.visible(false);
111
+ }
112
+ $(document).ready(function() {
113
+
114
+ try {
115
+ oHandler = $("#ajaxdd").msDropDown().data("dd");
116
+ oHandler2 = $("#dynamic").msDropDown().data("dd");
117
+ //oHandler.visible(true);
118
+ //alert($.msDropDown.version);
119
+ //$.msDropDown.create("body select");
120
+ $("#ver").html($.msDropDown.version);
121
+ } catch(e) {
122
+ alert("Error: "+e.message);
123
+ }
124
+ })
125
+
126
+ </script>
127
+ <div class="node-links" style="padding:10px; border:1px solid #c3c3c3;background:#222222; margin-top:40px">
128
+ <div class="adsense">
129
+ <script type="text/javascript"><!--
130
+ google_ad_client = "pub-7681689922712917";
131
+ /* 468x15 */
132
+ google_ad_slot = "4604426671";
133
+ google_ad_width = 468;
134
+ google_ad_height = 15;
135
+ //-->
136
+ </script>
137
+ <!--script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script-->
138
+ </div>
139
+ </div>
140
+
141
+ </body>
142
+ </html>
@@ -0,0 +1,2 @@
1
+ <h1>ajax-shoppingcart.html</h1>
2
+ <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
@@ -0,0 +1,95 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
+ <title>Image Dropdown</title>
6
+ <link rel="stylesheet" type="text/css" href="msdropdown/dd.css" />
7
+ <script type="text/javascript" src="msdropdown/js/jquery-1.6.1.min.js"></script>
8
+ <script type="text/javascript" src="msdropdown/js/uncompressed.jquery.dd.js"></script>
9
+ <style type="text/css">
10
+ .toplinks {font-family:Arial, Helvetica, sans-serif;
11
+ font-size:12px;
12
+ background-color: #777777;
13
+ color:#fff;
14
+ border-bottom:2px solid #c3c3c3;
15
+ margin-bottom:10px;
16
+ padding-bottom:10px;
17
+ }
18
+ .toplinks a, .toplinks a :visited{color:#FFF;}
19
+ .small{font-size:10px; line-height:12px; color:#006; font-weight:normal; font-family:Arial, Helvetica, sans-serif; position:relative; top:-10px}
20
+
21
+ </style>
22
+ </head>
23
+ <body>
24
+
25
+ <table width="100%" border="0" cellspacing="0" cellpadding="5" class="toplinks">
26
+ <tr>
27
+ <td width="11%"><strong><a href="normal.html">Simple</a></strong></td>
28
+ <td width="16%"><a href="cssSprite.html"><strong>CSS Sprite</strong></a></td>
29
+ <td width="18%"><a href="multipleSkin.html"><strong>Multiple Skin</strong></a></td>
30
+ <td width="17%"><a href="objectOriented.html"><strong>Object Oriented Approch</strong></a></td>
31
+ <td width="18%"><a href="ajax-main.html"><strong>Ajax Call</strong></a></td>
32
+ <td width="20%"><a href="mouse-events.html"><strong>Mouse Events</strong></a></td>
33
+ </tr>
34
+ </table>
35
+ <form name="myform" id="myform" action="getvalue.php" enctype="multipart/form-data" method="post">
36
+ <h1>Javascript image dropdown <span id="ver"></span> <a class="small" href="http://www.marghoobsuleman.com/jquery-image-dropdown" title="Download">Download</a> </h1>
37
+ <p>
38
+ <select name="websites1" id="websites1" style="width:200px;" >
39
+ <option class="calendar" value="calendar">Calendar</option>
40
+ <option class="shoppingcart" value="shopping_cart">Shopping Cart</option>
41
+ <option class="cd" value="cd">CD</option>
42
+ <option class="email" value="email">Email</option>
43
+ <option class="faq" value="faq">FAQ</option>
44
+ <option class="games" value="games">Games</option>
45
+ <option class="music" value="music">Music</option>
46
+ <option class="phone" value="phone">Phone</option>
47
+ <option class="graph" value="graph">Graph</option>
48
+ <option class="secured" value="secured">Secured</option>
49
+ <option class="video" value="video">Video</option>
50
+ </select>
51
+ </p>
52
+ <p>
53
+ <br />
54
+ <br />
55
+ <input type="submit" value="Submit Value" />
56
+ <br />
57
+ </p>
58
+ </form>
59
+ <script language="javascript" type="text/javascript">
60
+
61
+ function showvalue(arg) {
62
+ alert(arg);
63
+ //arg.visible(false);
64
+ }
65
+ var oHandler;
66
+ $(document).ready(function() {
67
+
68
+ try {
69
+ //$("body select").msDropDown();
70
+ oHandler = $("#websites1").msDropDown({useSprite:'sprite'}).data("dd");
71
+ $("#ver").html($.msDropDown.version);
72
+ } catch(e) {
73
+ alert("Error: "+e.message);
74
+ }
75
+ })
76
+
77
+
78
+ </script>
79
+
80
+ <div class="node-links" style="padding:10px; border:1px solid #c3c3c3;background:#222222; margin-top:40px">
81
+ <div class="adsense">
82
+ <script type="text/javascript"><!--
83
+ google_ad_client = "pub-7681689922712917";
84
+ /* 468x15 */
85
+ google_ad_slot = "4604426671";
86
+ google_ad_width = 468;
87
+ google_ad_height = 15;
88
+ //-->
89
+ </script>
90
+ <!--script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script-->
91
+ </div>
92
+ </div>
93
+
94
+ </body>
95
+ </html>