HighDots Forums  

Not sure

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Not sure in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
RussianBlue webforumsuser@macromedia.com
 
Posts: n/a

Default Not sure - 07-09-2003 , 07:09 AM






Basically I want something which will make it easier for me to turn repetative sections of my websites into External Javascript.

e.g. in a seven page website I have a graphical, rollover navigation bar which appears in the same place on every page, if I could get all of that code into an External Javascript document (just like I can with .css), then my pages could load a lot faster.



Reply With Quote
  #2  
Old   
Flashjunky webforumsuser@macromedia.com
 
Posts: n/a

Default Re:Not sure - 07-09-2003 , 08:01 AM






OH! I getcha...

<script language="javascript" src="myJavascript.js"></script>

TA-DA!

When you make the .js file you don't need to put teh script tag in, just code as you would normally...

You can see an example of this at: -

http://www.dinkymonkeydonkey.com/Javascript/spaceTrader.asp

MX is like a box of chocolates - Someone's usually eaten the good bits already!

Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.