Help - Search - Members - Calendar
Full Version: Script
Forums > Resource Center > Webmasters' Corner > Resolved Topics
luvzcha
can someone like explain this script?

CODE
<html>
<head>
<title>THE TITLE</title>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<meta name="keywords" content="BLAHABLAh">
<meta name="Description" content="ANYTHING!"/>
<meta name="Owner" content="UR E-MAIL"/>
</head>
<frameset rows="1,*" cols="*" framespacing="0" frameborder="NO" border="0">
  <frame src="./counter.php?FROMWEB=yes" name="topFrame" scrolling="NO" noresize >
  <frame src="./index/index.htm" name="bottomFrame" scrolling="NO" noresize>
</frameset>
<noframes><body>

</body></noframes>
</html>


how could this script be so short but have lots of stuff on the website? wacko.gif
freeflow
Did you take that out of someones source?

There obviously using frames to link content in. Its not a script thats a website structure. Thats like there website design. Scripts are like little codes that you use to do things.
talcumpowder
'cause it uses frames. I know Toya's gonna explain it too... But this is line by line. =3
You're reading the <!-- stuff, by the way.
CODE
<!-- begins the page! -->
<html>
<!-- begins the head section of the page, where all the not-content goes -->
<head>
<!-- this would be the title of your page, what shows up in the topmost bar of your browser -->
<title>THE TITLE</title>
<!-- this is the character encoding of the page, it tells the page what language to be in. This seems to be... Chinese? ->
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<!-- this sets the keywords that will pull your page up in a websearch on, say, google. pick words that describe your site! -->
<meta name="keywords" content="BLAHABLAh">
<!-- this is the little description that shows up under the page title when you search it, pick something short and to the point! no one wants to be bored... -->
<meta name="Description" content="ANYTHING!"/>
<!-- well, this tells who owns the page -->
<meta name="Owner" content="UR E-MAIL"/>
<!-- ends the head section -->
</head>
<!-- this is the opening frameset tag, it contains all the variables for all your frames. widths, heights, spacing, borders... -->
<frameset rows="1,*" cols="*" framespacing="0" frameborder="NO" border="0">
<!- this is your first frame. it's name is "topFrame" (just like that), it won't scroll, won't resize, and it pulls up the page ./counter.php?FROMWEB=yes -->
  <frame src="./counter.php?FROMWEB=yes" name="topFrame" scrolling="NO" noresize >
<!-- this is your second frame. it's name is "bottomFrame" (just like that), it won't scroll, won't resize and it pulls up the page ./index/index.htm -->
  <frame src="./index/index.htm" name="bottomFrame" scrolling="NO" noresize>
<!-- this closes your frameset, and tells the page when you've stopped wanting frames -->
</frameset>
<!-- this is what will show up if a visitor's computer doesn't support frames. you really ought to provide a noframes version too... but it isn't completely nessecary. -->
<noframes><body></body></noframes>
<!-- well, this end yor page. -->
</html>
luvzcha
Thx guys... i get it now ^^

BTW, if i want to keep every pages the same design, what code/ script should i use? I mean that if u have a few different pages, different contents, but u don't want to copy the whole script everytime.. is there a code for it?
freeflow
You use php or iframes or manually put the same codes on each page.
In php you just use and learn php includes.
talcumpowder
If you were using that particular code (the one at the beginning), you'd just call up different pages. For example, this page. Fool around with the navigation, notice how the page URL (in the adress bar) will remain the same.
So yeah. Read up on iFrames or PHP.
luvzcha
ahh... what does this code do?
CODE
<link rel="stylesheet" type="text/css" href="style.css">
freeflow
^ Thats her/he linking a stylesheet.
You make a file called something.css and you put your css in there. Then you use that code to link it to every page..

<link rel="filename.css" type="text/css" href="style.css">
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.