Adding Javascript to an Item

Hi,

I would like to place a bit of javascript code to a graphic’s item that will perform a onclick or onmouseover which in turn calls a javascript fuction called hello().

Can someone pls explain how I can go about this?

Thanks.
Tony.


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

Do you want to add the code to the graphic itself, or to an href
wrapped around it? The former is possible, the latter is more usual,
and actually the correct way to do this, since you will get a
pointing finger cursor “for free”.

If you click on your image and add a link to it with the Hyperlink
dialog (Apple-K), then you can add these events through that dialog.
For the link, use the External tab, and enter javascript:; as the
URL. (If you’re reading this in mail, don’t include the back-ticks I
used to set off the code for easier display on the Web.) Don’t close
the dialog yet.

Now, click on the Extended button in the Hyperlnk dialog, and enter
your onclick and onmouseover events separately. Click on new, and in
the resulting sub-dialog, enter onclick or onmouseover in the Name
field, and the complete script you want to call, probably hello();,
in the Value field. Okay out of the stack of dialogs, and preview in
a browser. You should see your function fire as you mouse over or click.

Walter

On May 8, 2008, at 11:45 AM, Tonsils wrote:

Hi,

I would like to place a bit of javascript code to a graphic’s item
that will perform a onclick or onmouseover which in turn calls a
javascript fuction called hello().

Can someone pls explain how I can go about this?

Thanks.
Tony.


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

Thanks Walter - will give it a go.

Just wondering if there is actually any Javascript related documentation/material within the Freeway Pro 5 space that explains it’s usage throughout the development environment?

Thanks.
T.


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