Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create a basic slider control (slidebar)

Status
Not open for further replies.

webscriptprogrammer

Programmer
Nov 26, 2005
31
SE
I try to make a basic slidebar that I can insert maxvalue and what value it have when a visitor scroll it.

I try to put that inside my embedding windows media player for IE

I now how to stop and play and that but not yet how to create a slidebar

I have seen some but that its a little hard to put that inside and control my media player.
 
If you are attempting to create something like this in Javascript - then this is the right place to ask when you are having problems.

You post implies that you are attempting to code something to the Windows Media Player... and that is something completely outside this forum. Maybe you will find a forum by clicking the "Forum List" link in the top left side of the page.

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
what I have seen that is Javascript I going to use to create a slider control. (with a little CSS)

I even going to control the windows media Player with Javascript so I think this is the right place?

 
I have programme in several languages but not so much in JS

I have found some very interesting code but some is hard to understand.

Some I found that that just scroll value between 0 and 1.
That is maybe just a math so I can change to make it work in my project.

The problem is that I have a value from the movie.
I try to make so the slider move from start at the movie to the end of the movie.

Windows media player control the slider move and I can control the windows media player through scroll the slider left or right so the movie go back or forward.

I just have problem to find a basic and good slider control that I can edit so I have another style maybe but also change maxvalue and the slider value.
 
There is not a slider bar control in html as there is in some GUI languages. However, using the code I posted you can mimic a slider bar. The scroll position starts at 0 and ends at a value depending on the height of the bar.

Whether you can use this max value or not depends on whether can control the windows media player via javascript.

Clive
 
I'm not sure whether we are talking about the same thing but I was thinking about something like this.

Code:
<html><body>
<script type="text/javascript">
function showSbarVal(){
p=document.getElementById('sbar')
alert(p.scrollTop)
}
</script>
<div id="sbar" style="width:20px;height:100px;overflow:auto" onmouseleave="showSbarVal()">
<img width="1" height="400" alt="" />
</div><body></html>

Clive
 
Very nice but it hard to change a design.

I dont now if I have right idea.

The scroller is a picture.
in the background I have a picture that have a line so it look like a slider.

I need make so the slider is same size but I can change maxvalue because my design around the slider can't change.

Now I have to change the X-axle and read from it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top