[SOLVED] How to put custom code in the body of the page?

Hi everyone. I need to place a simple html code in the body ofmy page. Is there a way to do it?
This is the code:
<script>window.dhx_globalImgPath = “…/slidebar/dhtmlxSlider/codebase/imgs/”;</script>
<script src="…/slidebar/dhtmlxSlider/codebase/dhtmlxcommon.js"></script>
<script src="…/slidebar/dhtmlxSlider/codebase/dhtmlxslider.js"></script>
<script src="…/slidebar/dhtmlxSlider/codebase/ext/dhtmlxslider_start.js"></script>
<link rel=“STYLESHEET” type=“text/css” href=“slidebar/dhtmlxSlider/codebase/dhtmlxslider.css”>

<input id=“input1” type=“text”>
<script>//slider 0-100, step 1;
var slider1 = new dhtmlxSlider(null, 500);
slider1.linkTo(‘input1’);
slider1.init();
</script>

Re: How to put custom code in the body of the page?

I create a PHP method, then call the method in onLoad.

Regards,
Scott.

Re: How to put custom code in the body of the page?

Thank you but it doesn’t work.
If you look at the html source of the final page: the code is written before the <html> tag.
I need the code to be written within the <body>.

Fabio

[SOLVED] How to put custom code in the body of the page?

In a form application, there is a way to put a custom code within the <body>.
In my case: I need to write a javascript to be executed without any event.
Go to layout - header and footer.
Enable footer visualization
In the NM_FOOTER_DATA choose “Value” and put your code in the field that appears.

Note: the code must be in one line and without ’ " ’ character.

This works:
<input id=input1 type=text><script>var slider1 = new dhtmlxSlider(null, 500);slider1.linkTo(‘input1’);slider1.init();alert();</script>

It’s not a beautifull way. I hope that the development team solve the problem with some free code area.

Re: [SOLVED] How to put custom code in the body of the page?

Please provide your solution to support@netmake.com.br and ask for a better solution.

Regards,
Scott.