The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[Solved] Slide bar and scrolling text.

3 posters

Go down

Solved [Solved] Slide bar and scrolling text.

Post by zaichik. September 21st 2011, 8:36 pm

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.


Last edited by zaichik. on September 23rd 2011, 8:55 am; edited 1 time in total
zaichik.
zaichik.
Forumember

Female Posts : 28
Reputation : 0
Language : Lithuanian

Back to top Go down

Solved Re: [Solved] Slide bar and scrolling text.

Post by shadowz au September 22nd 2011, 8:16 am

ill give it a try
avatar
shadowz au
Forumember

Male Posts : 280
Reputation : 30
Language : Australia
Location : Sydney

http://tommyzserver.forummotion.com

Back to top Go down

Solved Re: [Solved] Slide bar and scrolling text.

Post by zaichik. September 22nd 2011, 8:27 am

Yes, sure. : )
zaichik.
zaichik.
Forumember

Female Posts : 28
Reputation : 0
Language : Lithuanian

Back to top Go down

Solved Re: [Solved] Slide bar and scrolling text.

Post by shadowz au September 22nd 2011, 8:32 am

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>
avatar
shadowz au
Forumember

Male Posts : 280
Reputation : 30
Language : Australia
Location : Sydney

http://tommyzserver.forummotion.com

Back to top Go down

Solved Re: [Solved] Slide bar and scrolling text.

Post by zaichik. September 22nd 2011, 8:35 am

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
zaichik.
zaichik.
Forumember

Female Posts : 28
Reputation : 0
Language : Lithuanian

Back to top Go down

Solved Re: [Solved] Slide bar and scrolling text.

Post by shadowz au September 22nd 2011, 8:39 am

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);
            });
        });
     
avatar
shadowz au
Forumember

Male Posts : 280
Reputation : 30
Language : Australia
Location : Sydney

http://tommyzserver.forummotion.com

Back to top Go down

Solved Re: [Solved] Slide bar and scrolling text.

Post by zaichik. September 22nd 2011, 8:42 am

But now it's mooving too fast. Sad(
zaichik.
zaichik.
Forumember

Female Posts : 28
Reputation : 0
Language : Lithuanian

Back to top Go down

Solved Re: [Solved] Slide bar and scrolling text.

Post by shadowz au September 22nd 2011, 8:43 am

put mouse over it... to stop
avatar
shadowz au
Forumember

Male Posts : 280
Reputation : 30
Language : Australia
Location : Sydney

http://tommyzserver.forummotion.com

Back to top Go down

Solved Re: [Solved] Slide bar and scrolling text.

Post by zaichik. September 22nd 2011, 8:44 am

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?



Last edited by zaichik. on September 22nd 2011, 8:53 am; edited 1 time in total
zaichik.
zaichik.
Forumember

Female Posts : 28
Reputation : 0
Language : Lithuanian

Back to top Go down

Solved Re: [Solved] Slide bar and scrolling text.

Post by shadowz au September 22nd 2011, 8:50 am

change scrollamount to 1
avatar
shadowz au
Forumember

Male Posts : 280
Reputation : 30
Language : Australia
Location : Sydney

http://tommyzserver.forummotion.com

Back to top Go down

Solved Re: [Solved] Slide bar and scrolling text.

Post by zaichik. September 22nd 2011, 8:55 am

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?
zaichik.
zaichik.
Forumember

Female Posts : 28
Reputation : 0
Language : Lithuanian

Back to top Go down

Solved Re: [Solved] Slide bar and scrolling text.

Post by shadowz au September 23rd 2011, 4:52 am

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-
avatar
shadowz au
Forumember

Male Posts : 280
Reputation : 30
Language : Australia
Location : Sydney

http://tommyzserver.forummotion.com

Back to top Go down

Solved Re: [Solved] Slide bar and scrolling text.

Post by zaichik. September 23rd 2011, 8:33 am

Now it's great! Thank you so so so much!! banana
zaichik.
zaichik.
Forumember

Female Posts : 28
Reputation : 0
Language : Lithuanian

Back to top Go down

Solved Re: [Solved] Slide bar and scrolling text.

Post by shadowz au September 23rd 2011, 9:37 am

No problem Smile
avatar
shadowz au
Forumember

Male Posts : 280
Reputation : 30
Language : Australia
Location : Sydney

http://tommyzserver.forummotion.com

Back to top Go down

Solved Re: [Solved] Slide bar and scrolling text.

Post by Nera. September 23rd 2011, 3:13 pm

Solved > Locked
Nera.
Nera.
Energetic

Female Posts : 7078
Reputation : 2017
Language : English
Location : -

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum