Author |
Topic |
|
IrishYankee
Starting Member
4 Posts |
Posted - 01 November 2004 : 17:16:19
|
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
|
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 |
|
|
D3mon
Senior Member
United Kingdom
1685 Posts |
Posted - 05 November 2004 : 15:29:57
|
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" |
|
|
IrishYankee
Starting Member
4 Posts |
Posted - 07 November 2004 : 01:09:11
|
thanks d3mon, will try out. |
|
|
IrishYankee
Starting Member
4 Posts |
Posted - 08 November 2004 : 09:05:24
|
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.
|
|
|
muzishun
Senior Member
United States
1079 Posts |
Posted - 08 November 2004 : 11:28:58
|
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) |
|
|
|
Topic |
|