Top link

Probleme? Aici le gasiţi soluţiile!

Moderator: Moderators

Locked
User avatar
hG.KID
Suspect de spam
Posts: 335
Joined: 11 Sep 2009, 21:40
Location: Trance World
Contact:

Top link

Post by hG.KID » 29 Jun 2011, 01:01

Am observat la unele site-uri ca este la fundul paginii un buton care duce direct in sus ..
Stie care va acel cod?

Multumesc frumos
Image
User avatar
HiddeN
Junior
Posts: 131
Joined: 20 Feb 2008, 21:57
Location: Timisoara
Contact:

Re: Top link

Post by HiddeN » 29 Jun 2011, 01:28

Adaugi in partea de sus unde vrei sa te duca butonul

Code: Select all

<a name="top"></a>
sau in loc de <a> poti folosi si <div>

Iar pentru buton foloseste

Code: Select all

<a href="#top">TEXT</a>
Daca vrei cu smooth scroll ai nevoie de JavaScript. Ai aici cateva tutoriale folosind JS
Image
Image
User avatar
hG.KID
Suspect de spam
Posts: 335
Joined: 11 Sep 2009, 21:40
Location: Trance World
Contact:

Re: Top link

Post by hG.KID » 29 Jun 2011, 13:47

Mersi frumos omule !
Image
Locked