HighDots Forums  

Missing type on rollover javascript

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Missing type on rollover javascript in the Macromedia Dreamweaver forum.



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

Default Missing type on rollover javascript - 11-01-2005 , 11:04 AM






I've added a rollover to a page which is attached to a template. Dreamweaver
generated some javascript for the rollover which for some reason appeared in
the uneditable area of the page.

The javascript begins:

<script language="JavaScript">

To make this valid, I want to add type="text/javascript" to the script tag.

Althought the script doesn't exist in my template, when I try to edit it in
the page, it looks as though it works, then as soon as I make any small change
to the template, it wipes out my edit to the page.

Has anyone else had this problem?

Best wishes,

Maria




Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Missing type on rollover javascript - 11-01-2005 , 11:08 AM






Which DW are you using?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
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
==================


"mdroz" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I've added a rollover to a page which is attached to a template.
Dreamweaver
generated some javascript for the rollover which for some reason appeared
in
the uneditable area of the page.

The javascript begins:

script language="JavaScript"

To make this valid, I want to add type="text/javascript" to the script
tag.

Althought the script doesn't exist in my template, when I try to edit it
in
the page, it looks as though it works, then as soon as I make any small
change
to the template, it wipes out my edit to the page.

Has anyone else had this problem?

Best wishes,

Maria






Reply With Quote
  #3  
Old   
Mick White
 
Posts: n/a

Default Re: Missing type on rollover javascript - 11-01-2005 , 11:37 AM



mdroz wrote:

Quote:
I've added a rollover to a page which is attached to a template. Dreamweaver
generated some javascript for the rollover which for some reason appeared in
the uneditable area of the page.

The javascript begins:

script language="JavaScript"

To make this valid, I want to add type="text/javascript" to the script tag.
No, you need to remove the language attribute.
F & R may be the way to go.
Mick

Quote:
Althought the script doesn't exist in my template, when I try to edit it in
the page, it looks as though it works, then as soon as I make any small change
to the template, it wipes out my edit to the page.

Has anyone else had this problem?

Best wishes,

Maria




--
Isn't it enough to see that a garden is beautiful without having
to believe that there are fairies at the bottom of it too?
[Douglas Adams]


Reply With Quote
  #4  
Old   
mdroz
 
Posts: n/a

Default Re: Missing type on rollover javascript - 11-02-2005 , 04:36 AM



Thanks - I've just tried an F& R:

Find: <script language="JavaScript">
Replace: <script type="text/javascript">

It looked as though it had worked, but as soon as I made a slight change to
the template (added a blank line) and applied the change to all files that use
the template, the original <script language="JavaScript"> returned. Bear in
mind that there is no rollover or rollover script within the template.


Reply With Quote
  #5  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Missing type on rollover javascript - 11-02-2005 , 07:08 AM



That would obtain if you did not make the change you thought you did in the
template file. Can you show me this file?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
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
==================


"mdroz" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Thanks - I've just tried an F& R:

Find: <script language="JavaScript"
Replace: <script type="text/javascript"

It looked as though it had worked, but as soon as I made a slight change
to
the template (added a blank line) and applied the change to all files that
use
the template, the original <script language="JavaScript"> returned. Bear
in
mind that there is no rollover or rollover script within the template.




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.