I would like to add some javascript to my home page. I see no way of doing it through FW Pro’s editor. It is not a button, it is something that changes some text each day.
I am new to Freeway, and while it is simple to do in Dreamweaver, I am also moving away from Windows…so lots of things to learn.
I know I can always publish the site, download the HTML file and then add the javascript, but then when I republish, I will have to do the process over and over. Was hoping to add it to the page and then each time the site is published, it will already be there. Since the site is new (not published yet) I assume this will be many times over the next weeks.
Freeway offers a wealth of different ways to add script to your page.
If you need to add a library, or a large chunk of JS that needs to run
when the page loads, then you use the Page / HTML Markup dialog,
accessed from the main menu. There’s a picker in the lower-left corner
of the dialog that lets you choose which canonical part of the page
you need to add the script (Before /HEAD and Before /BODY are my two
places for library script).
If you want to add a little blob of script somewhere in your library,
say because you want to put a countdown timer in there or similar,
then use Insert / Markup Item from the main menu. You will first see a
dialog where you can paste your script. Then when you okay that
dialog, you will see a 100px square box on your page with a little
[ h ] in it. You can resize that box, place it wherever you want to
see the output of your script, etc. It’s very simple to do complex
things using a combination of the two methods, too. Best of all, you
only have to do them once, since you won’t have your code changes
overwritten next time Freeway generates your layout.
Walter
On May 29, 2010, at 6:14 PM, Iley Pullen wrote:
I would like to add some javascript to my home page. I see no way
of doing it through FW Pro’s editor. It is not a button, it is
something that changes some text each day.