Welcome to Dream.In.Code
Getting Help is Easy!

Join 86,241 Programmers. There are 2,267 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

some basic floundering

 
Reply to this topicStart new topic

some basic floundering

Re@p3rM4n
post 7 May, 2008 - 05:21 AM
Post #1


New D.I.C Head

*
Joined: 5 Feb, 2008
Posts: 36



CODE

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
        <meta http-equiv="content-type" content="text/html;charset=utf-8" />
        <title>Micromedia Home</title>
        <link rel="shortcut icon" href="favicon.ico" />
        </head>
        
        <script type="text/javascript">
        <!--
        var x = window.outerwidth;
        var x1 = x-100;
        var x2 = "\'100, ";
        var x3 = x2+x1+"\'";
        var y = window.outerheight;
        var y1 = y-200;
        var y2 = "\'200, ";
        var y3 = y2+y1+"\'";
        document.write("<frameset rows="+y3+"><frame scrolling='no' frameborder='0' title='Micromedia Logo' name='Micromedia Logo' noresize='noresize' src='header.htm' />
    <frameset cols="+x3+">
    <frame src='menu.htm' frameborder='0'title='Menu Bar' name='Menu Bar' noresize='noresize' scrolling='auto' />
    <frame frameborder='0' name='win-main' title='win-main' src='main.htm' noresize='noresize' scrolling='auto' />
    </frameset>
  </frameset>");
        
        
        
        //-->
        </script>    
        
    

</html>
.

the above is a website that my friend is trying to make and wants some help on. unfortunately, i dont know shit about HTML.
lookat it?
-R
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


BenignDesign
post 7 May, 2008 - 06:18 AM
Post #2


D.I.C Regular

Group Icon
Joined: 28 Sep, 2007
Posts: 484

What kind of help does he want? Is there are particular piece of code that's not functioning? It's easier to provide assistance if we know specifically what kind of assistance is being requested.
User is online!Profile CardPM
Go to the top of the page
+Quote Post

Re@p3rM4n
post 7 May, 2008 - 08:59 AM
Post #3


New D.I.C Head

*
Joined: 5 Feb, 2008
Posts: 36

QUOTE(BenignDesign @ 7 May, 2008 - 06:18 AM) *

What kind of help does he want? Is there are particular piece of code that's not functioning? It's easier to provide assistance if we know specifically what kind of assistance is being requested.


when you open it, nothing is displayed. that's the problem
-R
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

BenignDesign
post 7 May, 2008 - 09:02 AM
Post #4


D.I.C Regular

Group Icon
Joined: 28 Sep, 2007
Posts: 484

Just a quick peek at it, but you have declared no body for the document. It is the body that is displayed by the web browser, not the head.

This post has been edited by BenignDesign: 7 May, 2008 - 09:02 AM
User is online!Profile CardPM
Go to the top of the page
+Quote Post

kincaidkmf
post 7 May, 2008 - 09:25 AM
Post #5


New D.I.C Head

*
Joined: 12 Jul, 2007
Posts: 3

I saw a few things:

1. No doctype (won't stop it from working, but still) nevermind, I missed it
2. No body tag
3. outerHeight needs to be capitalized properly (you had a lowercase H)
4. outerWidth needs to be capitalized properly (you had a lowercase W)
5. This won't work in IE6 or 7, they use document.body.clientHeight and document.body.clientWidth.

I didn't include the IE detection, but this should work better for you:

CODE

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>Micromedia Home</title>
<link rel="shortcut icon" href="favicon.ico" />
</head>

<body>
        
        <script type="text/javascript">
        <!--
        var x = window.outerWidth;
        var x1 = x-100;
        var x2 = "\'100, ";
        var x3 = x2+x1+"\'";
        var y = window.outerHeight;
        var y1 = y-200;
        var y2 = "\'200, ";
        var y3 = y2+y1+"\'";
        document.write("<frameset rows="+y3+"><frame scrolling='no' frameborder='0' title='Micromedia Logo' name='Micromedia Logo' noresize='noresize' src='header.htm' \/>    <frameset cols="+x3+">    <frame src='menu.htm' frameborder='0'title='Menu Bar' name='Menu Bar' noresize='noresize' scrolling='auto' \/>    <frame frameborder='0' name='win-main' title='win-main' src='main.htm' noresize='noresize' scrolling='auto' \/><\/frameset><\/frameset>");
        
        //-->
        </script>    
        
    
</body>

</html>


This post has been edited by kincaidkmf: 7 May, 2008 - 10:55 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

BenignDesign
post 7 May, 2008 - 09:29 AM
Post #6


D.I.C Regular

Group Icon
Joined: 28 Sep, 2007
Posts: 484

He had a doc type. It was frameset. It has to be frameset. Because he's using a frameset. Wonder how many more times I can squeeze the word "frameset" into this post....

CODE

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
.
.
.
.
.
.
document.write("<frameset rows="+y3+"><frame scrolling='no' frameborder='0' title='Micromedia Logo' name='Micromedia Logo' noresize='noresize' src='header.htm' />
    <frameset cols="+x3+">
    <frame src='menu.htm' frameborder='0'title='Menu Bar' name='Menu Bar' noresize='noresize' scrolling='auto' />
    <frame frameborder='0' name='win-main' title='win-main' src='main.htm' noresize='noresize' scrolling='auto' />
    </frameset>
  </frameset>");





This post has been edited by BenignDesign: 7 May, 2008 - 09:32 AM
User is online!Profile CardPM
Go to the top of the page
+Quote Post

kincaidkmf
post 7 May, 2008 - 11:01 AM
Post #7


New D.I.C Head

*
Joined: 12 Jul, 2007
Posts: 3

QUOTE(BenignDesign @ 7 May, 2008 - 09:29 AM) *

He had a doc type. It was frameset.


Doh! I crossed it off my list, sorry for the asshattery smile.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

BenignDesign
post 7 May, 2008 - 11:24 AM
Post #8


D.I.C Regular

Group Icon
Joined: 28 Sep, 2007
Posts: 484

Yay! I learned a new word! biggrin.gif
User is online!Profile CardPM
Go to the top of the page
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 5/16/08 08:16AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month