Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Link do naslova na istoj stranici
Author Message
Kerber Offline
_
*

Posts: 359
Joined: Dec 2006
Reputation: 1
Post: #1
Link do naslova na istoj stranici
Evo da i ja nešto pitam :)

Davno sam negdje naletio na javascript koji radi slijedece...

Na jednoj stranici ima gomila teksta i više podnaslova.

Pa me sad zanima taj fazon da ponudim na početku podnaslove i jednim klikom da se scrola do tog dijela.

Nesto ko na wikipediji...

FGD!

Pravila foruma - pročitajte prije nego pitate
13-09-2009 07:18 PM
Visit this user's website Find all posts by this user Quote this message in a reply
schmrz Offline
____
*

Posts: 567
Joined: Feb 2007
Post: #2
RE: Link do naslova na istoj stranici
Ne treba ti javascript. Samo koristis anchor-e. Primjer:
Code:
...
<a href="#links">Goto links section</a>
...
<a name="links"><h2>Links</h2></a>
<ul>
  <li><a href="#">First link</a></li>
  <li><a href="#">Second link</a></li>
</ul>

I have no drinking problems. I drink. Get drunk. Fall down. NO PROBLEM
Registered As Linux User #484215
Moj skromni blog
Savjet za buduće programere: ovdje
13-09-2009 08:00 PM
Find all posts by this user Quote this message in a reply
zero Offline
Forumaš
***

Posts: 461
Joined: Jan 2008
Reputation: 10
Post: #3
RE: Link do naslova na istoj stranici
Mozes koristiti neku js biblioteku (npr. jQuery) ako si mislio na ovako nesto:

http://docs.jquery.com/Effects/slideToggle

Brzo. Jeftino. Kvalitetno. Izaberi dva!
13-09-2009 09:01 PM
Find all posts by this user Quote this message in a reply
Kerber Offline
_
*

Posts: 359
Joined: Dec 2006
Reputation: 1
Post: #4
RE: Link do naslova na istoj stranici
To je ono sto sam trazio, hvala schmrz...

aaa Zero, i to mi se cini zanimljivim,

hvala ljudovi He he

FGD!

Pravila foruma - pročitajte prije nego pitate
13-09-2009 10:56 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)