PDA

View Full Version : in fact the td i want to be replaced is a flash movie


looloo
10-16-2002, 08:56 AM
sorry i didn't say it before
i would like that td(flash movie) to be replaced by a background.

thank you

glenngv
10-16-2002, 09:00 AM
don't cross-post!
http://codingforums.com/showthread.php?threadid=8106

pls post the code

looloo
10-17-2002, 09:10 AM
in fact the td i want to be replaced is a flash movie
sorry i didn't say it before
i would like that td(flash movie) to be replaced by a background.

thank you

glenngv
10-17-2002, 09:30 AM
post the code pls

looloo
10-17-2002, 09:31 AM
"about" is the botton and the 2nd td is to be changed by clicking the botton.thank you and sorry for my mistakes.


<table bgcolor="#2d2d2d" border="0" cellpadding="0" cellspacing="0" width="800" height="600" align="center">
<tr>
<td width="800" height="187" background="../images/top.jpg">
<img src="../images/pix.gif" width="320" height="155" alt="" border="0">
<font color="#cecece" face="arial" size="1">about</font>
<img src="../images/pix.gif" width="15" alt="" border="0">
<font color="#cecece" face="arial" size="1">portfolio</font>
<img src="../images/pix.gif" width="15" alt="" border="0">
<font color="#cecece" face="arial" size="1">projects</font>
<img src="../images/pix.gif" width="15" alt="" border="0">
<a href="mailto:info@wideopen.co.il"><font color="#cecece" face="arial" size="1">contact us</font></a>
<img src="../images/pix.gif" width="15" alt="" border="0">
<font color="#cecece" face="arial" size="1">Home</font>
</td></tr>

<tr><td width="800" height="279">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
WIDTH=800 HEIGHT=279>
<PARAM NAME=movie VALUE="m2.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="m2.swf" quality=high bgcolor=#FFFFFF WIDTH=800 HEIGHT=279 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>
</td></tr>about

glenngv
10-17-2002, 10:33 AM
<tr><td width="800" height="279" id="myTD">
<div id="flash">
<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
WIDTH=800 HEIGHT=279>
<PARAM NAME=movie VALUE="m2.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="m2.swf" quality=high bgcolor=#FFFFFF WIDTH=800 HEIGHT=279 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</OBJECT>
</div>
</td></tr>

then in the button:

<input type="button" value="Replace Flash by Image" onclick="document.getElementById('myTD').style.backgroundImage='url(\"../images/backgd.jpg\")';document.getElementById('flash').style.display='none'">

looloo
10-17-2002, 12:02 PM
sorry for my ignorance but do i have to replace only
(\"../images/backgd.jpg\") by my image?

what if my button is a text?

glenngv
10-18-2002, 02:34 AM
yes, change the italic text:

(\"../images/backgd.jpg\")


what do you mean your button is text? do you mean <a> tag like this:

<a href="#" onclick="document.getElementById('myTD').style.backgroundImage='url(\"../images/backgd.jpg\")';document.getElementById('flash').style.display='none';return false;">Replace Flash by Image</a>

looloo
10-20-2002, 12:00 PM
:) thank you glenn:)

yes, that's what i ment. but it's not working' here is how i wrote it:

<td width="800" height="187" background="../images/top.jpg">
<a href="#" onclick="document.getElementById('myTD').style.backgroundImage='url(\"../images/midd2.jpg\")';document.getElementById('flash').style.display='none';return false;"><font color="#cecece" face="arial" size="1">about</font></a>
</td></tr>

<tr><td width="800" height="279" id="myTD">
<div id="flash">
<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
WIDTH=800 HEIGHT=279>
<PARAM NAME=movie VALUE="m2.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="m2.swf" quality=high bgcolor=#FFFFFF WIDTH=800 HEIGHT=279 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</OBJECT>
</div>
</td></tr>

glenngv
10-21-2002, 01:55 AM
what browser are you using? it should work with IE5+ and NS6+