1) Script Title:
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex3/scrolltop.htm
http://www.dynamicdrive.com/dynamici...edcollapse.htm
3) Describe problem: I'd like to know if there is a way to scroll the clicked div to the top of the page using 'scroll to top .js'
my links trigger the div to collapse but sometimes the images inside the div are not shown so i want the links to go to the top of the pages when they are clicked so the user can see the images in full.
//example
<p>
<a class="des" href="javascript:animatedcollapse.toggle('explorando')">
< explorando >______________________________________________________________design</a>
</p>
<div id="explorando" style="background: white; width: 480px; display:none">
<img src="exploring.jpg" width="370" border="0" onmouseover="Tip('Arte para poster, Idéia livre feito na Unversidade sem fim determinado. Exercício de abstração', BGCOLOR, 'red', FONTCOLOR, 'white', OPACITY, 90, TEXTALIGN, 'justify', BORDERWIDTH, 0, FONTSIZE, 13, FONTFACE, 'trebuchet ms', WIDTH, 250, FADEIN, 500, FADEOUT, 500)" onmouseout="UnTip()" />
</div>
/////////////////////
how can i position the clicked link to the top of the page so people will be able to see the full image without scrolling the page up or down?!
help, please?!
![]()



Reply With Quote


Bookmarks