Hi there.
My problem is that I’m trying to use a smooth scroll script for a webpage and the problem is that it have to scroll from one div to another not from anchor tag to a div. I thought of making a simple script which allow me to hyperlink the div
The script is simply
Top Script
Script attached to Div Tag
It works fine. It scrolls up to the top div that gave id scroll_up.
Is there is any way to make this scroll smooth?
Eg:
Thanks
Taha
My problem is that I’m trying to use a smooth scroll script for a webpage and the problem is that it have to scroll from one div to another not from anchor tag to a div. I thought of making a simple script which allow me to hyperlink the div
The script is simply
Top Script
Code:
<script type="text/javascript" language="javascript">
function go(url)
{
window.location=url;
}
</script>
Script attached to Div Tag
Code:
<div onmouseup="window.location='#scroll_up'">Scroll up</div>
It works fine. It scrolls up to the top div that gave id scroll_up.
Is there is any way to make this scroll smooth?
Eg:
Thanks
Taha