DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 1 of 1

Thread: Javascript Flash CSS

  1. #1
    Join Date
    Oct 2005

    Javascript Flash CSS

    Hows it going.

    I am working on a web page where I have multiple div tags holding different content. One of my div tags holds a flash file where a user will enter data. If the user hits an html button I want to hide the flash content by adjusting the style display of the div tag to none. and then re display it content entered and all to the screen when the user hits the display button.

    I have this successfully running while viewing from an IE browser but when I try to view it from fire fox the flash file is hidden and then when it is re displayed loses all data it had , almost like as if I refreshed the page.

    my question is has anyone encountered this before and if not could you provide any suggestions on how I could get this to act the same as it does in IE.

    my code is as follows

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    <meta name=ProgId content=VisualStudio.HTML>
    <meta name=Originator content="Microsoft Visual Studio .NET 7.1">

    <script language="javascript">

    function hideFlash(){


    function displayFlash(){

    document.getElementById("panel3").style.display ='';


    <input type="button" id="hide" onclick="javascript:hideFlash();" value="hide">
    <input type="button" id="display" onclick="javascript:displayFlash();" value="display">

    <div id="panel3">
    <embed src="flashVisible.swf" quality="high" pluginspage="" type="application/x-shockwave-flash" width ="550" height="400"></embed>


    I have attached two files so you could see what my issue is. try to run the html in IE then in FF.

    Any suggestions would be sweet thanks
    Attached Files Attached Files

Similar Threads

  1. Flash for Developers
    By Stephen Rittler in forum Talk to the Editors
    Replies: 0
    Last Post: 08-07-2002, 09:47 PM
  2. Replies: 0
    Last Post: 03-30-2002, 09:10 AM
  3. Flash mx
    By sam in forum Web
    Replies: 0
    Last Post: 03-15-2002, 01:01 AM
  4. JavaScript and the new Netscape 6 Browser
    By Greg Rothlander in forum ASP.NET
    Replies: 0
    Last Post: 11-05-2001, 03:25 PM
  5. Sample Sites.
    By Murray Foxcroft in forum Web
    Replies: 5
    Last Post: 11-02-2000, 03:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center