Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-07-2003, 08:11 PM   #1
Dildozer
Confirmed User
 
Join Date: Jul 2002
Location: Montreal
Posts: 7,519
hahahahahahahahahaha help

What's the code to load some j a v a s c r i p t from a .js file instead of having the whole code in the headers?
__________________
Spam link here
Dildozer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-07-2003, 08:12 PM   #2
Lane
Will code for food...
 
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
<script src=file.js>

i think
__________________
Lane is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-07-2003, 08:12 PM   #3
cluck
Confirmed User
 
Join Date: Dec 2002
Location: New Jersey
Posts: 5,248
<.skript src="urskript.js"><./skript>
__________________
icq 279990726
www.mcdonalds.com <- great money making opportunity
cluck is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-07-2003, 08:14 PM   #4
Dildozer
Confirmed User
 
Join Date: Jul 2002
Location: Montreal
Posts: 7,519
sweet thanks
__________________
Spam link here
Dildozer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-07-2003, 08:16 PM   #5
digihax
So Fucking Banned
 
Join Date: Feb 2003
Posts: 349
why would it make a difference if it was in your headers or in a seperate file?
digihax is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-07-2003, 08:18 PM   #6
psyko514
See sig. Join Epic Cash.
 
Join Date: Oct 2002
Location: Montreal, Quebec. ICQ: 214702014
Posts: 22,366
Quote:
Originally posted by digihax
why would it make a difference if it was in your headers or in a seperate file?
if you have a script that you use on several pages, it's a lot more convienient and economical to use it as an include file as opposed to putting it on each page.
__________________

Bad Girl Bucks
- 50% Revshare through CCBill.
Promote BrandyDDD, Pixie's Pillows, Action Allie and more!

Phoenix Forum Pics | Webmaster Access Montreal pics
email: psyko514(a)gmail.com | icq: 214-702-014
psyko514 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-07-2003, 08:22 PM   #7
WiredGuy
Pounding Googlebot
 
Industry Role:
Join Date: Aug 2002
Location: Canada
Posts: 34,504
It also helps for those search engines which eat spider food, keeping javaskripts out gives a better chance to grab some relevant content since most javaskripts go into the headers.

WG
__________________
I play with Google.
WiredGuy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-07-2003, 08:27 PM   #8
Dildozer
Confirmed User
 
Join Date: Jul 2002
Location: Montreal
Posts: 7,519
hmm doesn't seem to be working, when i put the skript directly in my headers it works but when i try this method it won't do shit
__________________
Spam link here
Dildozer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-07-2003, 08:32 PM   #9
psyko514
See sig. Join Epic Cash.
 
Join Date: Oct 2002
Location: Montreal, Quebec. ICQ: 214702014
Posts: 22,366
try specifying the script language, and make sure you use the full path:

{skript language="javaskript" src="includes/file.js"}

replace brace brackets with angle brackets, obviously
__________________

Bad Girl Bucks
- 50% Revshare through CCBill.
Promote BrandyDDD, Pixie's Pillows, Action Allie and more!

Phoenix Forum Pics | Webmaster Access Montreal pics
email: psyko514(a)gmail.com | icq: 214-702-014
psyko514 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-07-2003, 08:34 PM   #10
Lane
Will code for food...
 
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
Quote:
Originally posted by psyko514


if you have a script that you use on several pages, it's a lot more convienient and economical to use it as an include file as opposed to putting it on each page.
but it means an extra http connection for the browser, thus slower load time.. not that its gonna be significant though.
__________________
Lane is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-07-2003, 08:35 PM   #11
Dildozer
Confirmed User
 
Join Date: Jul 2002
Location: Montreal
Posts: 7,519
Quote:
Originally posted by psyko514
try specifying the script language, and make sure you use the full path:

{skript language="javaskript" src="includes/file.js"}

replace brace brackets with angle brackets, obviously
that did it thanks
__________________
Spam link here
Dildozer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.