Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Site Integration
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

IrishYankee
Starting Member

4 Posts

Posted - 01 November 2004 :  17:16:19  Show Profile
Hello,

I installed the site integration mod, but am having trouble how to input my header, footer and CSS information in the inc_header/inc_footer.asp pages.

I split my basic web page into two .js files, one header and one footer. In html i would add this:

<head>
<script type="text/javascript" language="JavaScript1.2" src="/_menu/scripts/links.js"></script>
<LINK REL=STYLESHEET HREF="/_menu/scripts/AOwnage.css" TYPE=TEXT/CSS>
</head>

<body>
<script type="text/javascript" language="JavaScript1.2" src="/_menu/scripts/header.js"></script>


and at the bottom of course, this:

<script type="text/javascript" language="JavaScript1.2" src="/_menu/scripts/footer.js"> </script>
</body>


My question is, how do i input these .js and CSS lines into the inc_header/footer.asp pages?

Thanks,

Irish

Edited by - IrishYankee on 05 November 2004 09:48:10

IrishYankee
Starting Member

4 Posts

Posted - 05 November 2004 :  09:47:43  Show Profile
There is no way to incorporate the forums inside my design template? all i want to do is confine the forums inside my header and footer, which I have turned into two javascripts. I am not much of a coder and do not understand how to put my two pointer scripts inside the asp stuff to get it to work.

Thanks,

IrishYankee

Edited by - IrishYankee on 05 November 2004 09:49:27
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 05 November 2004 :  15:29:57  Show Profile  Visit D3mon's Homepage
Three important points about this MOD which should help:

1. Don't put any <html>, <head>, or <body> tags inside the site_* include files.
2. If using tables, make sure they are valid HTML and are complete.
3. If you wish to link-in any external Javascript or CSS files then this will need to be done in the existing Snitz inc_header.asp file.

#3 is probably the root of your problems


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"
Go to Top of Page

IrishYankee
Starting Member

4 Posts

Posted - 07 November 2004 :  01:09:11  Show Profile
thanks d3mon, will try out.
Go to Top of Page

IrishYankee
Starting Member

4 Posts

Posted - 08 November 2004 :  09:05:24  Show Profile
Sorry ahead of time for my lack of asp knowledge, but what is the correct coding of inserting a .js line into asp?

example, top of inc_header.asp is:
<!--#INCLUDE FILE="inc_func_common.asp" -->
<%

if strShowTimer = "1" then
'### start of timer code
Dim StopWatch(19)

sub StartTimer(x)
StopWatch(x) = timer
end sub

function StopTimer(x)
EndTime = Timer

so I guess I am asking, where and how to I insert my .js code, which includes my header, links and content table into this: it is a file called, header.js.

In html i simply put:

<script type="text/javascript" language="JavaScript1.2" src="/scripts/header.js"></script>

and it points to it and does what it should.

Thanks for the help, it is so very much appreciated.

Irish.



Go to Top of Page

muzishun
Senior Member

United States
1079 Posts

Posted - 08 November 2004 :  11:28:58  Show Profile  Visit muzishun's Homepage
If you're using the Site Integration MOD (definitely worth checking out), then it's a cinch. In the inc_site_header.asp simply have the following line of code:

Response.write "<script type=""text/javascript"" language=""JavaScript1.2"" src=""/_menu/scripts/header.js""></script>" & vbNewline


For inc_site_footer.asp you want this:

Response.write "<script type=""text/javascript"" language=""JavaScript1.2"" src=""/_menu/scripts/footer.js""> </script>" & vbNewline


I just copied these links from your original post, so if the src isn't right, just change that part. You can find the Site Integration MOD (if you aren't already using it) here.

Bill Parrott
Senior Web Programmer, University of Kansas
Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com)
Personal Website (www.chimericdream.com)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.32 seconds. Powered By: Snitz Forums 2000 Version 3.4.07