jQM Template
by Dragan Gaić
HTML
<link rel="stylesheet" href="http://jeromeetienne.github.com/jquery-mobile-960/css/jquery-mobile-fluid960.css">
<script src="http://timeago.yarp.com/jquery.timeago.js"></script>
<script src="http://imakewebthings.github.com/jquery-waypoints/waypoints.min.js"></script>
<!DOCTYPE html>
<html>
<head>
<title>jQM Complex Demo</title>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; minimum-scale=1.0; user-scalable=no; target-densityDpi=device-dpi"/>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" />
<!--<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>-->
<script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>
</head>
<body>
<div data-role="page" id="Mycom" class="background">
<div data-role="header" class= "header" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="content">
<center>
<h2 >Headlines</></h2>
<div>
<a href="#" id="indrotate"><img src="http://howtopottytrainapuppydog.net/wp-content/uploads/2012/02/puppy-vinegar-water-training.jpg" style="width:60%;z-index:0;margin-bottom:-30% !important;margin-left:70% !important;" /></a>
<img src="SlicedImages/bground2.png" id="indimage" style="height:auto; max-height:80%; width:auto; max-width:90%;" />
</div>
</center>
<center>
<a href="#" data-role="none" data-inline="true" data-transition="none" ><img src="Image/Next.png" width="200px" height ="10%"></a>
</center>
</div>
</div><!-- ind Page end -->
...
JavaScript
$(document).on('pagebeforeshow', '#Mycom', function(){
$(document).on('click','#indrotate',function(){
alert("indrotate");
});
});