Go Back   I-Mockery Forum > I-Mockery Miscellaneous Forums > Questions, Suggestions, and Tech Support
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Anonymous Anonymous is offline
Junior Member
 
Join Date: Jan 2003
Anonymous is probably a spambot
Old Aug 2nd, 2004, 09:56 AM       
and here's me trying to use that code I got off the french site. I don't get any errors, but the image just won't switch
??


--------------


<script language="JavaScript" type="text/JavaScript">
function change_swf(file_name)
{
var line="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='300' height='300'> <param name='movie' value='"+file_name+"'> <param name='quality' value='high'> <embed src='"+file_name+"' quality='high' bgcolor="#ffffff" width="300" height="300" name="+file_name+" align="middle" pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed>
</object> ";
document.getElementById("flash").innerHTML = line;
}
</script>

</head>

<body>

<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="500" id="AutoNumber1">
<tr>
<td width="14%">
<form method="POST" action="--WEBBOT-SELF--">
<p align="center">
[img]triangle.gif[/img]

<input type="radio" value="triangle" name="shapes" checked onClick="javascript:change_swf('triangle.swf');"></p>
<p align="center">
[img]circle.gif[/img]

<input type="radio" value="circle" name="shapes" onClick="javascript:change_swf('circle.swf');"></p>
<p align="center">[img]star.gif[/img]

<input type="radio" value="star" name="shapes" onClick="javascript:change_swf('star.swf');"></p>


What's your name?

<input type="text" size="20" value="Enter your name here!">

<p align="center"><input type="submit" value="Submit" name="B1"></p>
</p>
</form>


</td>
<td width="86%" align="center">
<div id="flash">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="300" height="300" id="triangle" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="triangle.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="triangle.swf" quality="high" bgcolor="#ffffff" width="300" height="300" name="triangle" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></td>
</div>
</tr>
</table>
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

   


All times are GMT -4. The time now is 02:13 AM.


© 2008 I-Mockery.com
Powered by: vBulletin
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.