| Murray *TMM* 2004-06-11, 11:14 pm |
| You have problems.
You cannot apply behaviors to elements in Library items, because there is no
<head> and no <body> tag in a Library item's code. DW literally would not
know where to put the code.
Your only solution (assuming you don't want to hand code and muck around in
code view) would be to completely recreate the Library item from scratch
*WITH THE BEHAVIOR ALREADY APPLIED*. Use this procedure -
1. Create a new page
2. Put your image on it
3. Put any additional layout elements needed on the page
4. Apply the behavior to the image and finish the page as needed
5. Delete the existing Library item from the ASSET panel
6. Select all relevant items in Design view on the new page and use MODIFY
| Library > Add Object to Library
7. Name the new Library item with the same name you used before
8. Open a page containing the old Library item and force a sitewide update
of all pages
Now you are almost finished. What will have happened (I think) is that you
will now have a good Library item with the behavior call in an event handler
around the image. But you still have a problem - you will have to add the
javascript function for the new behavior to the head of each page in which
that Library item is inserted (assuming it's not there already for use by
some other event).
Are you with me so far?
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"sgboston" <webforumsuser@macromedia.com> wrote in message
news:cadik1$7ek$1@forums.macromedia.com...
> Ive got a problem.
> I have a "Join Our Newsletter" image in a library element that I apply to
> every page.
>
> I cant apply an OnClick - Open New Browser Window when I edit my
> libraryfile1.lbi file.
> In fact all the + and - are greyed out.
>
> Can someone help?
> I tried saving it as an html file for you.
> http://www.acesoverkings.org
>
|