Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Placing of a Javascript

Note: You must be registered in order to post a reply.

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert Email Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
Martin1 Posted - 23 Dec 2005 : 18:34:32
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
2   L A T E S T    R E P L I E S    (Newest First)
Martin1 Posted - 24 Dec 2005 : 16:09:05
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
KnockDown Posted - 23 Dec 2005 : 23:54:49
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

Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000