www.webdeveloper.com
Results 1 to 2 of 2

Thread: Can't get it done myself. Need help with script.

  1. #1
    Join Date
    Oct 2012
    Posts
    8

    Can't get it done myself. Need help with script.

    I would like to get my scrollbars act and look like this here: http://jamesflorentino.github.com/nanoScrollerJS/ I also downloaded css and js file from there.

    It looks like MAC OS lion scrollbar: http://blog.godshell.com/blog/upload...-Scrollbar.png

    Then my html looked like this (I'm using adobe dreamweaver)

    <!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>My website</title>
    <link href="nanoscroller.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="jquery.nanoscroller.min.js"></script>
    </head>

    <body>
    <div id="mydiv" class="nano">
    <div class="content"> My content is here </div>
    </div>
    </body>
    </html>
    where mydiv is like this:

    #mydiv {
    background-image:url(images/taust.png);
    width: 88%;
    height: 87%;
    position: absolute;
    top: 5%;
    left: 5%;
    min-height:488px;
    min-width:901px;
    border: 1px solid #CCC;
    padding: 1%;
    }

  2. #2
    Join Date
    Sep 2008
    Location
    Akron, OH
    Posts
    1,125
    You need to be sure to include jQuery when using a plugin.
    I'm always up for networking with fellow web professionals. Connect with me on LinkedIn if you like!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles