473,386 Members | 1,706 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,386 software developers and data experts.

Image Problem !

Hello,

I have 4 large images ( 1024 x 1024). All four images constitute one
large image when kept side by side.

I want to show that larger image on a webpage with a smaller image
area (say, 256 x 256). I don't want to change the zoom level or even I
dont want any scaling function.

I just want to navigate the large image from top to bottom, either
using 'top','left','up','down' buttons or links.

I am using jsp. If i know how to define the smaller image area on a
web page, and how to load the larger image only once, then i can
proceed further. Please help !

thanks in advance.
-Ambastha

Feb 15 '07 #1
5 1252
mr. ambastha wrote on 15 feb 2007 in comp.lang.javascript:
I have 4 large images ( 1024 x 1024). All four images constitute one
large image when kept side by side.

I want to show that larger image on a webpage with a smaller image
area (say, 256 x 256). I don't want to change the zoom level or even I
dont want any scaling function.

I just want to navigate the large image from top to bottom, either
using 'top','left','up','down' buttons or links.

I am using jsp. If i know how to define the smaller image area on a
web page, and how to load the larger image only once, then i can
proceed further. Please help !
This seems a html issue.
What do you expect from Javascript?

What is JSP? Something with Java?
Java has nothing to do with Javascript, but the nme.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Feb 15 '07 #2
ASM
Evertjan. a écrit :
mr. ambastha wrote on 15 feb 2007 in comp.lang.javascript:
>I have 4 large images ( 1024 x 1024). All four images constitute one
large image when kept side by side.

I want to show that larger image on a webpage with a smaller image
area (say, 256 x 256). I don't want to change the zoom level or even I
dont want any scaling function.

I just want to navigate the large image from top to bottom, either
using 'top','left','up','down' buttons or links.

I am using jsp. If i know how to define the smaller image area on a
web page, and how to load the larger image only once, then i can
proceed further. Please help !

This seems a html issue.
Can you explain me how in html, with arrow keys (or buttons) you
'navigate' in a 256/256px image ?
On the other hand,

- I didn't understand what does mean to show a large image
(of four assembled images) with a smaller ...
... if anyway buttons are used.
- not more is clear for me the notion :
"navigate ... from top to bottom"
does it mean to scroll up and down ?
or
does it mean to jump from top to bottom ?
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Mar 16 '07 #3
yb
On Feb 15, 7:27 am, "mr. ambastha" <group.rit...@gmail.comwrote:
Hello,

I have 4 large images ( 1024 x 1024). All four images constitute one
large image when kept side by side.

I want to show that larger image on a webpage with a smaller image
area (say, 256 x 256). I don't want to change the zoom level or even I
dont want any scaling function.

I just want to navigate the large image from top to bottom, either
using 'top','left','up','down' buttons or links.

I am using jsp. If i know how to define the smaller image area on a
web page, and how to load the larger image only once, then i can
proceed further. Please help !

thanks in advance.
-Ambastha
you may want to look at the CSS overflow property.

the small snippet of code below would be for a single image of 1024px
x 1024px, with a 256px x 256px container.
Of course you wouldn't want to use inline styles, its just for an
example.

<div style="width : 256px; height : 256px; border : 2px solid black;
overflow : scroll">
<img src="your_image_here" height="1024" width="1024" />
</div>

With four images, perhaps you could use another (much larger) inner
div ... you'll have to be a bit careful , since the scroll bars could
take up some of the available width and cause a "tile" to break to the
next line.

Mar 16 '07 #4
ASM wrote on 16 mrt 2007 in comp.lang.javascript:
Evertjan. a écrit :
>mr. ambastha wrote on 15 feb 2007 in comp.lang.javascript:
>>I have 4 large images ( 1024 x 1024). All four images constitute one
large image when kept side by side.

I want to show that larger image on a webpage with a smaller image
area (say, 256 x 256). I don't want to change the zoom level or even
I dont want any scaling function.

I just want to navigate the large image from top to bottom, either
using 'top','left','up','down' buttons or links.

I am using jsp. If i know how to define the smaller image area on a
web page, and how to load the larger image only once, then i can
proceed further. Please help !

This seems a html issue.

Can you explain me how in html, with arrow keys (or buttons) you
'navigate' in a 256/256px image ?
I don't remember what I thought 1 month ago to the day.

But perhaps, Stephane, you were not asking me.

The static positioning of images is is an html issue perhaps with CSS.

On the other hand,

- I didn't understand what does mean to show a large image
(of four assembled images) with a smaller ...
... if anyway buttons are used.
- not more is clear for me the notion :
"navigate ... from top to bottom"
does it mean to scroll up and down ?
or
does it mean to jump from top to bottom ?
I think the "navigate" here could only be understood as static
positioning.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Mar 16 '07 #5
ASM
Evertjan. a écrit :
ASM wrote on 16 mrt 2007 in comp.lang.javascript:
>Evertjan. a écrit :
>>mr. ambastha wrote on 15 feb 2007 in comp.lang.javascript:

This seems a html issue.
>Can you explain me how in html, with arrow keys (or buttons) you
'navigate' in a 256/256px image ?

I don't remember what I thought 1 month ago to the day.
We are not more in february ?

Oooops !
But perhaps, Stephane, you were not asking me.
Yes I was.
But I awake a little late ...
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Mar 17 '07 #6

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

Similar topics

9
by: Pierre Tremblay | last post by:
Hi! I am trying to display an image in my html document. The document contains the following line: <td class="Input"><img...
3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
8
by: Jef Driesen | last post by:
I'm implementing some image processing algorithms in C++. I created a class called 'image' (see declaration below), that will take care of the memory allocations and some basic (mathematical)...
6
by: QuasiChameleon | last post by:
Hi, I'm trying to create a grayscale image class that reads and writes grayscale Targa format. This works well with smaller images, but corrupts larger images and creates a "Segmentation fault...
15
by: Anand Ganesh | last post by:
HI All, I have an Image. I want to clip a portion of it and copy to another image. How to do this? I know the bounding rectangle to clip. Any suggestions please. Thanks for your time and...
7
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard...
15
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the...
6
by: comp.lang.php | last post by:
/** * Generate the random security image * * @access public * @param $willUseFilePath (default false) boolean to determine if you will be using a file path * @param mixed $filePath (optional)...
1
by: bharathv6 | last post by:
i need to do is modify the image in memory like resizing the image in memory etc ... with out saving it disk as i have to return back the image with out saving it disk PIL supports the use of...
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.