This content has been marked as final.
Show 1 reply
-
1. Re: Center Align - Javascript
Newsgroup_User Apr 16, 2007 3:51 PM (in response to tweaked_eye)Welcome to Dreamweaver.
For starters, Line #1 must contain the Document Type Declaration. It cannot
be on Line #2 as you have it.
Line #1 contains your favicon info. This doesn't belong here. This needs
to be moved down below your meta tags but before the </head> tag.
If you are rebuilding the NOF site pretty much as it is now in DW, don't use
layers. Use nested tables (basically tables inside a bigger table). Place
all content inside table cells. You probably are not accustomed to doing
this in NOF but that's what NOF does for you behind the scenes. If you are
skilled with CSS-P, use divs instead of tables. But if you're new to DW,
you'll probably be more comfortable working with tables for now.
Get used to working in both design and code view. You cannot build good
sites in Design view alone.
I don't like all that JavaScript code in your html page. IMHO It should be
cut from your page and placed in external js files.
The proper syntax for calling JavaScript is this:
<script type="text/javascript"
language="JavaScript"
src=" http://yoursite.com/scripts/your_javascript_file.js">
</script>
<script type="text/javascript"
language="JavaScript"
src=" http://yoursite.com/scripts/your_other_ javascript_file.js">
</script>
Good luck on your project,
Nancy O.
"tweaked_eye" <webforumsuser@macromedia.com> wrote in message
news:f00ckb$e81$1@forums.macromedia.com...
> M apologies in advance as I am dreamweaver noob. Been doing my sites in
> NetObjects Fusion for about 10 years. If you look at one of my NOF sites,
> www.glaciercraft.com the client liked have the javascript date on the left
and
> the sunset script on the right. In NOF I just create a layout region,
insert
> the code and the layout region stays put even with center alignment of the
site
> overall.
>
> 1) How would I insert a Javascript in a specific location (not just left,
> center or right aligned to a table cell)?
> 2) If the site is center aligned, how do I keep this code positioned in
the
> same place?
>
> Thanks in advance!
>
> -Robert http://www.glaciercraft.com
>

