Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Placing of a Javascript
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Martin1
Super User

Netherlands
626 Posts

Posted - 23 Dec 2005 :  18:34:32  Show Profile  Reply with Quote
I need to place a very small and simple Javascript at a particular place in my page.

Whats the best way to go about this?

Martin

KnockDown
Practical

Germany
23 Posts

Posted - 23 Dec 2005 :  23:54:49  Show Profile  Visit KnockDown's Homepage  Reply with Quote
Hi Martin,

Only::: place a Html-Box, and paste your Script-Code.
this Box you can move where ever you want!!



########################################################
If you want a Javascript-function with funktion-call?????????
do this:
((You must place your javascript-function in the header-Section of your Site. The Function-Call must be placed in body-Section.))
To implement the javascript-funktion ----> do this::
1. click on a free place of your wished site, to rich the costum-button of it.
2. click the 'custom-button' on the right hand (a new Window apper)
3. Click on 'SCRIPT/EVENT'
4. Click 'Header Code...-button'
5. in this box you paste your Code (Javascript-function).

function-call:::
6. ABSOLUT ALL EVENT's....... YOU CAN now LINK TO THIS FUNKtion

SAMPLE::
This is a JavaScript-function to open a seperat Browser window to view A Picture or another HTML-Site.

:::::::::::
<script language="JavaScript" type="text/javascript">
<!--
function auf(url) {
windowName = "";
options = "";
options += "toolbar=0,";
options += "location=0,";
options += "directories=0,";
options += "status=0,";
options += "menubar=0,";
options += "scrollbars=0,";
options += "resizable=1,";
options += "width=900,";
options += "height=560";
win = window.open(url, windowName , options);
if (!win.opener) {
win.opener = window;
}
};
//-->
</script>
:::::::::::

the Function is called ---> auf(url)
the argument 'url' ---> points to a picture or another site.

To call this function::::
place a Image for example and setup the event-section of it.
for example:
onclick --> javacall --> auf('www.hexagora.com/home.png');
onclick --> javacall --> auf('www.hexagora.com/home.htm');

after you done this, bellow appear this:
onclick, JavaCall, auf('www.hexagora.com/home.png');
##################################################


I hope this helps a little....

KNOCKDOWN bye

Edited by - KnockDown on 24 Dec 2005 00:37:29
Go to Top of Page

Martin1
Super User

Netherlands
626 Posts

Posted - 24 Dec 2005 :  16:09:05  Show Profile  Reply with Quote
Thanks knockdown. I just wasn't sure if I could use the html box for Javascripts.

As far as placing the header codes and so on goes, I don't need this for this particular project and knew how to place them but still wanted to thank you for taking the time to point it out and even give an example script:-)

It's appreciated.

Martin
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000