Computer problems,Computer help
*AX SOFT>>>Programming & Design

Dreamweaver CS3: Advanced Library Function?


Hello,

I got a js/css dropdown menu. part of it is in the HEAD tags and the rest is in the BODY.

I want to manage it like the library items, meaning:

1. I create a library item
2. Add instances on the webpages ( if one copy is modified, they are all updated)

The problem is the the library function only allows you to do this with elements that in the BODY tags.

How can I have this kind of library management for elements outside the BODY tag?

Thanks

It's quite simple. Follow these steps

1. Create a new file with any name having an extension .js, (like myscript.js)

2. Cut and paste all of your code from HEAD tags of a page into this file.

3. Now add this line in the HEAD tags of each page which needs this code.
<script type="text/javascript"
src="myscript.js">
</script>

NOTE: I'm assuming that you've created the myscript.js file in the same directory where your HTML page resides.


Now, when you need to change some code of the myscript.js, it will automatically be adopted by all other pages using this script.

Tags
  General - Computers & Internet   Software   Security   Programming & Design   Facebook   Flickr   Google   MSN   MySpace
Related information
  • Will learning web design on a PC be tough to transition to a Mac environment?

    there is not going to be much difference as long as you're familiar w\ those adobe programs.

    ...
  • I want to be a programming wizard...?

    to be a programmer... he is always platform and pro-language nutral I.e he should be able to work on any technology and any language. If you are presnted with a new language you should be able ...

  • Salary for automotive developer?

    regardless of what you developer for the engineering world weathers is automotive, or simple castings. the type of development is like all the others. salary is based on exp.., type of degree. ...

  • Is it good to use a content management system or build a classical website?

    I'm a web designer and web applications developer, fully capable of building a framework and a full CMS from scratch if need be (and would actually consider it a fun project, if I could find s...

  • Does anyone have any good admin scripts for sa-mp?? and if so can i use them??

    You might take a look here ... ...

  • Is there a programme to hide active programme..?

    Yes there is a very easy way, takes about 10 seconds to set up but I am not going to tell 'cause how do I know you will use it for good rather than evil?

    ...
  • What kind of Programming Language is HTML?

    Technically, its not actually a programming language. Its a markup language. But if you want to treat it as a very limited programming language, it would be a declarative language because you are t...

  • Cout << "0123456789ABCDEF"[((n >> i*4) & 0xF)]; Any one plz can explain the meaning of this line,

    It prints the hexadecimal value of n, where i is the digit number. Each hexadecimal digit represents 4 bits, so you start by looping i from 0 to b/4, where b is the number of bits in n (8 for a ...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster