Closed Thread Icon

Topic awaiting preservation: horizontal image scroll... can we? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8415" title="Pages that link to Topic awaiting preservation: horizontal image scroll... can we? (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: horizontal image scroll... can we? <span class="small">(Page 1 of 1)</span>\

 
sketch
Nervous Wreck (II) Inmate

From:
Insane since: Oct 2002

posted posted 11-29-2002 06:42

hi guys

can we have horizontal image scroll... with mouse control left/right.

if some body has seen same thing in flash, i want to know is it possible in dhtml.

thanx in advance to all xperts..

cyaa...
sketch

------------------------------------
It's so simple to be Happy, but so difficult to be simple.

Veneficuz
Paranoid (IV) Inmate

From: A graveyard of dreams
Insane since: Mar 2001

posted posted 11-29-2002 12:32

I don't have much time now so this is right of my head, but the general idea should work.

Make a div that covers the whole area you want the image to cover and set the overflow: hidden. Then place an image in the div. If the x-mouse cordinate is less than something move the image to the left (decrease the left variable/style) and if it is higher increase it instead. When you move the image you also have to make sure that no part of the div is left uncovered, you can to this by putting an similair image either on the right or on the left depending on the situation. To make the image scroll smoothly you can use the setTimout function to call the scrolling function at suitable intervalls.

It might also be possible to get the effect by using background: repeat and then moving the background of the div in a similiar fashion, but I'm not sure if all browsers support that correctly...

_________________________
"I don't know half of you as well as I should like; and I like less than half of you half as well as you deserve" - Bilbo Baggins (S.R 1401)

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 11-29-2002 14:25

sketch: kuckus has been working on exactly this kind of thing for the GN (with panoramic scrolling too). Its perfectly possible - have you made a start on this or is your question more general?

___________________
Emps

FAQs: Emperor

sketch
Nervous Wreck (II) Inmate

From:
Insane since: Oct 2002

posted posted 12-02-2002 11:08

hi thanx

for ur replies...

i am not working on it.

but i made smae thing in flash so i want know is it possible in dhtml.

cause i am not xpert in dhtml...

so i am seeking all u guys advice on this one..


thanx
sketch

------------------------------------
It's so simple to be Happy, but so difficult to be simple.

« BackwardsOnwards »

Show Forum Drop Down Menu