Dynamically added images

B

blakebertuccelli

I'm trying to dynamically load an image into an java button from an
html page.

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>


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.
 
E

Evertjan.

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top