Java support + IE6 (Windows)

Discussion in 'Web Design and Development' started by beatsme, May 21, 2007.

  1. beatsme macrumors 65816

    beatsme

    Joined:
    Oct 6, 2005
    #1
    I'm working in Dreamweaver 8, and I'm using a small flash movie as an animated rollover. When you click (ideally) on the flash movie, it opens a link in a new window. This works perfectly well in Safari, but in Internet Explorer 6 on Windows XP, it doesn't work at all. Here is the code:

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100" height="100" onclick="MM_openBrWindow('h426.html','','width=650,height=510,left=600,top=75')">
    <param name="movie" value="images/h426.swf" />
    <param name="quality" value="high" />
    <embed src="images/h426.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100" height="100"></embed>
    </object>

    the only error I get in Dreamweaver is that the onClick function is not supported by Netscape Navigator 6; doesn't say a word about IE6. There is another (perhaps related) error message that states that the embed tag varies by plug-in, and that I should check that all tags are valid.

    so, two questions:

    1) how the hell can I make this work with IE6, and
    2) how can I check that the embed tags are valid

    thanks in advance...
     
  2. beatsme thread starter macrumors 65816

    beatsme

    Joined:
    Oct 6, 2005
    #2
    yea, I know I can set the onClick parameter in Flash to open a new browser window, but it won't let me specify how big the window is, where it opens, and whether to display scroll bars/menu bar, etc. At least, if it will I don't know how to...

    does anyone know how get Flash to use specific attributes to open a new browser window?
     
  3. dcv macrumors G3

    Joined:
    May 24, 2005
    #3
    Don't know anything about Flash myself, but a quick Google search found this page:

    how to correctly insert Flash into XHTML

    There's a bit in there about embedding Flash content for different browsers including IE, might be worth a look.
     
  4. beatsme thread starter macrumors 65816

    beatsme

    Joined:
    Oct 6, 2005
    #4
    why thank ya :)
    I'll give it a shot
     
  5. mnkeybsness macrumors 68030

    mnkeybsness

    Joined:
    Jun 25, 2001
    Location:
    Moneyapolis, Minnesota
    #5
    Why don't you make a transparent movieclip in the flash file and assign the actionscript to getUrl() onclick of that movieclip?

    That would alleviate any cross-browser problems.
     
  6. beatsme thread starter macrumors 65816

    beatsme

    Joined:
    Oct 6, 2005
    #6
    getURL() doesn't allow me to specify window size and attributes. It just opens a new window. What I want is kind of a popup window.

    I'm getting very close to saying the heck with it all and just using a rollover .gif instead. I know that will work.
     
  7. dcv macrumors G3

    Joined:
    May 24, 2005
    #7
    What is the "MM_openBrWindow()" function? I'm assuming that's some sort of Flash method (is it ActionScript or whatever?) for opening a new browser window. But can't you just use JavaScript instead?
     
  8. beatsme thread starter macrumors 65816

    beatsme

    Joined:
    Oct 6, 2005
    #8
    it's actually JavaScript. I believe the hangup is that it won't let me use a Flash movie with the onClick function. Works fine with a static image. So right now I'm investigating alternative methods in Flash...
     
  9. beatsme thread starter macrumors 65816

    beatsme

    Joined:
    Oct 6, 2005
    #9
    Got it...

    http://www.kirupa.com/developer/mx/centered_popup.htm

    the link has working source code. Runs like a champ.

    Also, for those of you who wish to get rid of that stupid "click here to activate this control" thing in Windows XP, here's a link to a site with a code fix for that...

    http://www.ediy.co.nz/click-to-acti...trol-fix-for-internet-explorer-xidc20771.html
     

Share This Page