HighDots Forums  

Page titles

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Page titles in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sasahara
 
Posts: n/a

Default Page titles - 07-05-2004 , 07:31 PM






I am almost new to Dreamweaver. I have a main page which is basically a
frameset with a Top, Left and Main Frame. I keep loading my pages into the Main
frame but the top and left stay the same. Left frame has a navigation bar.
Problem is my browser only shows the frameset title. I want the title to change
with pages changing in the main frame. Can anyone help, please???


Reply With Quote
  #2  
Old   
James Shook
 
Posts: n/a

Default Re: Page titles - 07-06-2004 , 08:33 AM






<script language="javascript" type="text/javascript">
top.document.title=document.title
</script>

This will fail without an error message in NN4 and possibly other
browsers. It really shouldn't work at all since document.title is
supposed to be read-only. In any event, I wouldn't create design such
that requiring this to work is necessary for the usability of the site.

Of course, if you didn't use frames you wouldn't have to wade into such
murky waters.

--
James M. Shook
http://www.jshook.com

Reply With Quote
  #3  
Old   
Mick White
 
Posts: n/a

Default Re: Page titles - 07-06-2004 , 09:47 AM



Caveat: The js code needs to appear *below* HTML title tags:

<title>foo</title>
<script type="text/javascript">
top.document.title=document.title;
</script>

Murkier and murkier.....
Mick
James Shook wrote:

Quote:
script language="javascript" type="text/javascript"
top.document.title=document.title
/script

This will fail without an error message in NN4 and possibly other
browsers. It really shouldn't work at all since document.title is
supposed to be read-only. In any event, I wouldn't create design such
that requiring this to work is necessary for the usability of the site.

Of course, if you didn't use frames you wouldn't have to wade into such
murky waters.


Reply With Quote
  #4  
Old   
Sasahara
 
Posts: n/a

Default Re: Page titles - 07-08-2004 , 03:12 PM



Hi James/Mick,

Sorry for the late reply as I was out of town. Thanks for the inputs. You're
right, Murky is the word for that design. So now I'm gathering that you guys
more recommend using tables.
I'm wondering for the page menu, do you recommend using Dreamweaver's
navigation bar or using rollover images?

Regards,
Sassan.


Reply With Quote
  #5  
Old   
James Shook
 
Posts: n/a

Default Re: Page titles - 07-08-2004 , 04:50 PM



Framesets don't have to be murky, but you must learn how to hop from one
slippery rock to another or you will get very wet.

I would not recommend DW's navbar since I have never used it. Without
knowing more about what your menu system must do I cannot say more.
However, the source for a wide range of menuing systems (some free, some
reasonably priced) is at:
http://www.projectseven.com/extensions/index.htm
Some extension help you build menus easily with excellent results,
others can be combined to make unique menus (but you will have to
understand basic HTML, JS and DHTML), and some of the extensions don't
have anything to do with menus at all.

--
James M. Shook
http://www.jshook.com

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.