JS Style Switcher for BG Images

Out of context: Reply #6

  • Started
  • Last post
  • 7 Responses
  • noiseisthis0

    flash:
    import flash.external.ExternalInterface...
    import flash.events.MouseEvent;

    trigger_mc.addEventListener(Mous... onTrigger);
    function onTrigger(event:MouseEvent):void {
    // the method that you want to call in javascript goes in the quotes
    ExternalInterface.call("trigger...
    }

    --------------------------------
    javascript:
    <script type="text/javascript">
    $(window).load(function(){
    $("#linky").mouseover(
    trigger();
    });
    });

    function trigger() {
    $('body').css("background-image... bg-pink.gif )");
    return false;
    }
    </script>

View thread