LebGeeks

A community for technology geeks in Lebanon.

You are not logged in.

#1 September 13 2005

Parabola
Member

Question ***PROBLEM SOLVED

Let's say I have thumbnails and while scrolling to the right i click on one of them. After clicking on the thumbnail all the thumbnails jump back to the opening postion.

How can I solve that problem by using HTML?

Offline

#2 September 13 2005

rolf
Member

Re: Question ***PROBLEM SOLVED

1st of all why do the thumbnails jump back to the opening position? And what sort of scrolling are you talking about? Are you talking of scrolling using the explorer scrollbars?

Offline

#3 September 13 2005

Parabola
Member

Re: Question ***PROBLEM SOLVED

http://www.basketsforalloccasions.co.uk/wedding.html

Check that page for instance.

Open it with IE.

Offline

#4 September 13 2005

mahdoum
Member

Re: Question ***PROBLEM SOLVED

i don't get what you mean

Offline

#5 September 13 2005

rolf
Member

Re: Question ***PROBLEM SOLVED

Yeah parabola you should be able to change the position of the scrollbar through javascript... but I'm not sure how it works.
I had a similar proble that I resolved with php
Go to this page:
http://www.dergham.com/sarl/G_portfolio.php
You have a javascript scroll show. Scroll somwhat to the right then click on an image to see it in details. Then click again on the maximized image you'll go back to the scroll show but at the previous position.
How? when you click on the image a url that looks like that gets called:

http://www.dergham.com/sarl/G_portfolio … os=-1492px
Note the " pos=-1492px " parameter. The php on the server side takes this parameter and dynamically generate javascript that will make the scroll show move to the correct location (which is -1492px)

The javascript used to create this image scroll is:
Cmotion:
http://www.dynamicdrive.com/dynamicinde … allery.htm

If you install this javascript and have php on your site, I can tell you how to make it so it goes back to the same place like on my site.

Offline

#6 September 13 2005

rolf
Member

Re: Question ***PROBLEM SOLVED

Oh you mean when you click on an image the scrollbar goes back to zero? That's not normal since you're not loading another page, but opening a popup. There's a problem in the javascript, but sorry I have not time to look into it now!

Offline

#7 September 13 2005

Parabola
Member

Re: Question ***PROBLEM SOLVED

<a href="#" OnClick="window.open('images/wedding/06.jpg','my_window','width=420, height=289, menubar=no, status=no, scrollbars=no, resizable=no, toolbar=no, location=no, top=0, left=0');"><img border="0" src="images/wedding/06.jpg" width="100" height="66"></a>

That's it I copied everything :)

Offline

#8 September 13 2005

rolf
Member

Re: Question ***PROBLEM SOLVED

Replace:

<a href="#"

With:

<a OnMouseOver="this.style.cursor='pointer'"

Say thanks to doctor rolf!

Offline

#9 September 14 2005

Parabola
Member

Re: Question ***PROBLEM SOLVED

Thanks a lot "doctor rolf"

Offline

#10 September 14 2005

mahdoum
Member

Re: Question ***PROBLEM SOLVED

tsk tsk tsk doctor rolf has been editing his posts

Offline

Board footer