gongpex Posted January 6, 2015 Share Posted January 6, 2015 (edited) Hello everyone A few month ago I had tried to take jscrollpane (jquery for to change iframe scrollbar) from this site : jscrollpane I had followed some instruction on there, but the code didn't work, so I think there is some mistake or incomplete instruction there. A : please someone help me to check this Thanks. Edited January 6, 2015 by gong Link to comment Share on other sites More sharing options...
Ingolme Posted January 6, 2015 Share Posted January 6, 2015 You haven't shown any code or error messages, so I'll have to make guesses. You mentioned iframes. Here's their demo: http://jscrollpane.kelvinluck.com/iframe.html It says that if you're using iframes you have to put the code on the page that's being loaded inside the iframe. If that's not your situation, then show what code you used, tell me what is occurring and what you expected it to do. Link to comment Share on other sites More sharing options...
gongpex Posted January 9, 2015 Author Share Posted January 9, 2015 sorry for long reply, because I'm very busy, ok here : <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="content-type" content="text/html; charset=windows-1252"> <title>jScrollPane mwheelIntent demo</title> <!-- styles needed by jScrollPane --> <link rel="stylesheet" href="style/jquery.jscrollpane.css" type="text/css" media="all" /> <style type="text/css"> /* Styles specific to this particular page */ .scroll-pane { width: 100%; height: 200px; overflow: auto; } .horizontal-only { height: auto; max-height: 200px; } </style> <!-- latest jQuery direct from google's CDN --> <!---<script type="text/javascript" src="C:/Users/wong/Desktop/jscrollpane/jquery-min.js"></script>---> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <!-- the mousewheel plugin - optional to provide mousewheel support --> <script type="text/javascript" src="script/jquery.mousewheel.js"></script> <!-- the jScrollPane script --> <script type="text/javascript" src="script/jquery.jscrollpane.min.js"></script> <script type="text/javascript"> $(function() { $('.scroll-pane').jScrollPane(); }); </script> </head> <body> <div id="container"> <h2>Horizontal only</h2> <div tabindex="0" style="overflow: hidden; padding: 0px; width: 760px;" class="scroll-pane"> <div style="width: 760px; height: 99px;" class="jspContainer"><div style="padding: 0px; width: 760px; left: 0px;" class="jspPane"> <p style="width: 1000px;"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec in ligula id sem tristique ultrices eget id neque. Duis enim turpis, tempus at accumsan vitae, lobortis id sapien. Pellentesque nec orci mi, in pharetra ligula. Nulla facilisi. Nulla facilisi. Mauris convallis venenatis massa, quis consectetur felis ornare quis. Sed aliquet nunc ac ante molestie ultricies. Nam pulvinar ultricies bibendum. Vivamus diam leo, faucibus et vehicula eu, molestie sit amet dui. Proin nec orci et elit semper ultrices. ###### sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Sed quis urna mi, ac dignissim mauris. Quisque mollis ornare mauris, sed laoreet diam malesuada quis. Proin vel elementum ante. Donec hendrerit arcu ac odio tincidunt posuere. Vestibulum nec risus eu lacus semper viverra. </p></div><div class="jspHorizontalBar"><div class="jspCap jspCapLeft"></div><div style="width: 760px;" class="jspTrack"><div style="width: 578px; left: 0px;" class="jspDrag"><div class="jspDragLeft"></div><div class="jspDragRight"></div></div></div><div class="jspCap jspCapRight"></div></div></div></div> </div> </body></html> note : please all of the .css and javascript / jquery file download it from : jscrollpane A : my expectation only so that the code will be run. Thanks Link to comment Share on other sites More sharing options...
justsomeguy Posted January 9, 2015 Share Posted January 9, 2015 Check your browser's console for error messages, and check the network tab to make sure that all files are being loaded. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now