javascript

Thanks Paul but its more about me learning to add Javascript to Freeway - I know theres a few ways to do it (Moo tools for one) But I would like to be a able to do this by adding the script that according to Web Designer magazine (issue 170) I just pop that bit of code in to the and Im done!? Apparently anyway but this isnt the case so far…


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

Sometime around 10/5/10 (at 04:26 -0400) Justin Easthall said:

I would like to be a able to do this by adding the script that
according to Web Designer magazine (issue 170) I just pop that bit
of code in to the and Im done!?

It is actually very simple to use, don’t worry. :slight_smile:

  1. First, ignore the “smooth.pack.js” file; that’s
    unhelpfully-compressed and encoded, so I can’t begin to see what’s
    what there. Open the “smooth-src-comments.js” file instead.

  2. Copy the contents.

  3. In Freeway, go to the Page meny and choose HTML Markup.

  4. In the Markup dialog that opens, pick "Before " from the
    popup ‘Insert’ menu.

  5. Type:

<script type="text/javascript">
  1. Then paste the code

  2. Then type:

</script>

to finish it off.

Basically, you use the entire code from that “smooth-src-comments.js”
file, but you top-and-tail it with opening and closing tags that
declare the contents to be JavaScript. This all goes somewhere in
your page, using the Page > HTML Markup dialog. The opening and
closing ‘script’ tags mean that it won’t be shown in your page even
if you insert it after the opening ‘body’ tag, but it is customary to
put this stuff up in the head section.

If you’d like to see an example of this as done in Freeway, visit
http://www.panoramaphotographer.com/panorama-photography-faq.html and
scroll to the bottom. There’s a link there that will take you back up
to the ‘Who Uses It’ title text, smoothly.

For those who might want to try this at home, the original script and
example file can be downloaded from
http://www.dezinerfolio.com/2007/08/08/df-javascript-smooth-scroll

k


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