[Pro] jump to anchor via hype

I have built a button with hype and want to put it on my page, and link it to an anchor on the page. how can I link to anchors in hype?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I am not sure about the creation of a link in Hype (haven’t really used it) but you will need to create a full link like

http://www.mysite.com/mypage.html#anchor

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

you are right, but I need to do this by javascript function in hype. any idea?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

but I need to do this by javascript function in hype.

No you don’t - that is just one of the options.

With the item that you want to apply your link to selected - look in the Inspector (Mouse Action Inspector)

There you can choose what sort of action ie On Mouse Click - Go to URL

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Yes I do!! because I want it to open 2 links at same time, the first one is a link that should open in one of iframes, second one is link to that anchor. I found out the way:
window.location = “#an1
self.frames[‘IFRAME1’].location.href = ‘http://mylink.com’; …this is the code I inserted in javascript function and every thing works fine except one thing: I’ve enabled smooth scroll. but it doesn’t work with hype. (but its ok with freeway link to anchors)


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

SmoothScroll only works with actual a tags. If you have hooked the onclick event on some random object, that’s not the same thing as an a. If the a is there, and points to an anchor, SmoothScroll will modify its behavior. But the a has to be there at the page load for that to work.

Walter

On Sep 15, 2011, at 3:47 AM, Khashayar Ebrahimi wrote:

Yes I do!! because I want it to open 2 links at same time, the first one is a link that should open in one of iframes, second one is link to that anchor. I found out the way:
window.location = “#an1
self.frames[‘IFRAME1’].location.href = ‘http://mylink.com’; …this is the code I inserted in javascript function and every thing works fine except one thing: I’ve enabled smooth scroll. but it doesn’t work with hype. (but its ok with freeway link to anchors)


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I want it to open 2 links at same time

Well it does help if you are clear about what it is you want to do.

Give as much information as we should need and you will get an informed response.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options