Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
  1. #1
    7mX
    7mX is offline
    Junior Member
    Join Date
    Apr 2003
    Posts
    24
    Member #
    1129
    i just want to know how to set my own custom images as my scrollbars i have seen it done so i know you can do it

    you can see it at http://robouk.mchost.com/

    i have no clue how he does it
    i have heard roomers about netscape able to do this whith its layer function but i was using ie6, and it works!

    so if some one could figure it out it would be nice

  2.  

  3. #2
    Senior Member splufdaddy's Avatar
    Join Date
    Feb 2003
    Location
    Boston, MA
    Posts
    4,488
    Member #
    735
    The person who wrote this javascript has a website: www.ghtml.com. He has a page which has just the scrollbar here. Look through it, cause that's how he did it. As long as you keep his name in the top of the code he says you may use the script. Good luck

  4. #3
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    That is not a scrollbar. It's not even an iframe. That is a div with a scroll script.

    Follow splufdaddy's instructions to get it working. youngpup.net has some good scrolling divs, too.

  5. #4
    7mX
    7mX is offline
    Junior Member
    Join Date
    Apr 2003
    Posts
    24
    Member #
    1129
    k

    could i put an iframe inside the div tag? :classic:

  6. #5
    Senior Member splufdaddy's Avatar
    Join Date
    Feb 2003
    Location
    Boston, MA
    Posts
    4,488
    Member #
    735
    You could, but I'm gonna guess that inserting an IFrame will insert the IFrame and it's scroll bar. The only use the DIV's scrollbar will have is if you make the IFrame longer or wider than the DIV. This will produce a very confusing, unattractive scrolling mess. Experiment with what he has, you may find a way to get it to work the way you want.

  7. #6
    7mX
    7mX is offline
    Junior Member
    Join Date
    Apr 2003
    Posts
    24
    Member #
    1129
    k

    u could use the scroll="no" to take the scrollbar off of the frame, but what i am getting at is how would i use the image scrollbar to control the iframe, not a <div>?

  8. #7
    Senior Member splufdaddy's Avatar
    Join Date
    Feb 2003
    Location
    Boston, MA
    Posts
    4,488
    Member #
    735
    You can't. This scroll bar controls a DIV only. The closest thing you can do is use some SSI to load content into the DIV from a seperate file, using PHP include, for example.

  9. #8
    Senior Member skrlin's Avatar
    Join Date
    Apr 2003
    Location
    Illinois
    Posts
    562
    Member #
    1063
    What if you were to put all the iframe content into a div and use the scroller script for that page?

    For example:

    Code:
    ...
    <body ... >
     <table width="100%">
      <tr>
       <td height="xx" width="xx">
        <iframe src="ifrmPage.htm" height="xx" width="xx"></iframe>
       </td>
       <td> <!-- other content --> </td>
      </tr>
     </table>
     <!-- other content here -->
    </body>
    and ifrmPage.htm:
    Code:
    <html>
     <head>
      <script src="divScroller.js" type="text/javascript">
      </script>
     </head>
     <body scroll="no" ... >
      <div style="height: 100%; width: 100% id="scrollDiv">
       <!-- iframe content -->
      </div>
     </body>
    </html>
    EDIT: added scroll="no"
    - Brian

  10. #9
    Senior Member
    Join Date
    Apr 2003
    Location
    Hamden Ct
    Posts
    103
    Member #
    1121
    It would produce two scroll bars, unless you disabled the scrollbar in the iframe.

  11. #10
    Senior Member skrlin's Avatar
    Join Date
    Apr 2003
    Location
    Illinois
    Posts
    562
    Member #
    1063
    Oh yeah, I forgot about that.
    - Brian


Page 1 of 2 1 2 LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 04:55 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com