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

  • Home
  • SEARCH
  • 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 4325204
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T09:14:08+00:00 2026-05-21T09:14:08+00:00

i add a big image to an ASP panel and its go out of

  • 0

i add a big image to an ASP panel and its go out of panel. i want image in panel without scrollbar and move it in panel with javascript. how can i do that. here is my code

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="move background.aspx.cs"   Inherits="move_background" %>

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
<script type="text/javascript">
    Hmove = 12;
    function moveObjRight(obj) {
        var a = document.getElementById(obj);
        var Left = parseInt(a.style.left);
        var newpo = Left + Hmove;
        a.style.left = newpo + "px";

    }
</script>

 </head>
 <body>
 <form id="form1" runat="server">

    <asp:Panel ID="Panel1" runat="server" Height="133px" 
        style="z-index: 1; left: 0px; top: 0px; position: absolute; height: 500px;  width: 1000px" 
        Width="166px" ForeColor="#990000" BackColor="#0066FF" 
        Direction="LeftToRight" HorizontalAlign="Left">

    <img alt="asd" src="Pictures/view.gif" id="AS" style="z-index: 1; left:100px; top:100px; position: relative"/> 'BIG IMAGE'
    <img alt="move left" src="" id="moveleft" onclick="javascript:moveObjRight('AS');"
        style="z-index: 1; left: 222px; top: 264px; position: absolute; height: 33px; width: 34px;"/>
    </asp:Panel> 

</form>
</body>
</html>
  • 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-05-21T09:14:08+00:00Added an answer on May 21, 2026 at 9:14 am

    Add the style overflow:hidden; to the panel.

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

Sidebar

Related Questions

Hi I want to add a border to galleria big image. How can I
I've a big image and I'd like to add a part of that image
I want to show a big Image when I press the small thumbnail. A
I want to validate Image Resolution before upload an image in PHP through Javascript.
I want to add a spinner to my android application that looks like that
I want to add a header to my JQgrid without pushing a custom div
I'm trying to add an image watermark to images (image sizes can go up
I want to add file uploader on front product view of product. here are
in an app I'm programming I use javascript to add external image references to
I am using a javascript to zoom an image on my asp.net web page.

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.