Results 1 to 5 of 5

Thread: click to activate this control

  1. #1

    click to activate this control

    microsoft has a suit leveled against them making ie put a div block ontop of flash objects and you are required to click the transparent box to activate the interaction of the flash.
    The flash will still run on its own but for the user to click it he has to click to activate it and he has to do it every time the page refreshes.

    I have a simple workaround that you can easily modify to suit your need.

    put your write in a js file function as so
    PHP Code:
    function activate(sNamesWidthsHeight){
        
    document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" WIDTH="'+sWidth+'" HEIGHT="'+sHeight+'">');
        
    document.write('<PARAM NAME="movie" VALUE="'+sName+'">');
        
    document.write('<PARAM NAME="quality" VALUE="high"> ');
        
    document.write('<PARAM NAME="menu" VALUE="false"> ');
        
    document.write('<EMBED SRC="'+sName+'" menu="false" QUALITY="high" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" TYPE="application/x-shockwave-flash" WIDTH="'+sWidth+'" HEIGHT="'+sHeight+'"></EMBED>');
        
    document.write('</OBJECT>');

    and then in the page just put a call as so
    PHP Code:
    <script>activate("flash/CharterServices.swf"630305);</script> 
    This is currently an optional download in IE windows update but will be embeded in IE7

    Lorddog

    here is an article on this http://www.internetnews.com/xSP/article.php/3568286
    Last edited by diades; 5th July 2012 at 14:36.

  2. #2
    Administrator
    UK diades's Avatar
    Join Date
    Feb 2001
    Location
    Glasgow, Scotland
    Posts
    15,664
    Blog Entries
    6
    microsoft has a suit leveled against them making ie put a div block ontop of flash objects
    Huh?? What is that about?

  3. #3
    Been brewin' a while now..
    Last edited by caislander; 28th June 2006 at 17:59.

  4. #4
    For dynamic flash creation (mainly for the pursposes of doging the IE changes), I find the UFO object to be a very good choice for flash.

    http://www.bobbyvandersluis.com/ufo/

    --Wes
    Last edited by mmi; 3rd October 2006 at 07:33.

  5. #5
    tegwar champ
    United Nations mmi's Avatar
    Join Date
    Oct 2000
    Location
    is everything
    Posts
    7,774

    sorry spammers

    Due to circumstances beyond my control, this thread has been closed.

    "Until I feared I would lose it, I never loved to read. One does not love breathing." — Harper Lee (Scout, in To Kill a Mockingbird)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. code to activate a gallery function
    By tintin1980 in forum Client-side forum
    Replies: 6
    Last Post: 19th September 2007, 21:44
  2. Activate a link 60 seconds after page loads?
    By Tronic in forum Client-side forum
    Replies: 5
    Last Post: 6th November 2001, 00:29
  3. activate image link with spacebar
    By reddyg in forum Client-side forum
    Replies: 2
    Last Post: 5th September 2001, 05:23
  4. Pass value from URL to activate pop-up
    By LunchBucket in forum Client-side forum
    Replies: 2
    Last Post: 25th May 2001, 15:36
  5. Activate Browser's Find Function
    By z38601 in forum Client-side forum
    Replies: 2
    Last Post: 19th January 2001, 14:43

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •