View Single Post
  #11  
whoreable whoreable is offline
Mocker
whoreable's Avatar
Join Date: Feb 2003
whoreable is probably a spambot
Old Aug 2nd, 2004, 02:11 AM       
you can do an onclick to call a function to change the html in the div

using innerhtml

should just be able to change the link to the flash file

that is assuming you just need to change the html on the page to change the flash file



<script language="JavaScript">

function test(link1)
{
document.getElementById('test1').innerHTML=link1;
}
</script>

<div id=test1>
test
</div>
<input type="button" value="1" onclick=test("linkforswf1")>
<input type="button" value="2" onclick=test("linkforswf2")>
<input type="button" value="3" onclick=test("linkforswf3")>
Reply With Quote