| View previous topic :: View next topic |
| Author |
Message |
Samuel Jong
Joined: 06 Jan 2008 Posts: 86
|
Posted: Fri Jan 11, 2008 6:28 pm |
|
|
|
| sticks464 wrote: |
This should be saved as index.htm and will be the home page. All other pages should be saved in the same folder as the index page.
| Code: |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<title>Sin Hoa</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="mm_health_nutr.css" type="text/css" />
<script language="JavaScript" type="text/javascript">
</script>
<style type="text/css">
</style>
</head>
<frameset rows="35%,*" framespacing="3" border="3">
<frame src="title.htm" scrolling="no" marginheight="0" noresize="noresize" name="title">
<frameset cols="16%,*">
<frame src="sidebar.htm" scrolling="no" marginheight="0" noresize="noresize" name="menu">
<frame src="main.htm" scrolling="no" marginheight="0" noresize="noresize" name="main">
</frameset>
</frameset>
<noframes>noframe stuff</noframes>
</html> |
You should have started a new post so more people could see it. |
This is not my home page, and I called it guestbook.htm, incase I save it as index.htm, will it conflict with my home page index.htm? |
|
Samuel Jong
Joined: 06 Jan 2008 Posts: 86
|
Posted: Fri Jan 11, 2008 7:15 pm |
|
|
|
| Samuel Jong wrote: |
| sticks464 wrote: |
This should be saved as index.htm and will be the home page. All other pages should be saved in the same folder as the index page.
| Code: |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<title>Sin Hoa</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="mm_health_nutr.css" type="text/css" />
<script language="JavaScript" type="text/javascript">
</script>
<style type="text/css">
</style>
</head>
<frameset rows="35%,*" framespacing="3" border="3">
<frame src="title.htm" scrolling="no" marginheight="0" noresize="noresize" name="title">
<frameset cols="16%,*">
<frame src="sidebar.htm" scrolling="no" marginheight="0" noresize="noresize" name="menu">
<frame src="main.htm" scrolling="no" marginheight="0" noresize="noresize" name="main">
</frameset>
</frameset>
<noframes>noframe stuff</noframes>
</html> |
You should have started a new post so more people could see it. |
This is not my home page, and I called it guestbook.htm, incase I save it as index.htm, will it conflict with my home page index.htm? |
This is the last code I change:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<title>Sin Hoa</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="mm_health_nutr.css" type="text/css" />
<script language="JavaScript" type="text/javascript">
</script>
<style type="text/css">
</style>
</head>
<frameset rows="35%,*" framespacing="3" border="3">
<frame src="title.htm" scrolling="no" marginheight="0" noresize="noresize" name="title">
<frameset cols="16%,*">
<frame src="sidebar.htm" marginheight="0" noresize="noresize" name="sidebar">
<frame src="main.htm" marginheight="0" noresize="noresize" name="main">
</frameset>
<noframes>noframe stuff</noframes>
</frameset>
</html>
But the display is:
</frameset> noframe stuff </noframes> </frameset>
Please advise the wrong code was written.
BTW, If I insert <body> </body> inside <noframe>, then I can see the correct page is dispalyed in the DreamWeaver. But when I try to preview with IE6, then I get a blank screen.
I am trying to make the table for guestbook.htm with Nested Framesets:
The first <frameset> will have two rows.
The second <frameset> is creating a table within a table. |
|
sticks464
Joined: 31 Dec 2006 Posts: 1122
|
Posted: Fri Jan 11, 2008 7:56 pm |
|
|
|
Sorry, this is what the frames page should be.
| Code: |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<head>
<title>Sin Hoa</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="mm_health_nutr.css" type="text/css" />
<script language="JavaScript" type="text/javascript">
</script>
<style type="text/css">
</style>
</head>
<frameset rows="35%,*">
<frame src="title.htm" scrolling="no" marginheight="0" noresize="noresize" name="title">
<frameset cols="16%,*">
<frame src="sidebar.htm" scrolling="no" marginheight="0" noresize="noresize" name="menu">
<frame src="main.htm" scrolling="no" marginheight="0" noresize="noresize" name="main">
</frameset>
</frameset>
<noframes>
<body>noframe stuff
</body>
</noframes>
</html> |
You can name this anything you want if it is not the homepage. Dreamweaver will not display any document in the design view that has a frameset doctype but will if it has the html or xhtml doctype. If you are using cs3 the frameset doctype is no longer an option when creating new pages. I usually use a text editor like Crimson editor when doing framesets.
I checked the framesetpage in IE5.5-7, FF, Opera and Safari for windows and it will display fine. |
|
Samuel Jong
Joined: 06 Jan 2008 Posts: 86
|
Posted: Fri Jan 11, 2008 9:39 pm |
|
|
|
| sticks464 wrote: |
Sorry, this is what the frames page should be.
| Code: |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<head>
<title>Sin Hoa</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="mm_health_nutr.css" type="text/css" />
<script language="JavaScript" type="text/javascript">
</script>
<style type="text/css">
</style>
</head>
<frameset rows="35%,*">
<frame src="title.htm" scrolling="no" marginheight="0" noresize="noresize" name="title">
<frameset cols="16%,*">
<frame src="sidebar.htm" scrolling="no" marginheight="0" noresize="noresize" name="menu">
<frame src="main.htm" scrolling="no" marginheight="0" noresize="noresize" name="main">
</frameset>
</frameset>
<noframes>
<body>noframe stuff
</body>
</noframes>
</html> |
You can name this anything you want if it is not the homepage. Dreamweaver will not display any document in the design view that has a frameset doctype but will if it has the html or xhtml doctype. If you are using cs3 the frameset doctype is no longer an option when creating new pages. I usually use a text editor like Crimson editor when doing framesets.
I checked the framesetpage in IE5.5-7, FF, Opera and Safari for windows and it will display fine. |
Now the table can be displayed correctly.
But only the main.htm at the right col couldn't automatically link the below website.
<tr>
<td><iframe src="http://picasa.hk/gb01/gbook.php?applicant=sjong822" width="800" height="900">
Your browser din not</iframe></td>
</tr>
Please advise further. Thanks. |
|
sticks464
Joined: 31 Dec 2006 Posts: 1122
|
Posted: Fri Jan 11, 2008 10:08 pm |
|
|
|
This will work for displaying "http://picasa.hk/gb01/gbook.php?applicant=sjong822" in the main frame
| Code: |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<head>
<title>Sin Hoa</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="mm_health_nutr.css" type="text/css" />
<script language="JavaScript" type="text/javascript">
</script>
<style type="text/css">
</style>
</head>
<frameset rows="35%,*">
<frame src="title.htm" scrolling="no" marginheight="0" noresize="noresize" name="title">
<frameset cols="16%,*">
<frame src="sidebar.htm" scrolling="no" marginheight="0" noresize="noresize" name="menu">
<frame src="http://picasa.hk/gb01/gbook.php?applicant=sjong822" marginheight="0" noresize="noresize" name="main">
</frameset>
</frameset>
<noframes>
<body>noframe stuff
</body>
</noframes>
</html> |
|
|
Samuel Jong
Joined: 06 Jan 2008 Posts: 86
|
Posted: Fri Jan 11, 2008 11:17 pm |
|
|
|
| sticks464 wrote: |
This will work for displaying "http://picasa.hk/gb01/gbook.php?applicant=sjong822" in the main frame
| Code: |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<head>
<title>Sin Hoa</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="mm_health_nutr.css" type="text/css" />
<script language="JavaScript" type="text/javascript">
</script>
<style type="text/css">
</style>
</head>
<frameset rows="35%,*">
<frame src="title.htm" scrolling="no" marginheight="0" noresize="noresize" name="title">
<frameset cols="16%,*">
<frame src="sidebar.htm" scrolling="no" marginheight="0" noresize="noresize" name="menu">
<frame src="http://picasa.hk/gb01/gbook.php?applicant=sjong822" marginheight="0" noresize="noresize" name="main">
</frameset>
</frameset>
<noframes>
<body>noframe stuff
</body>
</noframes>
</html> |
|
Problem had been solved. The guest book with nested frames really working now.
There are two scroll bars, one in the frame and the other one is located at the most right side. How to remove the scroll bar in the frame, and only one scroll bar left at the most right side?
Once again, thanks in advance. |
|
Samuel Jong
Joined: 06 Jan 2008 Posts: 86
|
Posted: Fri Jan 11, 2008 11:26 pm |
|
|
|
| Samuel Jong wrote: |
| sticks464 wrote: |
This will work for displaying "http://picasa.hk/gb01/gbook.php?applicant=sjong822" in the main frame
| Code: |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<head>
<title>Sin Hoa</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="mm_health_nutr.css" type="text/css" />
<script language="JavaScript" type="text/javascript">
</script>
<style type="text/css">
</style>
</head>
<frameset rows="35%,*">
<frame src="title.htm" scrolling="no" marginheight="0" noresize="noresize" name="title">
<frameset cols="16%,*">
<frame src="sidebar.htm" scrolling="no" marginheight="0" noresize="noresize" name="menu">
<frame src="http://picasa.hk/gb01/gbook.php?applicant=sjong822" marginheight="0" noresize="noresize" name="main">
</frameset>
</frameset>
<noframes>
<body>noframe stuff
</body>
</noframes>
</html> |
|
Problem had been solved. The guest book with nested frames really working now.
There are two scroll bars, one in the frame and the other one is located at the most right side. How to remove the scroll bar in the frame, and only one scroll bar left at the most right side?
Once again, thanks in advance. |
Sorry, the problem 100% solved, after changing the code with the below:
<frame src="http://picasa.hk/gb01/gbook.php?applicant=sjong822" marginheight="0" noresize="noresize" name="main">
Only one scroll bar showing at the most right side now.
Thanks a lot for your kind support, and it would be highly appciated indeed. |
|
Samuel Jong
Joined: 06 Jan 2008 Posts: 86
|
Posted: Sat Jan 12, 2008 2:26 pm Open a separate page |
|
|
|
| If I go to the guesbook.htm which is a frameset page from the home page index.htm, then there will be a new a separate page. How to make it doesn't appear as a new page? Thanks. |
|
Samuel Jong
Joined: 06 Jan 2008 Posts: 86
|
Posted: Sat Jan 12, 2008 2:49 pm Re: Open a separate page |
|
|
|
| Samuel Jong wrote: |
| If I go to the guesbook.htm which is a frameset page from the home page index.htm, then there will be a new a separate page. How to make it doesn't appear as a new page? Thanks. |
I didn't relize that I set the target as a _blank. Now solved. Thanks. |
|
Samuel Jong
Joined: 06 Jan 2008 Posts: 86
|
Posted: Sun Jan 13, 2008 4:31 am Insert midi into frame |
|
|
|
I try to insert midi sound into nested frame (questbook.htm) but fail. And it workds fine in the main page (index.htm).
The code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 4.01 Frameset//EN"
"http://www.w3.org/TR/xhtml4/frameset.dtd">
<head>
<bgsound src="../httpdocs/698.mid" loop="-1">
<title>Sin Hoa</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="mm_health_nutr.css" type="text/css" />
<script language="JavaScript" type="text/javascript">
</script>
<style type="text/css">
</style>
</head>
<frameset rows="17%,*" cols="*">
<frame src="title.htm" scrolling="no" marginheight="0" noresize="noresize" name="title">
<frameset cols="11%,*">
<frame src="sidebar.htm" scrolling="no" marginheight="0" noresize="noresize" name="sidebar">
<frame src="http://picasa.hk/gb01/gbook.php?applicant=sjong822" marginheight="0" noresize="noresize" name="main">
</frameset>
</frameset>
<noframes>
<body>noframe stuff
</body>
</noframes>
</frameset>
</html> |
|
sticks464
Joined: 31 Dec 2006 Posts: 1122
|
Posted: Sun Jan 13, 2008 6:32 am |
|
|
|
| What's the name of the page your displaying...guestbook>htm? |
|
Samuel Jong
Joined: 06 Jan 2008 Posts: 86
|
Posted: Sun Jan 13, 2008 2:32 pm |
|
|
|
| sticks464 wrote: |
| What's the name of the page your displaying...guestbook>htm? |
It is picasa_gb.htm. It works while preview with IE. But nothing was heard after uploading. |
|
Samuel Jong
Joined: 06 Jan 2008 Posts: 86
|
Posted: Sun Jan 13, 2008 2:36 pm |
|
|
|
| sticks464 wrote: |
| What's the name of the page your displaying...guestbook>htm? |
Here is the code of the index.htm:
<!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"><!-- InstanceBegin template="/Templates/home.dwt" codeOutsideHTMLIsLocked="false" -->
<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<bgsound src="698.mid" loop="-1">
<!-- InstanceBeginEditable name="doctitle" -->
<title>Sin Hoa</title>
<!-- InstanceEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="mm_health_nutr.css" type="text/css" />
<script language="JavaScript" type="text/javascript"> |
|
sticks464
Joined: 31 Dec 2006 Posts: 1122
|
Posted: Sun Jan 13, 2008 2:41 pm |
|
|
|
Try putting this in your title.htm page
| Code: |
<p style="visibility:hidden"><bgsound src="../httpdocs/698.mid" loop="infinite">
<embed src="../httpdocs/698.mid" hidden="true" border="0" width="10" height="10" autostart="true" loop="true"></p> |
Play with the path to the .mid file, it may have to be different for the server than for local viewing. |
|
Samuel Jong
Joined: 06 Jan 2008 Posts: 86
|
Posted: Sun Jan 13, 2008 4:22 pm |
|
|
|
| sticks464 wrote: |
Try putting this in your title.htm page
| Code: |
<p style="visibility:hidden"><bgsound src="../httpdocs/698.mid" loop="infinite">
<embed src="../httpdocs/698.mid" hidden="true" border="0" width="10" height="10" autostart="true" loop="true"></p> |
Play with the path to the .mid file, it may have to be different for the server than for local viewing. |
Still nothing was heard at picasa_gb.htm. |
|
|