473,320 Members | 1,870 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Seeking help with a scroll method

Hoping someone can help me figure out why some code I'm trying to learn
isn't working. I found a javascript scroll effect that I really like
on this page:
http://www.blocparty.com/go.php?object=music

Particularly I'm focusing on the scroll for the "LYRICS" section. My
javascript knowledge is pretty limited, but the code seems really
simple so I figured I'd be able to learn to use it for myself. I tried
implementing it a couple of different ways, but could never get the
scroll to actually work. Finally I just copied the whole blocparty
page onto my server, changing the relative links to absolutes:
http://70.103.140.143/~sandieh2/test/javascroll3.html

All the content gets pulled in fine, but the scroll doesn't work here
either. I'm wondering if it has something to do with the method being
used which is "scroll02". I can't find any reference to that in
javascript guides. Earlier on the page, they use "scroll01", so I
thought maybe it referenced something declared somewhere else on their
server, but I'm stumped. If anyone feels like looking at this and can
offer me a tip, I'd really appreciate it...

Sep 18 '06 #1
2 2010
xl******@gmail.com wrote:
Hoping someone can help me figure out why some code I'm trying to learn
isn't working. I found a javascript scroll effect that I really like
on this page:
http://www.blocparty.com/go.php?object=music
That page has issues with cross-domain scripting errors, Safari reports:

Unsafe JavaScript attempt to access frame with URL
http://70.103.140.143/~sandieh2/test/javascroll3.html from frame with
URL http://www.blocparty.com/_objects/music/eps.php. Domains must match.

It pumped out over 1,700 of them in a few seconds.

In regard to scrolling, it uses mouseover/out/down events in the parent
window to set global variables. A function is run in the frames to run
every 10ms using setInterval (which for most browsers means it will just
run as fast as it can) and look at the global variable in the parent
window. Depending on that variable, the frame scrolls up or down.

It is a very resource-hungry script, and quite frankly is a terrible way
to scroll the frame. Combined with the cross-domain script error (which
also seems to be running on a very short timeout) I think you should
look for a better scroll script. This stuff is complete crap - it
consumes considerable resources just sitting there doing nothing.

[...]

--
Rob
Sep 18 '06 #2
Thanks for the education Rob. I'm having trouble finding another
script that gives me that kind of button control, but what you point
out makes me want to searh a little harder.

RobG wrote:
xl******@gmail.com wrote:
Hoping someone can help me figure out why some code I'm trying to learn
isn't working. I found a javascript scroll effect that I really like
on this page:
http://www.blocparty.com/go.php?object=music

That page has issues with cross-domain scripting errors, Safari reports:

Unsafe JavaScript attempt to access frame with URL
http://70.103.140.143/~sandieh2/test/javascroll3.html from frame with
URL http://www.blocparty.com/_objects/music/eps.php. Domains must match.

It pumped out over 1,700 of them in a few seconds.

In regard to scrolling, it uses mouseover/out/down events in the parent
window to set global variables. A function is run in the frames to run
every 10ms using setInterval (which for most browsers means it will just
run as fast as it can) and look at the global variable in the parent
window. Depending on that variable, the frame scrolls up or down.

It is a very resource-hungry script, and quite frankly is a terrible way
to scroll the frame. Combined with the cross-domain script error (which
also seems to be running on a very short timeout) I think you should
look for a better scroll script. This stuff is complete crap - it
consumes considerable resources just sitting there doing nothing.

[...]

--
Rob
Sep 18 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Raffi | last post by:
Hi, We have an application that requires IE. We recently incorporated CSS scroll areas. The scroll fields are supposed to be centered. They are except for IE5 for the Mac. I have tried various...
1
by: MSDN Account | last post by:
We have web site that used the IIS ResKit tool MSWC.PermissionChecker to check file permissions. The web site has been upgraded and that upgrade included changing the default server side language...
3
by: One Handed Man | last post by:
How can one fire an event programatically for a given control. In another post someone wanted to cause an event in order to make a RichTextBox scroll down. However, the onVscroll method is a...
1
by: Niels Jensen | last post by:
Hi guys, I have the following code which is supposed to draw a grid in a panel consisting of a specified number of squares. I can get it to draw the grid and activate the autoscroll feature,...
7
by: James | last post by:
Hi, I have a Windows Forms application which uses multiple child forms (MDI interface). The height of one of the child forms is larger than the height of the MDI client area, so when this...
20
by: Jim | last post by:
Hi, I am hoping that someone here can help me out. I am for the first time trying to implement a page design using only CSS instead of HTML tables. I've been able to get most of the page done...
6
by: Bob | last post by:
Is there a way to put a labe in a scroll bar as oppose to in front of it. (Ie the scroll goes the text as oppose to under the text)
1
by: John L. | last post by:
How do I invoke the scroll() method of a window object for a scrollable IFRAME element in an HTML document? I am using IE 7.0, and I thought the following would work: ...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.