Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
on clicking flash image i want to redirect to a particular web page the following code is working in chrome but not working in IE8 ,IE9...how to code to work in IE8,IE9?

HTML
<td style="width:965px; height: 80px;"><!--<td style="width: 100%; height: 65px;">--> 
       
 
  <div style="removed: absolute; removed 45px; removed 55px; height: 80px; width:201px;">
       <object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
height="80" width="140" style=" border-left:-9px solid #99ccff;" classid="clsid:D27CDB6EAE6D-11cf-96B8-444553540000">
<param name="_cx" value="3175" />
<param name="_cy" value="1720" />
<param name="Movie" value="Movie1.swf" />
<param name="Src" value="Movie1.swf" />
<param name="WMode" value="Window" />
<param name="Play" value="-1" />
<param name="Loop" value="-1" />
<param name="Quality" value="High" />
<param name="SAlign" value="" />
<param name="Menu" value="-1" />
<param name="Base" value="" />
<param name="Scale" value="ShowAll" />
<param name="DeviceFont" value="0" />
<param name="EmbedMovie" value="0" />
<param name="BGColor" value="" />
<param name="SWRemote" value="" />										
					
										
<embed src="Movie1.swf" width="140" height="80" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
											type ="application/x-shockwave-flash"> </embed>
						
									
</object>
 </div>
 <div style="removed: absolute; removed 45px; removed 55px; height: 80px; width: 200px;">
    onclick="document.location = 'index.aspx';">
  </div></td></td>
Posted
Updated 1-Sep-13 2:39am
v4

1 solution

try using the href property of the document.location:
JavaScript
// instead of onclick="document.location = 'index.aspx';"
onclick = "document.location.href = 'index.aspx';"> 


* NOTE: your tags are not well formatted, the onclick is not nested property in the div element!

Cheers,
Edo
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900