如何!? Javascript滚动 [英] HOW TO!? Javascript Scroll

查看:47
本文介绍了如何!? Javascript滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,所以相信我,我已经google了,并且在发布之前搜索了这个板子。


也许我不知道正确的搜索短语。


我希望能够在我的网站上为新闻重新创建一个文本区域,我希望它有一个看起来很清晰的滚动区域。我知道javascript很少,并且明白我可能应该这样做,但我不认为这应该太难了。


无论如何我提供了一个网站,其中有一个我想要它的例子工作

http://www.miserysignals.net/main .php


在他们的新闻所在的左侧。我到底如何创造这样的东西?


我的搜索带来了大量的自动滚动文本区域,这很酷,但不是我想要的。


任何帮助都会很棒,谢谢JS和AJAX大师!


PS。我正在使用Dreamweaver cs3,如果这可能有帮助???

Okay, So trust me I have googled, and searched this board before posting..

Maybe I dont know the correct searching phrase.

I want to be able to recreate a text area for news on my site, and I want it to have a scroll area that is sharp looking. I know very little javascript, and understand that I probably should, But I dont think this should be TOO difficult.

Anyways I have provided a site with an example of how I want it to work

http://www.miserysignals.net/main.php

On the left side where their news is. HOW on earth would I create something like this??

My searches came back with numerous amounts of auto scrolling text areas, which is cool, but not what I want.

Any help would be amazing, Thanks JS, and AJAX gurus!

PS. I am using Dreamweaver cs3 if that may help at all???

推荐答案

我看不到任何自动滚动区域。我只能看到可以手动滚动的区域。在这种情况下,您可以使用DIV。具有固定高度和宽度的dom元素,而溢出样式属性将设置为auto。


[HTML]< div style =" width:100px;高度:100像素;溢出:自动;">

< H1>你可以把你想要的任何东西放在这里< / H1>< br>

这里......< br>

这里......< br>

所有将在DIV内(可滚动)< br>

< / div> [/ HTML]

但是你引用的网站是用Macromedia Flash而不是用JS制作的。
I can not see any auto-scrolling areas. I can see just area that can be scrolled manually. In this case, you can use "DIV" dom element with fixed height and width, while overflow style property will be set to auto.

[HTML]<div style="width:100px; height:100px; overflow:auto;">
<H1>You can put whatever you want here</H1><br>
And here ...<br>
And here ...<br>
All will be inside DIV (scrollable)<br>
</div>[/HTML]

But site you was refering to is made in Macromedia Flash not in JS.


我真的希望得到自定义上下和滚动条部分。


我可以通过你刚刚说的方式制作,但它给了我简单的滚动条。


我相信网站唯一的flash部分是标题。新闻区是用JS实现的,如果我是正确的,如果我在浏览器中禁用flash,新闻仍然会出现。


我找不到任何关于如何制作这个内容的信息。图形滚动条在我的任何搜索中..


希望有一个奇迹。


-myke


I was really hoping to get the custom up and down and scroll bar part going.

I can do it by just making by the way you just said, but it gives me the plain ole'' scroll bar.

I believe the only flash part of the site is the header. The news area was achieved using JS, if I am correct, if I disable flash in my browser the news still comes up.

I just cannot find anything on how to make this "Graphical scrollbar" on any of my searches..

Hoping for a miracle.

-myke



我看不到任何自动滚动区域。我只能看到可以手动滚动的区域。在这种情况下,您可以使用DIV。具有固定高度和宽度的dom元素,而溢出样式属性将设置为auto。


[HTML]< div style =" width:100px;高度:100像素;溢出:自动;">

< H1>你可以把你想要的任何东西放在这里< / H1>< br>

这里......< br>

这里......< br>

所有将在DIV内(可滚动)< br>

< / div> [/ HTML]


但是你所引用的网站是用Macromedia Flash而不是JS制作的。
I can not see any auto-scrolling areas. I can see just area that can be scrolled manually. In this case, you can use "DIV" dom element with fixed height and width, while overflow style property will be set to auto.

[HTML]<div style="width:100px; height:100px; overflow:auto;">
<H1>You can put whatever you want here</H1><br>
And here ...<br>
And here ...<br>
All will be inside DIV (scrollable)<br>
</div>[/HTML]

But site you was refering to is made in Macromedia Flash not in JS.



我相信网站唯一的flash部分是标题。新闻区是用JS实现的,如果我是正确的,如果我在浏览器中禁用flash,新闻仍然会出现。


我找不到任何关于如何制作这个内容的信息。图形滚动条在我的任何搜索上。
I believe the only flash part of the site is the header. The news area was achieved using JS, if I am correct, if I disable flash in my browser the news still comes up.

I just cannot find anything on how to make this "Graphical scrollbar" on any of my searches.



你是对的。第一步是使用Firebug并右键单击Inspect Element。你会看到里面有一个带有img标签的跨度。

You''re correct. The first step is to use Firebug and right-click Inspect Element. You''ll see it''s a span with an img tag inside.


这篇关于如何!? Javascript滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆