Log In · Register

 
 
Closed TopicStart new topic
A little tiny script help?
Jamesisgsnap
post Apr 14 2009, 11:58 PM
Post #1


Senior Member
****

Group: Member
Posts: 164
Joined: May 2008
Member No: 647,219



Well, I was looking through createblog scripts, and there was this cute little one that I liked.

http://www.createblog.com/javascripts/887-...ion-w-keywords/

I use header and footer for my site, Now, The guy says to paste in your index section only, but there is only one code in the index section and that is the header class
CODE
<div class="mainheader">Like so</div>


So, idk if I put it in index or no?
 
Jamesisgsnap
post Apr 15 2009, 12:28 AM
Post #2


Senior Member
****

Group: Member
Posts: 164
Joined: May 2008
Member No: 647,219



So put ^-That code in my header page?
 
Jamesisgsnap
post Apr 15 2009, 09:52 PM
Post #3


Senior Member
****

Group: Member
Posts: 164
Joined: May 2008
Member No: 647,219



Gah :(
 
newkidontheblock
post Apr 16 2009, 08:47 AM
Post #4


Offline.
*****

Group: Official Designer
Posts: 609
Joined: Mar 2007
Member No: 507,591



You can create a page called index.html and placed the code provided by divergent in it.

What script says to place the code into an the head tag it means; in valid html pages there are different parts such as the head and body.

CODE

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title> Website - Title </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>

<body>
<p> Content to be displayed in the browser window.
</body>
</html>

the red section is the head section. and that where you place the code form the script.

CODE
<head>
<title> Website - Title </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<META name="Description" content="SITE DESCRIPTION">
<META name="keywords" content="keywords,go,here,separate,by,commas">

</head>
 
Jamesisgsnap
post Apr 16 2009, 08:35 PM
Post #5


Senior Member
****

Group: Member
Posts: 164
Joined: May 2008
Member No: 647,219



QUOTE(divergent @ Apr 15 2009, 11:11 PM) *
There's no header page. It's just the top of index.html page.



So basically I can just put it as

CODE
<META name="Description" content="SITE DESCRIPTION">
<META name="keywords" content="keywords,go,here,separate,by,commas">


Just right above my index content?
Or under it? Like before footer starts?
Because on header, it starts with one of the classes.
And uh, If I put it in there it wouldn't work.
 
fixtatik
post Apr 16 2009, 11:28 PM
Post #6


Senior Member
******

Group: Member
Posts: 1,237
Joined: May 2008
Member No: 648,123



it doesn't go inside a div named "header." it goes between your <head></head> tags, which should be just after the <html> tag at the top of your pages.
 

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