phpnoob Posted November 23, 2012 Share Posted November 23, 2012 I'm not good in js, so plz help meI want to make a jump to the first unread post in forum and i figure it out, it need a js for moving the browser view to a hide div.Help me, at least if you not want to make full script, then post how to find a script in net, i try to search it but no luck Link to comment Share on other sites More sharing options...
birbal Posted November 23, 2012 Share Posted November 23, 2012 Use anchor name as post id like <a name="pid12334"> when you print the posts. and use that id as anchor in link which will take user to it http://somesite.com/post.php?forum=13&action=getpost#pid12334 Link to comment Share on other sites More sharing options...
phpnoob Posted November 23, 2012 Author Share Posted November 23, 2012 Use anchor name as post id like <a name="pid12334"> when you print the posts. and use that id as anchor in link which will take user to it http://somesite.com/...etpost#pid12334 i was check this forum, and not the A was the search, it have a hide div with id= #entry something.and what is this anchor? i was see this somewhere when i search js Link to comment Share on other sites More sharing options...
dsonesuk Posted November 23, 2012 Share Posted November 23, 2012 'a' as in <a href="#">link</> is for anchor see http://w3schools.com/html/html_links.asp under HTML Links - The id Attribute Link to comment Share on other sites More sharing options...
phpnoob Posted November 23, 2012 Author Share Posted November 23, 2012 (edited) 'a' as in <a href="#">link</> is for anchor see http://w3schools.com.../html_links.asp under HTML Links - The id AttributeeditI see now, wasnt guess what you guys talking, Edited November 23, 2012 by phpnoob Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now