Hi,
I Need help changing the content of a DIV. I sincerely researched the
issue and have not found a solution except to scrap the idea and stick
with the iframe code that I had been using. My purpose here is to
avoid iframes.
I know how to change the DIV content to other basic html statements,
such as basic IMG's or Lists, but I want to put a Javascript into the
DIV, and have not found a way to do it.
The Javascript that I want to place into the DIV is a typical
tickerbox, and it is found at:
http://www.24fun.com/downloadcenter/...xtbgfader.html
I saved the code for the tickerbox to a "tickerbox. js" file.
The relevant code:
(in Head...)
..box2 {width: 408px; height:88px;}
<script>
function jumptodiv() {
document.getEle mentById("area2 ").innerHTM L = ????
}
</script>
(Body...)
<DIV id="area2" style="box2">
<img src="someintrod uctionphoto.jpg ">
<!-- the goal is to replace this photo with the Tickerbox
Javascript when user clicks the button below -->
</div>
<form>
<input type="button" value="About" onClick="jumpto div()">
</form>
A working solution will be sincerely appreciated. (As a sidenote, I
cannot seem to get ANY javascript to work properly when "poked" into
the DIV. Even a plain alert statement will render, but will then give
an error.)