plz i need help to anchor and Highlight post in new pages by clicking a link in home page

plz i need help to anchor and Highlight post in new pages by clicking a link in home page

i want to create EBook but and I'm a Noob in JavaScript and jquery so i made this example hoping some one
could help me to tell me how i do it

example :

i have 3 pages:
1.home.html
2.page1.html
3.page2.html

home page have 2 link :

goto page1 post2
goto page2 post5

when i click one of the links in the home page

example :  

"goto page1 post2"  it will go to the post 2 which is inside the  page1
and Highlight  the current post "post2" with yellow color

i made this graph to express what i want to do in the Attachment


pleaz any one tell me how i can do it in jquery 
thanks a lot :)