Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 08-24-2006, 04:15 AM   #1 (permalink)
Salchester
Salchester
 
Salchester's Avatar
 
Join Date: Jul 2005
Location: In a house
Posts: 230
Salchester is an unknown quantity at this point
Scroll Bar

Hello Every,

Is there any way a scrollbar can be made, to carryout diffrent form actions when the slider meats certain points?

Many Thanks
__________________
Many Thanks, in advance!

Salchester.
The Future Is Here - Are You Ready?
Salchester is offline   Reply With Quote
Old 08-24-2006, 06:06 AM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,475
sde is on a distinguished road
possibly, but there is no pre-made component to do that. you would have to create your own drag/drop CSS/DHTML with boundries to restrict the element to the scroll bar's area. this is no easy task.
__________________
Mike
sde is offline   Reply With Quote
Old 08-27-2006, 09:06 AM   #3 (permalink)
Redline
PHP Student
 
Join Date: Oct 2004
Location: Forest Grove, OR
Posts: 150
Redline is on a distinguished road
Send a message via AIM to Redline Send a message via MSN to Redline
I'll be damned if I remember how I did it, but you can dig through the source code on my Winamp Remote project. I built my own cross-browser compliant scrollbar for the playlist.

There's a lot that goes into it. You need to find out how tall the scrolling area is going to be (not the window size, but the entire length of the data). That was easy with my project because each line of the playlist was 14px tall, and there's no text wrapping.

There is probably a more efficient way of doing it, but the way I did it was to dynamically create a table comparing each pixel of movement on the scrollbar to a number of lines in the playlist. So depending on how long the playlist is, 10 pixels of movement on the scrollbar might scroll 1 or 5 items on the playlist.

Given the same format, it would be easy to trigger an event when certain points on the scrollbar are reached...
__________________
Current Project
Redline is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
wants help from PHP experts to add bar chart functionality in exsisting site......... jameswatt PHP 1 09-22-2005 08:12 AM
Progress Bar Salchester Standard C, C++ 1 07-24-2005 07:12 AM
How to scroll down DataGrid Programatically. nismat MS Technologies ( ASP, VB, C#, .NET ) 1 04-19-2005 12:40 PM
Bottom Bar underneath sidebar awieds HTML, XML, Javascript, AJAX 24 04-07-2005 10:18 PM
scroll on list dirs HTML, XML, Javascript, AJAX 3 11-14-2004 04:28 AM


All times are GMT -8. The time now is 10:18 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting