Log In · Register

 
 
Closed TopicStart new topic
Script, explaination?
luvzcha
post Apr 15 2006, 09:57 AM
Post #1


xXxXxbErRyZxXxXx
****

Group: Member
Posts: 190
Joined: Sep 2005
Member No: 235,812



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
post Apr 15 2006, 11:04 AM
Post #2


t-t-t-toyaaa
********

Group: Official Member
Posts: 19,821
Joined: Apr 2004
Member No: 11,270



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
post Apr 15 2006, 11:15 AM
Post #3


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



'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
post Apr 15 2006, 12:50 PM
Post #4


xXxXxbErRyZxXxXx
****

Group: Member
Posts: 190
Joined: Sep 2005
Member No: 235,812



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
post Apr 15 2006, 01:46 PM
Post #5


t-t-t-toyaaa
********

Group: Official Member
Posts: 19,821
Joined: Apr 2004
Member No: 11,270



You use php or iframes or manually put the same codes on each page.
In php you just use and learn php includes.
 
talcumpowder
post Apr 15 2006, 02:05 PM
Post #6


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



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
post Apr 16 2006, 06:52 AM
Post #7


xXxXxbErRyZxXxXx
****

Group: Member
Posts: 190
Joined: Sep 2005
Member No: 235,812



ahh... what does this code do?
CODE
<link rel="stylesheet" type="text/css" href="style.css">
 
freeflow
post Apr 16 2006, 08:39 AM
Post #8


t-t-t-toyaaa
********

Group: Official Member
Posts: 19,821
Joined: Apr 2004
Member No: 11,270



^ 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">
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: