|
Post by satrider on Jan 11, 2005 23:48:15 GMT
Trying to put google ad sence in the body of my page(master) but a no go. From extras selected javascript....clicked on javascrip in object properties...pasted script in editor...saved...uploaded When I view source it is there at the bottom of page, but dose not display. Another question how do we tell Antenna where we want to display javascript in the body?
|
|
wkenny
Senior Member
Posts: 70
|
Post by wkenny on Jan 12, 2005 14:52:36 GMT
I have found the best way to position javascript is to embed it in a table or text box. E.g.
<td style=" font-size: 13"> <script language="JavaScript" type="text/javascript"> <!-- Module:vee(1);//--></script> </td>
This calls an external script which generates the contents for this column.
The downside to this approach is maintaining the scripts outside Antenna.
|
|
|
Post by Stormdance on Jan 12, 2005 18:02:58 GMT
Hi Satrider,
One approach for Javascript that generates something visible (that you want to be able to position) is to use the Visual HTML control - available on the Extras menu.
This is essentially a drag & drop control that accepts custom HTML code (and Javascript) with the added advantage of x,y,width and height properties for exact positioning.
So you can drop one of these on your page and enter your code using it's Custom-html property e.g.
<script language="Javascript" type="text/javascript"> ...etc...
You need to preview the page in a browser to see the results since Javascript does not execute within the editor.
If you have custom Javascript that needs to go in the HEAD of the page (for example a pre-defined function) then you can add this in the same way using the Custom-html property on the Page Properties layer.
Cheers, Stormdance
|
|
|
Post by satrider on Jan 13, 2005 1:41:02 GMT
Storm this just is not working...tried the text box also....anymore suggestions. I see ther is nothing in the ad channel so maybe google is still crawling the site.
Update: Got it working on the index page, but dose not work on my master....dose that sound norm! There is java code on the master...how do you get it off??
|
|