Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Scroll Script Problem

Featured Replies

The top left hand corner of the page. There are two small broken image links. I have a script on the page, what those small broken image links are suppose to do is scroll the text vertically, what am I doing wrong that it's not working ?

You have a 404 error for the images, so you may have just uploaded them to the wrong directory? Also "section one" appears to be used as a class and not an id on the page, so maybe try using getElementsByClassName('section one')[0] on line 12.

  • Author

You have a 404 error for the images, so you may have just uploaded them to the wrong directory? Also "section one" appears to be used as a class and not an id on the page, so maybe try using getElementsByClassName('section one')[0] on line 12.

 

I replaced getElementsByID to getElementsByClassName, not working. I know the images are missing for the time being pretend they are they, the script should function without images.

  • Author

This is what I want it to do.

 

How come it's not working, the script is in the head, the only thing could be this, maybe (ignoring the missing up and down images) that is causing it not to work ?

 

 

<img class="Scrollbar-Up" onmouseout="scroller.stopScroll();" onmouseover="scroller.startScroll(0, 5);" src="images/up_arrow.gif">
<img class="Scrollbar-Down" onmouseout="scroller.stopScroll();" onmouseover="scroller.startScroll(0, -5);" src="images/down_arrow.gif">
 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.