Click here to Skip to main content
15,885,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to divide epaper in no of the regions and on mouse hover identify the region and on clicking open them. i just need few article on how this is achieved. below is the example how i want the things to be happened.

http://epaper.thehimalayantimes.com/[^]
Posted

1 solution

i have created one demo for you just check it.. :)

In this demo i have passed content and image url to mainDisplay div to display content of epaper,
here i have set same image url to main display div to display but you can set big image url instead of it.. :)



css

CSS
.SideBar
     {
         float: left;
         background-color: Red;
         width:10%;
     }
     .ContantDiv
     {
         width:90%;
         float: left;
         background-color: Yellow;
     }
     #MainDisplay
     {
         height:450px;
         width:100%;

         }


JAVASCRIPT


SET online link first <script type="text/javascript" src="http://code.jquery.com/jquery-1.11.1.min.js"></script>

JavaScript
function getimg(image,Content) {

          $("#MainDisplay").empty();
          $("#MainDisplay").append("<tr><td><img src="http://epaper.thehimalayantimes.com/EpaperImages/362014/362014-md-hr-"+image+"ss.jpg"></img></td></tr><tr><td>"+Content+"</td></tr>");

      }


HTML


HTML
<div>
        <div class="SideBar">
            <table>
                <tr>
                    <td>
                        <img class="selected"  önclick="getimg('5','content1');" id="spanthumbNumber5" src="http://epaper.thehimalayantimes.com/EpaperImages/362014/362014-md-hr-5ss.jpg">
                    </img></td>
                </tr>
                <tr>
                    <td>
                        <img class="selected"  önclick="getimg('6','content2');" id="Img1" src="http://epaper.thehimalayantimes.com/EpaperImages/362014/362014-md-hr-6ss.jpg">
                    </img></td>
                </tr>
               
            </table>
        </div>
        <div class="ContantDiv">
        <div id="MainDisplay">
        </div>
        </div>
    </div>
 
Share this answer
 
v2
Comments
thedinesh01 3-Jun-14 5:44am    
thanks for you effort but its so confusing i could not get it.. :(
thedinesh01 3-Jun-14 5:46am    
my main problem is how to crop same image at the multiple time..
thedinesh01 3-Jun-14 5:47am    
help me finding this solution. i am having nightmare doing this.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900