JavaScript in Standard Page

Hi,


I try use Spry tools from Dreamweaver on my sites.



When I put for ex. this script:

[codebox]<script type="text/javascript">

<!–

var Accordion1 = new Spry.Widget.Accordion("Accordion1");

//–>

</script>[/codebox]



In bottom of standard Page or in Paint layout and Commit,

script is removed.



Only work if I put this script in design.



Any suggestions how to us it in standard page/Paint Layout?



Regards

Arek

[quote]Any suggestions how to us it in standard page/Paint Layout?


Regards

Arek[/quote]

Are you pasting this into the WYSIWYG? If so try using the raw layout.

Use it as a snippet maybe?

I copy src from Dreamweawer and paste to editor in src mode

Thank you people for your help :slight_smile:


I change type to raw html and now painting layout work fine

for this standard pages.



Kind regards

Arek