wrote on 25 dec 2007 in comp.lang.javascript:
> I'm trying to dynamically load an image into an java button from an
> html page.
This is not a Java NG, and Javascript-buttons so not exist.
> Basically What I have is an HTML page called "samples.html" with the
> following:
> <script>Application.addTitle('<img border=0 src="image.gif"/>',
> 'open_window2' )</script>
<script> is a bad way to start javascript use:
<script type='text/javascript'>
The rest is not Javascript, please ask in an aprpriate NG.
> I want to get image.gif into the IMAGE GOES HERE area on a page called
> "application.js":
> addTitle: function(title, id) {idButton = id + '_click_button';
> document.write( title + " <span class='title' id='" + title + "'
> href='#' onmouseover=\"$('" + title + "').addClassName('selected')\"
> onmouseout=\"$('" + title + "').removeClassName('selected')\" onclick=
> \"Application.evalCode('" + id + "', true)\"> IMAGE GOES HERE </
>span>")
> },
>
> Any help would be mucho appreciated. I attached both files.
>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
|