C
Chris Leonard
Hi.
I have a number of links on my page. When I click on one of them I am
scrolling in a picture from the lefthand side. I have got this to work
nicely now following some suggestions made last week but with one problem
still remaining.
When I click the link the browser jumps to the top of the page and scrolls
my picture in from there. The reason is this is what I'm telling it to do by
setting the top property. How can I find the top property of the link I
clicked on so I can set it correctly ?
Here is a copy of the link
<A href="#" onClick="layername=makeName('<%Response.Write("picture" &
rcd)%>'); yhop=0; ygoal=10; xhop=40; xgoal=100; slide();">Click me</A>
I've tried:
<A id='<%Response.Write("link" & rcd)%>' href="#"
onClick="layername=makeName('<%Response.Write("picture" & rcd)%>'); yhop=0;
ygoal=10; xhop=40; xgoal=100; slide();">Click me</A>
and checked for the link(x).style.top but this doesn't work!!
Any help would be appreciated.
TIA.
Chris
I have a number of links on my page. When I click on one of them I am
scrolling in a picture from the lefthand side. I have got this to work
nicely now following some suggestions made last week but with one problem
still remaining.
When I click the link the browser jumps to the top of the page and scrolls
my picture in from there. The reason is this is what I'm telling it to do by
setting the top property. How can I find the top property of the link I
clicked on so I can set it correctly ?
Here is a copy of the link
<A href="#" onClick="layername=makeName('<%Response.Write("picture" &
rcd)%>'); yhop=0; ygoal=10; xhop=40; xgoal=100; slide();">Click me</A>
I've tried:
<A id='<%Response.Write("link" & rcd)%>' href="#"
onClick="layername=makeName('<%Response.Write("picture" & rcd)%>'); yhop=0;
ygoal=10; xhop=40; xgoal=100; slide();">Click me</A>
and checked for the link(x).style.top but this doesn't work!!
Any help would be appreciated.
TIA.
Chris