[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Adding Javascript functions to catalog
Use the SRC attribute of the SCRIPT tag:
<SCRIPT language="Javascript"
SRC="my_relative_directory/my_scriptsfile.js"></SCRIPT>
Put all your javascripts in a text file with a ".js" extension, somewhere
in your filespace, and link it to whatever pages you need to using the
above tag pair in the header of each catalog page. This way all the
scripts are centrally located, and if you ever need to make changes, you
only need to do so in your ".js" file; every page that contains this tag
will always be working with the latest scripts!
- Ed L.
>****** message to minivend-users from Eric Paul <epaul@spellbook.net>
>******
>
>Is there any easy way to add a hefty amount of Javascript code to the HEAD
>section of all my minivend pages? My client wants to make the navigation
>images change color when you move your mouse over them. Really simple
>little script, but it takes a lot of setup code to do that really simple
>function. And I'm not looking forward to going into each and every file
>with a HEAD in it and copying in that code, because I know I'll probably
>miss one. Plus if they decide they want to change things later, then I
>have to go thru each one of those files again and change the script. Any
>suggestions of how I can make this easier to maintain?
>
>Eric
>---
>Eric Paul
>SpellBook Systems
>http://www.spellbook.net
>-
>To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
>email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
>Archive of past messages: http://www.minivend.com/minivend/minivend-list
-
PRINTEX Marking Technologies
12113 Kirkham Rd.
Poway, CA 92064 U.S.A.
(858) 513-2418
(800) 982-1928
(858) 513-2419 fax
edlafrance@printexusa.com
http://www.printexusa.com