[Solved] Slide bar and scrolling text.

zaichik. at 20h36
21
Sep
2011
Hello,

I have this code
Code:
 <div style='width:200px; height:360px; background:url(http://i55.tinypic.com/117v2b7.png); padding-top: 60px; padding-left:15px;'><div style='text-align:justify; width: 170px; left-margin: 100px;'><div style="width: 220px; height: 420px; overflow: auto; padding: 5px">
<br><font size=1>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
<br>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.</font>
</div></div></div>


And i want to do a Slide-Bar for it, because I want, that all text will be in that white place on my forum "iPhone".

My forum - http://unicorn.do-forum.com/

EDIT:
And maybe you guys can tell me that code, then the text is scrolling and then you put your mouse on that text it's stops? Please.
1 shadowz au, on 22/09/2011 at 08h16
ill give it a try
2 zaichik., on 22/09/2011 at 08h27
Yes, sure. : )
3 shadowz au, on 22/09/2011 at 08h32
I did this on html page

Code:
<html>
<head>
<SCRIPT language="JavaScript" SRC="http://archknight-gfx.webs.com/file1.js"></SCRIPT>
<SCRIPT language="JavaScript" SRC="http://archknight-gfx.webs.com/file2.js"></SCRIPT>
 <script type="text/javascript">
        <!--
        $(function () {       
            $('div.demo marquee').marquee('pointer').mouseover(function () {
                $(this).trigger('stop');
            }).mouseout(function () {
                $(this).trigger('start');
            }).mousemove(function (event) {
            if ($(this).data('drag') == true) {
                    this.scroll = $(this).data('scrollX') + ($(this).data('x') - event.clientX);
                }
            }).mousedown(function (event) {
                $(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scroll);
            }).mouseup(function () {
                $(this).data('drag', false);
            });
        });
        //-->
    </script>
</head>
<body>
<div style='width:200px; height:360px; background:url(http://i55.tinypic.com/117v2b7.png); padding-top: 60px; padding-left:15px;'><div style='text-align:justify; width: 170px; left-margin: 100px;'><div style="width: 175px; height: 900px; overflow: auto; padding: 5px">
<br><font size=1><div class="demo">
  <marquee behavior="scroll" direction="up" scrollamount="2">
      <p>Lorem Ipsum is simply dummy text of the<br> printing and typesetting industry. Lorem<br> Ipsum has been the industry's standard<br> dummy text ever since the 1500s, when an<br> unknown printer took a galley of type and<br> scrambled it to make a type specimen book.<br> It has survived not only five centuries,<br> but also the leap into electronic typesetting,<br> remaining essentially unchanged. It was<br> popularised in the 1960s with the release of <br>Letraset sheets containing Lorem Ipsum<br> passages, and more recently with desktop <br>publishing software like Aldus PageMaker<br> including versions of Lorem Ipsum.<br>
Contrary to popular belief, Lorem Ipsum is<br> not simply random text. It has roots in a<br> piece of classical Latin literature from 45<br> BC, making it over 2000 years old. <br>Richard McClintock, a Latin professor at<br> Hampden-Sydney College in Virginia, looked<br> up one of the more obscure Latin words, <br>consectetur, from a Lorem Ipsum passage,<br> and going through the cites of the word in<br> classical literature, discovered the<br> undoubtable source. Lorem Ipsum comes<br> from sections 1.10.32 and 1.10.33 of "de<br> Finibus Bonorum et Malorum" (The <br>Extremes of Good and Evil) by Cicero, <br>written in 45 BC. This book is a treatise<br> on the theory of ethics, very popular during<br> the Renaissance. The first line of <br>Lorem Ipsum, "Lorem ipsum dolor sit <br>amet..", comes from a line in section <br>1.10.32.
The standard chunk of<br> Lorem Ipsum used since the 1500s is<br> reproduced below for those interested.<br> Sections 1.10.32 and 1.10.33 from "de<br> Finibus Bonorum et Malorum" by Cicero <br>are also reproduced in their exact original<br> form, accompanied by English versions <br>from the 1914 translation<br><br> by H. Rackham.</font>
</p>
  </marquee>
</div></div></div></div>

</body>
</html>
4 zaichik., on 22/09/2011 at 08h35
Thank you very much!

But I still need a code, then text is scrolling then you put your mouse on it stops.

P.S. Sorry, my English is realy bad. Sad
5 shadowz au, on 22/09/2011 at 08h39
Host the javascript.

Code:

        $(function () {       
            $('div.demo marquee').marquee('pointer').mouseover(function () {
                $(this).trigger('stop');
            }).mouseout(function () {
                $(this).trigger('start');
            }).mousemove(function (event) {
            if ($(this).data('drag') == true) {
                    this.scroll = $(this).data('scrollX') + ($(this).data('x') - event.clientX);
                }
            }).mousedown(function (event) {
                $(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scroll);
            }).mouseup(function () {
                $(this).data('drag', false);
            });
        });
     
6 zaichik., on 22/09/2011 at 08h42
But now it's mooving too fast. Sad(
7 shadowz au, on 22/09/2011 at 08h43
put mouse over it... to stop
8 zaichik., on 22/09/2011 at 08h44
I know, but can I somehow make it to move little bit slower?

EDIT: I found it.

But now it's a little too big white place... (http://unicorn.do-forum.com/)
Can someone tell me how to make the text complete a that white place?

9 shadowz au, on 22/09/2011 at 08h50
change scrollamount to 1
10 zaichik., on 22/09/2011 at 08h55
Shadowz, thank you soooo much! You don't even know how I am grateful for you!

zaichik. wrote:
But now it's a little too big white place... (http://unicorn.do-forum.com/)
Can someone tell me how to make the text complete a that white place?
11 shadowz au, on 23/09/2011 at 04h52
Code:
<marquee class="iphone" behavior="scroll" direction="left" scrollamount="2">
      <p>This Is A Perfect Smooth Marquee.</p>
  </marquee>


Code:
<style>
.iphone {
height: 250px;
}
</style>


This is look like
http://tommyzserver.forummotion.com/h6-
12 zaichik., on 23/09/2011 at 08h33
Now it's great! Thank you so so so much!! banana
13 shadowz au, on 23/09/2011 at 09h37
No problem Smile
14 Nera., on 23/09/2011 at 15h13
Solved > Locked
Similar topics
one of the staff here has given a link to quackit where you can get a scrolling text to go in header .ive got that webpage but how do i go about installing a scrolling text in the header on my forum in the acp . can someone help give easy instructions
Can anyone change to Z-Magnum Thanks
CSS3 Text Shadows Adding text shadow effect with CSS Hi and welcome.Today we are going to talk about CSS3 text shadows.Shadows have been added to CSS2 but have been removed.Now the return to CSS3.Before we move onto the code,lets take a look at some
See also
more_less
Informations

14 Replies For the topic :
"[Solved] Slide bar and scrolling text."

This topic has been viewed 837 times.

Last message :
21/09/2011 at 20h36 by "zaichik."