Click here to Skip to main content
15,893,668 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
In my website Go to Top Button is required but how to show this in flipkart style, or jabond style, they show such type of Button after some scroll. How the do this ?

Thanks in advance
Posted
Updated 14-Mar-13 19:39pm
v2
Comments
Richard C Bishop 14-Mar-13 12:09pm    
Your English is fine, however your thread is not clear enough. Try and rephrase it and provide the code that it is related to.

Hi!!! Use like this

XML
<div class="fk-ui-goTop fk-hidden" style="display: block;">

    TOP
 <div class="css-arrow arrow-border">
</div><div class="css-arrow arrow-top">
</div>
</div>

and use this css

.fk-ui-goTop {
color: #fff;
background: #b9b8b9;
color: #fff;
padding: 6px 5px 5px 10px;
width: 52px;
position: fixed;
font-family: Arial,Helvetica,sans-serif;
font-size: 13px;
letter-spacing: .05em;
right: 0;
bottom: 75px;
line-height: 26px;
cursor: pointer;
text-align: left;
border-radius: 5px 0 0 5px;
_position: absolute;
_top: 0;
z-index: 1000;
}

.fk-hidden, .hidden {
display: none;
}

.arrow-border {
border-color: transparent transparent #fff;
border-style: solid;
border-width: 6px;
right: 12px;
top: 10px;
}

.css-arrow {
height: 0;
position: absolute;
width: 0;
}


.arrow-top {
border-color: transparent transparent #b9b8b9;
border-style: solid;
border-width: 6px;
right: 12px;
top: 12px;
}
 
Share this answer
 
Hi,

the below article will give complete solution and various options to achieve "Back To Top" facility along with source and demo.
11 Top jQuery Scroll to Top of Page Plugin Tutorials with Examples[^]

you can see two buttons in the article "Source" - for source code, "Demo" - for demo.

hope it helps.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900