Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8072103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:54:37+00:00 2026-06-05T13:54:37+00:00

I want to create a banner scrolling function for my homepage. I am not

  • 0

I want to create a banner scrolling function for my homepage. I am not too sure of which programming language to use here. I want to code something similar to: http://www.squidfaceandthemeddler.com/. But I want the footer to remain at the same position while the user scroll the table. Is it possible to get that result? I have create a simple tables and 2 images for the user to click on

here is my code for the tables:

<div id="banner" style="height:750px; width:600px; overflow:scroll;" > 
    <table width="750px" height="600px"> 
    <tr> 
    <td><a href="sale_1.php"><img src="banner1.png"/></a></td> 
    </tr> 
    </table> 

    <table width="750px" height="600px"> 
    <tr> 
    <td><a href="sale_2.php"><img src="banner2.png"/></a></td> 
    </tr> 
    </table> 

    <table width="750px" height="600px"> 
    <tr> 
    <td><a href="sale_3.php"><img src="banner3.png"/></a></td> 
    </tr> 
    </table> 
</div> 

and this is the upwards and downwards button for the scrolling:

<table width="750px" height="30px"> 
<tr> 
<td align="right"><img src="images/up_arrow.png"/><img src="images/down_arrow.png"/></td> 
</tr> 
</table> 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T13:54:38+00:00Added an answer on June 5, 2026 at 1:54 pm

    If you put the contents inside two div tags you can use CSS to clip the
    outer div and “scroll” the inner div by scripting its CSS “top” value, thus:

    <html><head><style>
    #contents{ 
     position: relative; top: 0; left: 0; width: 100px; height: auto;}
     #scrollable{ overflow: hidden; width: 100px; height: 100px; border: 1px
    solid black;
     }
    </style>
    <script>
    var t = 0;
    
    function up()
    {
     t += 10;
    
     with(document.getElementById("contents"))
     {
       if (t > 0)
        t = 0;
    
     if(style)
        style.top = t + "px";
     else
      setAttribute("style", "top: " + t + "px");
    }
    }
    
    function down()
    {
     t -= 10;
    
    with(document.getElementById("contents"))
    {
      if(t < -clientHeight)
          t = -clientHeight;
    
      if(style)
           style.top = t + "px";
      else
           setAttribute("style", "top: " + t + "px");
      }
     }
    </script></head>
       <body><table><tr><td><a href="javascript:void(0)" onclick="up()">up</a></td>
       <td rowspan="2"><div id="scrollable">
         <div id="contents">scrolling content scrolling content scrolling content
            scrolling content scrolling content scrolling content scrolling content
            scrolling content scrolling content scrolling content scrolling content
       </div></div> 
           </td></tr><tr><td>
         <a href="javascript:void(0)" onclick="down()">down</a></td></tr></table>
        </body></html>
    

    take the help of this edit your code

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want create module which update list of usb devices automatically (not only mass
I want to create conditional comments in XSLT. But when I use this: <!--
I want to create a horizontal scrolling field at the top of a UITableView
I want to create a function that allows me to ban an account for
i want to create dynamic banner rotater wih php ajax i want to pass
I want to use Rackspace API which is based on ReST. I am able
I use the following code to load some banners: a banner is a clickable
I want to create flash banner with XML content, and host it on my
I want to create a banner that goes over part of the page, I'm
I want to create an open source banner/advertising management app using Rails. The app

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.