TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

anchors and horizantal layout

Page: 1 Reply
Aug 19th 2002#65352 Report
Member since: Jul 18th 2002
Posts: 126
is there a way to link a certain point in a horizantal layout? I can't get the anchors to work...here's an example:

http://mapage.noos.fr/lila.mae/anchor.htm


the back one works, but not the forward one...and none of them work with opera
Reply with Quote Reply
Aug 19th 2002#65361 Report
Member since: Mar 24th 2002
Posts: 3114
hmmm....not sure if that's possible with anchors, the fact that the back one works might be that it actually reloads the site kinda....

I'd just use a mini-JS to scroll the frame some defined pixels to the right.
Reply with Quote Reply
Aug 19th 2002#65364 Report
Member since: Jul 18th 2002
Posts: 126
thanks!
that seems to be what's going on...and after looking around, it seems that it can't be done with anchors!

any idea where I could find a JS to do that, I'm so bad with it!?
Reply with Quote Reply
Aug 19th 2002#65368 Report
Member since: Jul 18th 2002
Posts: 126
ok I found it:

< a href="javascript:scrollTo(900,0)">next
Reply with Quote Reply
Aug 19th 2002#65371 Report
Member since: Mar 24th 2002
Posts: 3114
yeah, you could also make it scroll by a defined amount at a time, with

[a href="javascript:scrollBy(30,0)"] <--
Reply with Quote Reply
Aug 19th 2002#65372 Report
Member since: Mar 24th 2002
Posts: 3114
er....the forum parses the word "JavaScript", and puts an extra space there...lol.. I guess you won´t mind, cuz you seamed to get it right... :p
Reply with Quote Reply
Aug 19th 2002#65373 Report
Member since: Jul 18th 2002
Posts: 126
cheers

stupid question: should javascript be written like you wrote it "JavaScript" or just plain normal? :D
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum