I have search a lot of topics for a usable solution.
But dont found something. Most scripts are just too cluttered for my purposes.
I need a jump or scroll to id.
MY call is:
<a onclick="function_call+targetname"><img src="image1" alt="name1"></a> <a onclick="function_call+targetname"><img src="image2" alt="name2"></a> <a onclick="function_call+targetname"><img src="image3" alt="name3"></a>
So i have to use onclick event in my navigation.
Now onclick i want to jump or scroll to a div id in my page:
<div id="target1">some content</div> <div id="target2">some content</div> <div id="target3">some content</div>
It is very important: html anchor not work unfortunately. Otherwise everything would be pretty easy.
I have use bevore simply:
But i have restrictions in eBay. They dont allow this simple code.
It can not be hard with a bit of JS jump to a specific point. I do not need special effects.
Does anyone have a slim and helpful solution?
I Have found a solution by my self and thanks to Oxi. I follow your way.
For all those interested in my solution:
<a onclick='scroll("target1");'><img src="image1" alt="name1"></a>
Now you can jump to a div with called ID
This question is related to
Maybe You should try scrollIntoView.
This will scroll to your Element.