You are not logged in.
Pages: 1
Topic closed
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?
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?
i don't get what you mean
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.
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!
<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 :)
Replace:
<a href="#"
With:
<a OnMouseOver="this.style.cursor='pointer'"
Say thanks to doctor rolf!
Thanks a lot "doctor rolf"
tsk tsk tsk doctor rolf has been editing his posts
Pages: 1
Topic closed