Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 07-27-2004, 01:45 PM Clean Code
LizzeyDripping's Avatar
Skilled Talker

Posts: 77
Name: Sarah
Trades: 0
This may be a weird question, I don't know, but I thought if anyone could answer this query, it would be you guys!

I am in the process of cleaning up the code on my site before I make it live as I have noticed Dreamweaver can leave a bit of a mess, and as I am a novice when it comes to things like Javascript, I have used many free cut and paste scripts for different types of menu effects which I have then customized on my pages.

I have exported the different styles into external style sheets, which has reduced the amount of code on my pages considerably, but I am still left with a mess of Javascripts for the menus sitting in the head of the page looking untidy.

I may be being very dense, but I am sure I haven't seen all this clutter on other sites, so is there a way of exporting all of that script out into a separate file and then reattaching it like the style sheets? Like I say, I really don't understand Javascript, and being on a tight learning curve and deadline haven't had time to learn - any help gratefully appreciated!
LizzeyDripping is offline
Reply With Quote
View Public Profile Visit LizzeyDripping's homepage!
 
 
Register now for full access!
Old 07-27-2004, 01:54 PM
Unknown.

Posts: 1,693
Trades: 0
First you need to put all your scripts into one file..

Do not include the <script> and </script> and then save it as filename.js

Then when you want to call the javascript file insert the following into the head...

<SCRIPT LANGUAGE="JavaScript" SRC="filename.js"></SCRIPT>

Hope this helps

-James
Dark-Skys99 is offline
Reply With Quote
View Public Profile
 
Old 07-28-2004, 06:52 AM
LizzeyDripping's Avatar
Skilled Talker

Posts: 77
Name: Sarah
Trades: 0
Thank you thank you thank you!

Last edited by LizzeyDripping; 07-28-2004 at 07:10 AM.. Reason: Worked out I was doing it wrong - what a dope!
LizzeyDripping is offline
Reply With Quote
View Public Profile Visit LizzeyDripping's homepage!
 
Reply     « Reply to Clean Code
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28770 seconds with 12 queries