Javascript Rollovers

I have 3 rollovers that I would like external.

These work great in Freeway, so when I publish I would like to copy
the relevant code, then reference back in the HTML markup.
This is the generated code:


Which piece would I copy out into an external .js file and how would I
reference it in the head?

Nathan Garner
email@hidden

FW5 Pro | MacBook Pro | Leopard


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

Everything inside (but not including) the tags would move
into an external script. Be sure to remove the comments, too. (The
start comment is //<![CDATA[ and the end comment is //]].)

If you use the External JavaScript Action, it will make the link for
you, and upload the file directly. If you want to manage this
manually, then a proper external script tag would look like this:

<script src="/path/to/script.js" type="text/javascript" charset="utf-8">
</script>

This script tag should go in the Before /head section of the Page /
HTML Markup dialog.

Walter

On Aug 10, 2009, at 9:29 AM, Nathan Garner wrote:

Which piece would I copy out into an external .js file and how would
I reference it in the head?


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

I’ve copied and saved the text and referenced it back in with the
External Javascript action using it “After Body” (is that correct?)

But cannot see the buttons in my uploaded page - I’ve obviously done
something incorrect, but can’t see what to put right.

http://www.awdc-creative.com/clients/newyou/update-july/untitled1a.html

Nathan Garner
Creative Director

Austin Wells Design Limited
1 Elmgate Drive, Littledown, Bournemouth BH7 7EF
+44 (0)1202 301271
email@hidden
http://www.awdc-creative.com

Member of NAPP

On 10 Aug 2009, at 14:42, Walter Lee Davis wrote:

Everything inside (but not including) the tags would move
into an external script. Be sure to remove the comments, too. (The
start comment is //<![CDATA[ and the end comment is //]].)

If you use the External JavaScript Action, it will make the link for
you, and upload the file directly. If you want to manage this
manually, then a proper external script tag would look like this:

<script src="/path/to/script.js" type="text/javascript"  
charset="utf-8">
</script>

This script tag should go in the Before /head section of the Page /
HTML Markup dialog.

Walter

On Aug 10, 2009, at 9:29 AM, Nathan Garner wrote:

Which piece would I copy out into an external .js file and how
would I reference it in the head?


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

It needs to go in before the end of the head. After Body puts it after
the rest of the page, so what will happen is that the functions that
get called by the body tag’s “onload” event won’t be there in the
browser’s memory at the moment that it’s called. If you have your
JavaScript console open in Firebug or have enabled Safari’s Develop
menu, you will see an error whiz by telling you that.

Walter

On Aug 10, 2009, at 10:56 AM, Nathan Garner wrote:

I’ve copied and saved the text and referenced it back in with the
External Javascript action using it “After Body” (is that correct?)


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

I’ve changed it to /head and reuploaded and also checked that the
graphics for the button rollovers are in the Resources folder, but
still nothing is displayed.
Is there something I need to do on the page to say where it is inserted?

Nathan Garner
Creative Director

Austin Wells Design Limited
1 Elmgate Drive, Littledown, Bournemouth BH7 7EF
+44 (0)1202 301271
email@hidden
http://www.awdc-creative.com

Member of NAPP

On 10 Aug 2009, at 16:07, Walter Lee Davis wrote:

It needs to go in before the end of the head. After Body puts it
after the rest of the page, so what will happen is that the
functions that get called by the body tag’s “onload” event won’t be
there in the browser’s memory at the moment that it’s called. If you
have your JavaScript console open in Firebug or have enabled
Safari’s Develop menu, you will see an error whiz by telling you that.

Walter

On Aug 10, 2009, at 10:56 AM, Nathan Garner wrote:

I’ve copied and saved the text and referenced it back in with the
External Javascript action using it “After Body” (is that correct?)


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