HighDots Forums  

Stop auto insertion of js code for swap image behavior

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Stop auto insertion of js code for swap image behavior in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jaszpurr
 
Posts: n/a

Default Stop auto insertion of js code for swap image behavior - 11-03-2005 , 08:39 PM






Does anyone know of a way to stop Dreamweaver from auto inserting the
javascript code and body code if you use the swap image behavior.

Dreamweaver finally got smart enough to see that it doesn't need to do this
when I have the js code in a outside file that is called in the header, but if
I am working in an includes (which of course has no call to the js file in it)
Dreamweaver, it adds the code to my include. So every time I add that behavior,
I have to strip the added code back out.

Thanks in advance!!

Allison Baerin
Online Design, Inc.



Reply With Quote
  #2  
Old   
Donna Casey
 
Posts: n/a

Default Re: Stop auto insertion of js code for swap image behavior - 11-03-2005 , 08:58 PM






Jaszpurr wrote:
Quote:
Does anyone know of a way to stop Dreamweaver from auto inserting the
javascript code and body code if you use the swap image behavior.

Dreamweaver finally got smart enough to see that it doesn't need to do this
when I have the js code in a outside file that is called in the header, but if
I am working in an includes (which of course has no call to the js file in it)
Dreamweaver, it adds the code to my include. So every time I add that behavior,
I have to strip the added code back out.
you can set up your include to be a "complete" page, then use comments
to hide the html, head, and body tags including the link to an external
file with the swap image behaviors in it

When you need to edit the behavior, uncomment. When done, comment or
make a copy and remove the extraneous tags

or just leave the added functions there and comment those the same way.

there's no other way to do it as DW will always add in the functions for
native behaviors.

Donna


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.