fullyloaded Posted April 13, 2007 Share Posted April 13, 2007 hi everyone is there any way to have a simple flash box on a website and have it invisable and when you click a button it will show?hope you know what im talking about lol in php Quote Link to comment Share on other sites More sharing options...
Psycho Posted April 13, 2007 Share Posted April 13, 2007 You are looking for a JavaScript solution. This is the wrong forum. Quote Link to comment Share on other sites More sharing options...
fullyloaded Posted April 13, 2007 Author Share Posted April 13, 2007 why? can it be done in php? ??? Quote Link to comment Share on other sites More sharing options...
jitesh Posted April 13, 2007 Share Posted April 13, 2007 This is just example  <tr id="flash" style="display:none">  <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="326" height="202">    <param name=movie value="get_data.php?type=ad&time=<?php echo time(); ?>">    <param name="LOOP" value="false">    <embed src="get_data.php?type=ad&time=<?php echo time(); ?>" loop="true" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="326" height="202"> </embed>   </object>  </td> </tr> <input type="button" name="visible" value="Visible" onClick="javascript:visible();"/> <script language="javascript"> function visible(){ document.getElementById("flash").style.display = ""; } </script> Quote Link to comment Share on other sites More sharing options...
Psycho Posted April 13, 2007 Share Posted April 13, 2007 why? can it be done in php? ??? Â PHP is a server-side implementation. Do you want the user to reload the page in order to see the flash element? If not, go with Javascript. See sample posted above. Quote Link to comment Share on other sites More sharing options...
fullyloaded Posted April 13, 2007 Author Share Posted April 13, 2007 thanks everyone the sample posted above is not working for me i think i'm doing something wrong any ideas? Quote Link to comment Share on other sites More sharing options...
fenway Posted April 13, 2007 Share Posted April 13, 2007 All you need is a DIV with an ID, and toggle it's display attribute. Quote Link to comment Share on other sites More sharing options...
ki Posted April 15, 2007 Share Posted April 15, 2007 All you need is a DIV with an ID, and toggle it's display attribute. actually all you would need is an span tag and innerHTML Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.