Skip to content

Commit

Permalink
JSLint Error Reduction, Minor Example Code Edits
Browse files Browse the repository at this point in the history
  • Loading branch information
bradchesney79 committed Jun 12, 2012
1 parent c82cbf0 commit 8d7a46a
Show file tree
Hide file tree
Showing 16 changed files with 1,192 additions and 20 deletions.
2 changes: 1 addition & 1 deletion cssSprite.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<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="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>
Expand Down
95 changes: 95 additions & 0 deletions cssSprite.html~
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
<!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>
</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 name="websites1" id="websites1" style="width:200px;" >
<option class="calendar" value="calendar">Calendar</option>
<option class="shoppingcart" value="shopping_cart">Shopping Cart</option>
<option class="cd" value="cd">CD</option>
<option class="email" value="email">Email</option>
<option class="faq" value="faq">FAQ</option>
<option class="games" value="games">Games</option>
<option class="music" value="music">Music</option>
<option class="phone" value="phone">Phone</option>
<option class="graph" value="graph">Graph</option>
<option class="secured" value="secured">Secured</option>
<option class="video" value="video">Video</option>
</select>
</p>
<p>
<br />
<br />
<input type="submit" value="Submit Value" />
<br />
</p>
</form>
<script language="javascript" type="text/javascript">

function showvalue(arg) {
alert(arg);
//arg.visible(false);
}
var oHandler;
$(document).ready(function() {

try {
//$("body select").msDropDown();
oHandler = $("#websites1").msDropDown({useSprite:'sprite'}).data("dd");
$("#ver").html($.msDropDown.version);
} catch(e) {
alert("Error: "+e.message);
}
})


</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>
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<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="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>
Expand Down
85 changes: 85 additions & 0 deletions index.html~
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<!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/jquery.dd.js"></script>
<script type="text/javascript" src="msdropdown/js/test.js"></script>
<style type="text/css">
body {
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
background-color: #fff;
color:#777;
}
.toplinks{ font-family:Arial, Helvetica, sans-serif;
font-size:12px;
background-color: #777777;
color:#fff;
}
.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>
</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>
<p>&nbsp;</p>
<br /><br />
<h1>Javascript image dropdown <span id="ver"></span> <a class="small" href="http://www.marghoobsuleman.com/jquery-image-dropdown" title="Download">Download</a> </h1>
<br />
<select name="websites2" id="websites2" style="width:258px;" tabindex="1">
<option name="one" value="msDropDown" selected="selected" title="images/icon-ok.gif">msDropDown</option>
<option name="two" value="PrototypeCombobox" title="images/icon-ok.gif">Prototype Combobox</option>
<option value="jQuery Tabs" title="images/icon-ok.gif">jQuery Tabs</option>
<option value="Common Accordion" title="images/icon-ok.gif">Common Accordion</option>
</select><br />
<br />
<br />


<br />
<br />

<script type="text/javascript">
$(document).ready(function() {

try {
oHandler = $("#websites2").msDropDown({mainCSS:'dd2'}).data("dd");
//alert($.msDropDown.version);
//$.msDropDown.create("body select");
$("#ver").html($.msDropDown.version);
} catch(e) {
alert("Error: "+e.message);
}
})

</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>
8 changes: 4 additions & 4 deletions mouse-events.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Image Dropdown</title>
<link rel="stylesheet" type="text/css" href="msdropdown/dd.css" />
<script type="text/javascript" src="msdropdown/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="msdropdown/js/jquery.dd.js"></script>
<script type="text/javascript" src="msdropdown/js/jquery.dd.min.js"></script>
<script type="text/javascript" src="msdropdown/js/test.js"></script>
<style type="text/css">
body{
Expand All @@ -32,7 +32,7 @@
<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="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>
Expand All @@ -56,8 +56,8 @@ <h1 id="selectedvalue">Select any dropdown </h1>
</tr>
<tr>
<td align="center" bgcolor="#f2f2f2"><div id="mainHolder" style="width:500px; background-color:#CCCCCC">
<input type="button" name="designView" id="designView" value="Desing View" onClick="$('#designhtml').show();$('#codehtml').hide();" style="width:100px; margin:10px" />
<input type="button" name="codeView" id="codeView" value="Code View" onClick="$('#designhtml').hide();$('#codes').text($('#designhtml').html());$('#codehtml').show();" style="width:100px; margin:10px" />
<input type="button" name="designView" id="designView" value="Design view" onClick="$('#designhtml').show();$('#codehtml').hide();" style="width:100px; margin:10px" />
<input type="button" name="codeView" id="codeView" value="Code view" onClick="$('#designhtml').hide();$('#codes').text($('#designhtml').html());$('#codehtml').show();" style="width:100px; margin:10px" />
<input type="button" name="convertBtn" id="convertBtn" value="Convert to image dropdown" onClick="convertNow('#designhtml select')" style="margin:10px" />
<div id="codehtml" class="hidden" style="height:500px; overflow:auto; border:1px solid #c3c3c3; width:500px; background-color:#FFFFFF">
<pre id="codes" style="overflow:auto">
Expand Down
Loading

0 comments on commit 8d7a46a

Please sign in to comment.