News:

Wondering if this will always be free?  See why free is better.

Main Menu

Adding Custom Scrollbar

Started by qubbah, October 20, 2014, 11:57:04 AM

Previous topic - Next topic

qubbah

Hi there...

How can we add a custom scrollbar...

i think to support custom scrollbar for all web browser we need to using javascript.

Hope anyone can suggest how to do? tq

Kindred

ummm.....  custom scrollbar... where?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."


Kindred

No idea.  I see nothing special thrre... Please be specific and clear when you make a request. So far, you have been neither
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

qubbah

example
echo  '<div style="width: 100%; height: 356px; overflow: auto">';
if (!isset($_GET['board']) || isset($_GET['topic']))
------------------------------------------------------------

i want to change scrollbar style to custom one.
its look like from http://baijs.nl/tinyscrollbar/ or http://manos.malihu.gr/repository/custom-scrollbar/demo/examples/scrollbar_themes_demo.html or etc... hope someone can help. tq

Boban ツ

first download attach file, and put in folder scripts in your theme

open index.template find:

<head>';

and replace with this:

<head>
<script type="text/javascript" src="', $settings['theme_url'], '/scripts/jquery.min.js"></script>
<script type="text/javascript" src="', $settings['theme_url'], '/scripts/jquery.nicescroll.min.js"></script>

<script>
$(document).ready(function() {
var nice = $("html").niceScroll();
$("#test").niceScroll({cursorborder:"",cursorcolor:"",boxzoom:true});
$("#version_details").niceScroll({cursorborder:"",cursorcolor:"",boxzoom:true});
$("#message").niceScroll({cursorborder:"",cursorcolor:"",boxzoom:true});
});
</script>';


open index.css and add this, that is a color for this http://i.imgur.com/F18VJYE.png

#ascrail2000 {
   background: #444444;
   border-left: 1px solid #000000;
}


you can also edit this, in jquery.nicescroll.min, that is a color for this http://i.imgur.com/Xw9heWt.png

color: cursorcolor:"#3587b6"
border: cursorborder:"0px solid #fff"
width: cursorwidth:"8px"
radius: cursorborderradius:"0px"

sorry for my bad english...:D

Powerd by: Nicescroll



   
   

qubbah

must i change

echo  '<div style="width: 100%; height: 356px; overflow: auto">';
if (!isset($_GET['board']) || isset($_GET['topic']))

to

echo  '<div class="ascrail2000" "width: 100%; height: 356px; overflow: auto">';
if (!isset($_GET['board']) || isset($_GET['topic']))

but it cant be done..

Advertisement: