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 Link to comment https://forums.phpfreaks.com/topic/46813-flash-and-php/ 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. Link to comment https://forums.phpfreaks.com/topic/46813-flash-and-php/#findComment-228184 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? ??? Link to comment https://forums.phpfreaks.com/topic/46813-flash-and-php/#findComment-228187 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> Link to comment https://forums.phpfreaks.com/topic/46813-flash-and-php/#findComment-228188 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. Link to comment https://forums.phpfreaks.com/topic/46813-flash-and-php/#findComment-228191 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? Link to comment https://forums.phpfreaks.com/topic/46813-flash-and-php/#findComment-228202 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. Link to comment https://forums.phpfreaks.com/topic/46813-flash-and-php/#findComment-228420 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 Link to comment https://forums.phpfreaks.com/topic/46813-flash-and-php/#findComment-229489 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.