[Javascript] Display multiple images simultaneously

Tim Makins spindrift at oceanfree.net
Thu Dec 4 12:49:03 CST 2003


Hahaha - someone always wants to know 'Why' ! I just love you guys.

OK - here's one idea: Imagine a point has been selected on the map - for
example, a .gif of a stick-pin/drawing pin/thumb-tack. Then, as the cursor
moves away, a line is drawn from the pin to the cursor. This happens
continuously, so as the cursor moves, so does the line. I could thus
indicate and display distance.

Another idea: Same scenario as above, but this time, instead of a single
line, 4 lines are drawn; two horizontally and two vertically, to form an
ever-changing rectangle whose top-left hand corner is the pin, and whose
bottom-right corner forms the cursor. I could thus indicate and display
area.

Those are what I ultimately want to do. Ideas ?

Tim in Ireland.

PS - silly me - Flavio is right - it does repeat.


----- Original Message -----
From: "Mike Dougherty" <mdougherty at pbp.com>
Why would you want to use an image to draw a line?  either use the
old-school <br> tag, or use
something like Flavio Gomes' trick and set the background color of a 1 pixel
high DIV/SPAN.

On Thu, 4 Dec 2003 16:05:34 -0300
  Flavio Gomes <flavio at economisa.com.br> wrote:
>
> It repeats... doesnt stretch... (at least here on my Mozilla and
Konqueror)
>
>  Use this attached image as background and you are going to see that it
>repeats instead of stretching..
>
>Em Quinta 04 Dezembro 2003 14:55, Tim Makins escreveu:
>> Yes, that's one way to do it, but that's still not displaying an image
>> multiple times, just stretching it. Is it possible to display the same
>> image a number of times without reloading it ? Perhaps I need to specify
it
>> as a background image for each new blank DIV ?
>>
>> Tim in Ireland.
>>
>> ----- Original Message -----
>> From: "Flavio Gomes" <flavio at economisa.com.br>
>> <div style="Position: Absolute; Width: 300px; Height:2px; Left: 100px;
>> Top:20px; Background-Image: url('black.gif');"> </div>
>>
>> Tim Makins wrote:
>> > Can you give me an example ? It is the 'tell it to repeat itself ' bit
>>
>> that
>>
>> > I can't figure out.
>> >
>> > From: "BEKIM BACAJ" <trojani2000 at hotmail.com>
>> >
>> > > Sure,
>> > > the best solution, (avoiding, multiple downloads of the same image
over
>> > >and
>> > > over again), is to make it a background of some DIV f.i., and tell it
>> > > to repeat ittself by X or by Y with the propper CSS declatarion,
being
>> > > able to
>> > > give it any position in the page plus any width and/or height.
>> > >
>> > > >From: "Tim Makins" <spindrift at oceanfree.net>
>> > > >I am familiar with displaying an image at a chosen point on the
>> > > > screen,
>> >
>> > but
>> >
>> > > >I wonder if it is possible to display the same image multiple times,
>> > > > at different positions ?
>> > > >
>> > > >For example, if I had an image (black.gif) that was a 1x1pixel black
>> > > > dot, would it be possible, using a loop, to display the image 100
>>
>> times
>>
>> > > > to
>> >
>> > form
>> >
>> > > >a
>> > > >black horizontal line, 100 pixels long ?
>> > > >
>> > > >Tim in Ireland.
>>
>> --
>> Flavio Gomes de Araujo Pego
>> Estagiário - Técnico em Informática
>> NUPRO - (31) 3274-1811 - Ramal 232
>> _______________________________________________
>> Javascript mailing list
>> Javascript at LaTech.edu
>> https://lists.LaTech.edu/mailman/listinfo/javascript
>>
>>
>>
>> _______________________________________________
>> Javascript mailing list
>> Javascript at LaTech.edu
>> https://lists.LaTech.edu/mailman/listinfo/javascript
>
>--
>Flavio Gomes de Araujo Pego
>Estagiário - Técnico em Informática
>NUPRO - (31) 3274-1811 - Ramal 232

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript







More information about the Javascript mailing list