Opening pages in templates (Full Version)

All Forums >> [Web Development] >> Dreamweaver Help



Message


Cassieee -> Opening pages in templates (3/20/2007 14:51:24)

Hi, I am new to dreamweaver and I know this might sound very simple but I am having such trouble and I wondered if anyone would be able to help me.

I have created my frameset and it has a row along the top and a column to the left and that has worked fine and it is all saved and everything. However when I create new pages and create hyperlinks, I put the Target as 'mainframe' as this is the centre part and it is named and saved as this, but whenever I then view the site in firefox or IE, when I click on a link, it just opens up the page in a competely new window. Does anyone know what I am doing wrong? I have probably missed something really simple, but if anyone can help me I will be extremely greatful as I have now been trying to sort this out for days!

Thanks so much! Cassie




mar0364 -> RE: Opening pages in templates (3/20/2007 14:57:59)

Can you provide a link or is it local?




Cassieee -> RE: Opening pages in templates (3/20/2007 15:00:31)

Its local Im afraid [>:]




jaybee -> RE: Opening pages in templates (3/20/2007 15:07:29)

Why are you using frames? They are problematic for people visiting the site. You can get the same effect from using includes but with less hassle all round.




sticks464 -> RE: Opening pages in templates (3/20/2007 15:16:31)

This is from a site I did for a college class. Take a look at the main frames page and the menu page.
quote:

menu
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Menu</title>
<link href="css/mystyle.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="menu">
<ul class="menu">
<li><a href="history.html" target="main">Home</a></li>
<li><a href="snare.html" target="main">Snare</a></li>
<li><a href="toms.html" target="main">Tom Tom</a></li>
<li><a href="cymbal.html" target="main">Cymbals</a></li>
<li><a href="http://www.angelfire.com/ne/dstolp/history.html" target="_top">History</a></li>
<li><a href="http://penz4.tripod.com/historyofdrums.html" target="_top">Even More History</a></li>
<li><a href="contact.html" target="main">Contact Me</a></li>
</ul><br /><br /><br />
<p class="links">Noteworthy Links<br />
<a href="http://www.tama.com/" target="_top">Tama Drums</a><br />
<a href="http://www.411drums.com/drums-lessons.htm" target="_top">Do I Need Lessons</a><br />
<a href="http://pages.ebay.com/buy/guides/drums-buying-guide/" target="_top">Buying Guide</a>
</p>
</div>
</body>
</html>


and
quote:

main page
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>Home</title>
<link href="css/mystyle.css" rel="stylesheet" type="text/css" />

</head>
<frameset rows="200,*" border="0" >
<!--Header-Logo-->
<frame src="header.html" scrolling="no" marginheight="0" noresize="noresize" name="logo" />
<!-- Nested Frames -->
<frameset cols="200,*">
<!--Navigation-Links-->
<frame src="menu.html" scrolling="no" marginheight="0" noresize="noresize" name="menu" />
<!--Main Content-Pages-->
<frame src="history.html" marginheight="0" noresize="noresize" name="main" />
</frameset>
</frameset>

</html>




Cassieee -> RE: Opening pages in templates (3/20/2007 15:34:16)

I just assumed frames were easier to use, know nothing about includes but I shall look it up!




mar0364 -> RE: Opening pages in templates (3/21/2007 19:15:22)

Well how did it go?




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875