Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    May 2008
    Posts
    36
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Problem in IE when using javascript from flash

    I thought I was successfully combining javascript and getURL within my scrolling flash thumbnails in order to change out photos on my page at http://tommybaynard.com/hollywood.php

    This doesn't work in Internet Explorer - how can I fix it or do it better?
    Thanks,
    Rich V


    Code:
    on (press) {
    	getURL("javascript:MM_swapImage('main','','images/adventure/H2.jpg',1)");
    	getURL("javascript:MM_swapImage('title','','images/adventure/H2.png',0)");
    }

  • #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    Do you get any errors? I presume it works in Firefox or have you checked?
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.

  • #3
    New Coder
    Join Date
    May 2008
    Posts
    36
    Thanks
    6
    Thanked 0 Times in 0 Posts
    Yes it works in Firefox for PC - no visible errors in IE just nothing

  • #4
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    I tested, Flash is fine. There is a problem with the JS in IE, and I'm not a JS expert. However you might be better to ask in the JS forum.

    I tested by putting the JS from the getURL directly in the address bar, and it shows a blank image holder. So its not able to get the right URL for your image.
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.


  •  

    Posting Permissions

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