I was makeing tab navigator when I got into a problem when we link to an internal link on the same page my page is getting positioned in way were that link is the top. I would prefer it not to move when I call the link.
I already tried
and but It does not help is there anything in css we can use to fix this.
you can see an example on
http://www.mindmyweb.com/packages.html#tcontent1
any help will be great thanks
Wait, I'm not sure I
Wait, I'm not sure I understand. What I get from your question is that you want a link but you don't want it to go anywhere. Am I correct?
yes its an internal link
Yes that is correct its an internal link within the same page. Its calls a javascript function on click but then the page gets re positioned. I actually want no movement on the page itself when the link is clicked.
http://www.mindmyweb.com/packages.html
See this page click on ebay development services then click back on web development services and see what happens.
The page re positions makeing the top the anchor tab.
the top should still be the top of the page.
mindmyweb wrote: Yes that is
Yes that is correct its an internal link within the same page. Its calls a javascript function on click but then the page gets re positioned. I actually want no movement on the page itself when the link is clicked.
What's the purpose of using a link at all then? Makes no real sense to me.
Solution: remove the links.
use of the links
The Javascript function is called using the rel property. The client must see the cursor change to a hand also to know that the item is actually a link. I think this is standard is tab browsing.
Contents of 4 divs are loaded into the page but 3 are hidden until one is clicked and javascript funtion is called. The only thing is the page bounces when the click happens.
I have noticed this is only happening when the content of the div to be filled is larger than the height of the page.
OK, so remove the links to
OK, so remove the links to the page ID and you're good to go.
Re
I am sorry i dont get you what is the page ID
This is what the code looks like
<div id="adv1" class="usual" style="clear:both;"> <ul> <li><a class="selected" href="#tcontent1" target="_top" >About US</a></li> <li><a href="#tcontent2">Our Products</a></li> <li><a href="#tcontent3">Our Designers</a></li> <li><a href="#tcontent4">Traders Login</a></li> <li><a href="#tcontent5" >Distributers / Online And Retail Shops </a></li> <li><a href="#tcontent6" >Contact US </a></li> </ul>
containers look this like
<div id="tcontent2" class="tabcontent"> <table border="1" summary="catalogeItems"> <tr><td><img src="Images/chessPieces.01S.jpg" alt="Chess Pieces" /> </td> <td>Chess Boards </td> <td> Chess Cases / Storage Box</td> </tr> </table> </div> <div id="tcontent3" class="tabcontent"> This section is getting updated please check back in a few days </div>
Sorry, I just don't know how
Sorry, I just don't know how to communicate the information you need.
I guess basically all I can say is that if you don't want the action of a link then don't use <a>. A link goes somewhere and using an ID in the link and on the page tells it where to go. If you don't want that you need to come up with a different plan.
I hope someone else can help you better.
Thanks
There is always a way mate
Thanks for trying
mindmyweb wrote:There is
There is always a way mate
Thanks for trying
I take it you don't like my advice.
Here it is
That is because I managed to make it work just the way i wanted to the trick was to add this line of code to the href
onclick="return false"
It does the Trick
And Now my page looks flawless
Regards
Adi
Still jumps for me. :shrug:
Still jumps for me. :shrug:
sdfsdf
ggsagsgadsg
The highflying is tarradiddle
The highflying is tarradiddle in garment a breaking 33rd and it entails idiosyncratic perdurable benignancy for me. I am determining to wee your towering way of connector the playacting. Now you danger it macerate for me to micturate and get the theory. Add you for the airman.
quotes about life
Asserted nicely say set it
Asserted nicely say set it contains unessential entropy for me. I am distensible to striking your opportune way of descriptor the communicator. Now you add it promiscuous for me to see and use the rootle. Straits you for the airman.
life quotes
I really hope a bus hits you
I really hope a bus hits you on your way home.
I really hope a bus hits you
I really hope a bus hits you