Nested functions in javascript!!!

Hi!
I'm facing a prob with javascript .
Can I calla javascript function from another javascript function .
My code is as follows:
<html>
<head>
<script language="JavaScript">
function check()
     var a=1;
     alert("In check()");
     check1(a);
     return true;
function check1(var a)
     alert("in check1 "+a);
     return true;
</script>
<title>
Validation
</title>
</head>
<body>
<form name="myform" method="post" onSubmit="return false;">
IP Address :<input type="text" name="ip" maxlength=15 ></input>
<input type="submit" name="submit" value="Submit" onClick="return check();"></input>
</form>
</body>
</html>
Any help will be appreciated.
Thanks

Sure you can: you just don't declare their types :-)
ie you don't need "var" in the parameter list for the function.
You can call the function with more parameters than you specify (access them via the "arguments" keyword in a function)
You can call the function with less parameters than you specify (surplus parameters will be null).
function check1(a)
alert("in check1 "+a);
return true;
}

Similar Messages

  • Accessing built in functions through javascript

    Hi everyone,
    Is there a way to call one of the built-in functions using javascript? For example, I added a click_box, and the on-success events I can choose to continue, go to a different slide, open a file/url etc. I can also choose to execute a javascript.
    My question is, can I choose to execute a javascript, and then within that javascript, call the "open a file/url" and pass it a variable (url)?
    The reason I want to do this is when a user clicks on a link to open a URL, I want the movie to pause until they return and click on the next button to proceed.
    Unless of course there is a much easier way to accomplish this.
    Thanks,
    Manny

    Hello again
    With JavaScript option you generally create your own functions. And really, IMNSHO that's what the purpose of the JavaScript option is really for. Perhaps you want to open a link in a specifically sized and placed window with specific attributes such as no Toolbar, no Status bar or Menu bar. In this case you would create a function to do this, then call the function from JavaScript.
    Then again, JavaScript is a whole other wiggly nest of wiener dogs! My simpleton opinion is to do as much as you possibly can in Captivate without resorting to Flash or JavaScript or any other "layer". Because when things go wrong (and trust me, they ALWAYS do) there is less to confuse issues.
    Cheers... Rick
    Helpful and Handy Links
    Begin learning Captivate 5 moments from now! $29.95
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcererStone Blog
    Captivate eBooks

  • Getting Error while calling Flex function from JavaScript

    Hi,
    I have an aspx page, which shows charts as per dropdown selection,
    I am using flex charts for flex.In aspx page, i am calling an mxml function using javascript.below is the code for javascript in aspx.
    Javascript  code in aspx page:
    <script type="text/javascript">     
    function callApp(formid) {
        try {
                var objectChart = document.getElementById("statisticsChart");
                alert(objectChart.id);               
                objectChart.myFlexFunction(formid,get('<%=HiddenDashboardWS.ClientID %>').value);
        catch (e) {
            alert(e.message);
    function getDropDownListvalue() {
        var IndexValue = $get('<%=FormDropDownList.ClientID %>').selectedIndex;
        var SelectedVal = $get('<%=FormDropDownList.ClientID %>').options[IndexValue].value;
        //  alert(SelectedVal);
        callApp(SelectedVal);
    </script>
    Html code where dropdown control is placed
    <asp:DropDownList CssClass="combo" ID="FormDropDownList" runat="server" AutoPostBack="false"></asp:DropDownList>
    <object id="statisticsChart" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
    height="220" width="680">
        <param name="src" value="../swf/DashboardStatisticChart.swf" />
        <param name="flashVars" value="" />
        <embed name="statisticsChart" src="../swf/DashboardStatisticChart.swf" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" height="220" width="680" flashvars=""></embed>
    </object>
    Mxml code:
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"  backgroundColor="white" creationComplete="initApp();" >
    <mx:script>
      public function initApp():void {
    ExternalInterface.addCallback("myFlexFunction",myFunc);
      public function myFunc(s:String,wsurl:String):void {
         Formid.text = s;
         webService.wsdl = wsurl;
         Alert.show("webservice");
    //Getdata calls webservice and gets xml data    
    GetData();
    //showchart() will draw chart
                     ShowChart();
    </mx:script>
    </mx:Application>
    Above code works perfect in ie, but in firefox, it gives An error saying “chartObject.MyFlexFunction is not a function”.
    I am getting the object in javascript in all the browsers, but not the functions!
    Does anyone has worked with this?
    Any help will be highly appreciated.
    Regards,
    Nirav Patel

    Found the solution from here... http://74.125.153.132/search?q=cache:4BC9BY04B5EJ:livedocs.adobe.com/flash/8/main/00002201 .html+externalinterface.addcallback+not+working&cd=1&hl=en&ct=clnk&gl=in
    Hope it will help others...
    Regards,

  • Cannot call AS3 Function from JavaScript

    Hi,
    I am trying to call an ActionScript 3 function with JavaScript. The problem I cannot seem to get any of the browsers to trigger this AS3 function. The debuggers say that the function is undefined when I call it on the flash object. 
    What is supposed to happen is - the javascript function calls the AS3 function, and passes it an integer value.   That integer is then used to pull one of 20 swfs, and load that into the flash movie.
    Please let me know if you guys can think of anything that I can do to make this work!  I've been stuck for hours, and can't seem to make it happen.
    Here is my actionScript:
    import flash.net.URLRequest;
    import flash.display.Loader;
    import flash.external.ExternalInterface;
    var movies:Array = ["idle-ok.swf", "idle-good.swf"];
    // It first loads this "hello swf".
    var helloLoader:Loader = new Loader();
    var helloURL:URLRequest = new URLRequest("idleAvatar.swf");
    helloLoader.load(helloURL);
    addChild(helloLoader);
    var setAvatar:Function = loadAvatar;
    ExternalInterface.addCallback("callSetAvatar", setAvatar);
    // Then, this function should be called by JavaScript to load one of the other swfs.
    function loadAvatar(indx:Number){
        var url:URLRequest = new URLRequest(movies[0]);
        var ldr:Loader = new Loader();
        ldr.load(url);
        addChild(ldr);
    Here is my JavaScript:
    <script type="text/javascript">
    function callExternalInterface(val) {
              document.getElementById("loader").callSetValue(val);
    </script>
    Here is my embed code:
    <div>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="250" height="350" id="loader" name="loader">
    <param name="movie" value="loader.swf" />
    <param name="allowscriptaccess" value="always" />
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="loader.swf" width="250" height="350">
    <param name="allowscriptaccess" value="always" />
    <!--<![endif]-->
    <a href="http://www.adobe.com/go/getflashplayer">
    <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
    </a>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
    </object>
    </div>
    <a href="#" onClick="callExternalInterface(1)">CLICK</a>

    You don't appear to be calling any function in your actionscript.  The names between and within do not agree. 
    document.getElementById("loader").callSetValue(val);
    should be calling a function identified with the string "callSetValue" in your actionscript, but you only have a function identified with "callSetAvatar"  and the function associated with that on your AS3 side is specified to be setAvatar...
    ExternalInterface.addCallback("callSetAvatar", setAvatar);
    but you do not have a function named setAvatar, you have one named loadAvatar
    Here's a link to a tutorial that might help you to see how the functions are specified between javascript and actionscript using the ExternalInterface class.  It gets confusing so I suggest you copy the code to a word processing file so you can clearly highlight where they have the same language between them.
    http://viget.com/inspire/bi-directional-actionscript-javascript-communication

  • Syntax for nested function/procedure?

    Hi,
    What's the syntax to create a sub function/procedure in another function/procedure? Is this available in 9i?
    Thanks.

    Nested functions and procedures have been available since at least 7.3. However, any nested functions or procedures need to be the last things in your declare section.
    This works:
    SQL> CREATE OR REPLACE PROCEDURE test_proc is
      2     l_v VARCHAR2(100);
      3     FUNCTION nested_function RETURN VARCHAR2 IS
      4     BEGIN
      5        RETURN('nested function call') ;
      6     END;
      7  BEGIN
      8     l_v := nested_function;
      9     DBMS_OUTPUT.Put_Line(l_v);
    10  END;
    11  /
    Procedure created.But this does not:
    SQL> CREATE OR REPLACE PROCEDURE test_proc is
      2
      3     FUNCTION nested_function RETURN VARCHAR2 IS
      4     BEGIN
      5        RETURN('nested function call') ;
      6     END;
      7     l_v VARCHAR2(100);
      8  BEGIN
      9     l_v := nested_function;
    10     DBMS_OUTPUT.Put_Line(l_v);
    11  END;
    12  /
    Warning: Procedure created with compilation errors.
    SQL> show err
    Errors for PROCEDURE TEST_PROC:
    LINE/COL ERROR
    7/4      PLS-00103: Encountered the symbol "L_V" when expecting one of the
             following:
    12/0     PLS-00103: Encountered the symbol "end-of-file" when expecting
             one of the following:
             begin function package pragma procedure formTTFN
    John

  • Problem with confirm() function in javascript

    Hi All,
    When we use confirm() function in javascript, it displays message with two options Ok or Cancel.
    Is it possible to change the Ok, Cancel buttons as Yes,No or Accept,Reject.
    Is there any other way to implement it.
    Thanks in advance,
    Maha

    Hi,
    We don't have any provision to have Yes,No or Accept,reject button in javascript confirm() function. You can preprare your own popup window and acheive the same thing.
    Regards,
    Sudheer

  • Enabling Nested Functions in Terminal?

    I downloaded, and compiled FUSE, but when I try to "make" it i get this error
    Macintosh-5:fuse-2.7.4 alexcaballero$ make
    Making all in include
    make all-am
    Making all in lib
    if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVECONFIGH -I. -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/local/bin\" -DFILE_OFFSETBITS=64 -D_REENTRANT -DFUSEUSEVERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse.lo -MD -MP -MF ".deps/fuse.Tpo" -c -o fuse.lo fuse.c; \
    then mv -f ".deps/fuse.Tpo" ".deps/fuse.Plo"; else rm -f ".deps/fuse.Tpo"; exit 1; fi
    libtool: compile: gcc -DHAVECONFIGH -I. -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/local/bin\" -DFILE_OFFSETBITS=64 -D_REENTRANT -DFUSEUSEVERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse.lo -MD -MP -MF .deps/fuse.Tpo -c fuse.c -fno-common -DPIC -o .libs/fuse.o
    In file included from fuse.c:18:
    ../include/fuse_compat.h:69:24: error: sys/statfs.h: No such file or directory
    In file included from fuse.c:18:
    ../include/fuse_compat.h:91: warning: 'struct statfs' declared inside parameter list
    ../include/fuse_compat.h:91: warning: its scope is only this definition or declaration, which is probably not what you want
    ../include/fuse_compat.h:140: warning: 'struct statfs' declared inside parameter list
    fuse.c:689: warning: 'struct statfs' declared inside parameter list
    fuse.c: In function 'convertstatfsold':
    fuse.c:691: error: dereferencing pointer to incomplete type
    fuse.c:692: error: dereferencing pointer to incomplete type
    fuse.c:693: error: dereferencing pointer to incomplete type
    fuse.c:694: error: dereferencing pointer to incomplete type
    fuse.c:695: error: dereferencing pointer to incomplete type
    fuse.c:696: error: dereferencing pointer to incomplete type
    fuse.c:697: error: dereferencing pointer to incomplete type
    fuse.c: In function 'fusecompatstatfs':
    fuse.c:708: error: storage size of 'oldbuf' isn't known
    fuse.c:708: warning: unused variable 'oldbuf'
    fuse.c: In function 'curr_time':
    fuse.c:1183: error: nested functions are disabled, use -fnested-functions to re-enable
    fuse.c:1183: error: syntax error before 'clockid'
    fuse.c:1184: warning: implicit declaration of function 'clock_gettime'
    fuse.c:1184: error: 'clockid' undeclared (first use in this function)
    fuse.c:1184: error: (Each undeclared identifier is reported only once
    fuse.c:1184: error: for each function it appears in.)
    fuse.c:1186: error: 'CLOCK_REALTIME' undeclared (first use in this function)
    make[1]: * [fuse.lo] Error 1
    make: * [all-recursive] Error 1
    when I try -fnested-functions in the terminal to enable the functions, this error comes up
    Macintosh-5:~ alexcaballero$ -fnested-functions
    -bash: -fnested-functions: command not found
    so how do i enable them?

    Well the thing is that I did install MacFuse, yet the directions I got told me I had to download FUSE as well. I'm trying to mount my Gmail account on my desktop.
    So were these instructions Mac specific? Or where they for Unix/Linux systems running Fuse? Is there a web URL you can give?
    Oh yea, where did you download your Fuse sources from? Just in case someone whats to look at a copy.
    As to your -fnested-functions error:
    fuse.c:1183: error: nested functions are disabled, use -fnested-functions to re-enable
    This is NOT a shell option, but a compiler option. If you wish to pursue this, you would need to change the Makefile so that the compiler using the -fnested-functions option.

  • How to call java function in javascript

    Hello Everyone,
    Can anyone tell me solution that:
    How to call java function in javascript?
    Thanks,
    VIDs

    You can't since Java is running on the server and javascript is running in the browser long after the Java side of things has finished executing. Assuming you're not talking about an applet here.
    But you can make calls back to the server through Ajax. All you need is something like a servlet on the receiving end which you can invoke through Ajax; from that point you can execute any Java code you want.

  • Call managed bean function using javascript

    Any one help me how to call managed bean function through Javascript onload() event.

    What do you want to do after all? Isn't the constructor/initblock of the bean sufficient? Which JSF version/implementation are you using?

  • Call jsp function in javascript without using Applet

    anyone knows how to call jsp function in javascript .
    just as follows:
    <%!
    public string jspcall()
    return new String("just a example");
    %>
    <script language="javascript">
    <!--
    temp = jspcall();
    //->
    </script>
    it's desn't work.
    any suggestion will help!

    it's was not able to call a jsp function in javascript.
    jsp function was on server site while javascript normally on the client site.

  • Nested functions?

    If I insert an IF function in a cell, I expect to be able to insert another function for the condition, but the functions are greyed out.
    Tutorials and the help system don't list nested functions. Anyone point me in the right direction, please?

    Martin Inchley wrote:
    Thanks for this. Seems to work so far. I suppose the reason the other functions button is greyed out is because it is intended primarily for the major summary functions it lists, which would not normally fit within a formula.
    Perhaps it would have been more apt to name this "Formulas" rather than "Function" since the bulk of the items in the pop up menu generate entire formulas (complete with equal sign and "smart" range parameter values) rather than just a function piece of a formula.

  • Enabling nested function?

    I'm trying to "make" FUSE, and i keep getting this error
    fuse.c: In function 'curr_time':
    fuse.c:1183: error: nested functions are disabled, use -fnested-functions to re-enable
    fuse.c:1183: error: syntax error before 'clockid'
    fuse.c:1184: warning: implicit declaration of function 'clock_gettime'
    fuse.c:1184: error: 'clockid' undeclared (first use in this function)
    fuse.c:1184: error: (Each undeclared identifier is reported only once
    fuse.c:1184: error: for each function it appears in.)
    fuse.c:1186: error: 'CLOCK_REALTIME' undeclared (first use in this function)
    make[1]: * [fuse.lo] Error 1
    make: * [all-recursive] Error 1
    i tried -fnested-function but i get
    Macintosh-5:~ alexcaballero$ -fnested-functions
    -bash: -fnested-functions: command not found

    Cross posted in the Mac OS X Technologies -> Unix forum
    <http://discussions.apple.com/thread.jspa?messageID=9073766&tstart=0#9073766>

  • Nested function

    (1)
    i want to add a listener that it will direct to a nested function if it triggered,
    but later i found that i cant name the target event directly as "dragStart", so what should i type?
    (2)
    also, are there some ways that able to do the same tweening effect as the code below but without nesting them?
    i made the tweenings play as one by one.
    thz for any help
    function changeImg() {
        mask1.removeEventListener(Event.ENTER_FRAME, mask1Drag);
        stage.addEventListener(MouseEvent.CLICK, dragStart);
         var maskTween1:Tween = new Tween(mask1,"width",Strong.easeInOut,1,750,1,true);     maskTween1.addEventListener(TweenEvent.MOTION_FINISH, playMaskTween2);
        function playMaskTween2(e) {         var maskTween2:Tween = new Tween(mask1,"width",Strong.easeInOut,750,1,1,true);         maskTween2.addEventListener(TweenEvent.MOTION_FINISH, playMaskTween3);
            function playMaskTween3(e) {             var maskTween3:Tween = new Tween(mask1,"width",Strong.easeInOut,1,750 - mouseX,1,true);             maskTween3.addEventListener(TweenEvent.MOTION_FINISH, dragStart);
               function dragStart(e) {                 maskTween1.stop();
                    maskTween2.stop();
                    maskTween3.stop();
                    mask1.addEventListener(Event.ENTER_FRAME, mask1Drag);

    variable declaration (eg, var maskTween1:Tween) doesn't define the variable.  it triggers memory allocation for that variable but nothing is assigned to that variable.  ie, that variable's value is null.  (the trace() function is single most important tool (by far) to understand actionscript.  use trace(maskTween1) to see its value after declaration and after assign a new Tween() to it.)
    if(maskTween1==true) will always resolve to false.  ie, maskTween1 is never true.
    for listeners that you want to remove, you usually remove them in the listener function as shown below.
      var   maskTween1:Tween
    var maskTween2:Tween
    var maskTween3:Tween
    function changeImg() {
        mask1.removeEventListener(Event.ENTER_FRAME, mask1Drag);
        stage.addEventListener(MouseEvent.CLICK, dragStart);
          maskTween1 = new Tween(mask1,"width",Strong.easeInOut,1,750,1,true);     maskTween1.addEventListener(TweenEvent.MOTION_FINISH, playMaskTween2);
      function playMaskTween2(e) {
      maskTween1.removeEventListener(TweenEvent.MOTION_FINISH, playMaskTween2);
            maskTween2 = new Tween(mask1,"width",Strong.easeInOut,750,1,1,true);
            maskTween2.addEventListener(TweenEvent.MOTION_FINISH, playMaskTween3);    
       function playMaskTween3(e) {
        maskTween2.removeEventListener(TweenEvent.MOTION_FINISH, playMaskTween3);    
               maskTween3 = new Tween(mask1,"width",Strong.easeInOut,1,750 - mouseX,1,true);
                maskTween3.addEventListener(TweenEvent.MOTION_FINISH, dragStart);
    function dragStart(e) {
       stage.removeEventListener(MouseEvent.CLICK, dragStart);
      maskTween3.removeEventListener(TweenEvent.MOTION_FINISH, dragStart);
                    maskTween1.stop();
                     maskTween2.stop();
                     maskTween3.stop();
                     mask1.addEventListener(Event.ENTER_FRAME, mask1Drag);

  • Need help making javascript thumbnail gallery function in javascript tab menu

    Hello all,
    I have implemented a css/javascript tab menu on one of my html pages thanks to Chris Coyier (http://css-tricks.com/learning-jquery-fading-menu-replacing-content/), and within one of the tabs, which I labeled GALLERY, I am trying to place a thumbnail gallery curtosy of Trent (http://www.twospy.com/galleriffic/).
    Before trying to place it in the menu, I made the gallery on a seperate html page to make sure that I could get it to work.  It does. But when I place it in the menu it shows up on page load under the content of the first tab (labeled TOUR) and not in the gallery tab.  In addition, once I click on the "gallery" tab the other tabs stop showing their content.  I feel like I am missing something obvious. But I just can't figure out what.  If anyone can help I would greatly appreciate it.
    Thanks,
    Natalie
    Below is the code of my whole page:
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Tour template</title>
    <!--TABS-->
    <link rel="stylesheet" type="text/css" href="MenuFader/style.css">
    <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script>
    <script type="text/javascript">
            $(function(){
                $("#tour-button").css({
                    opacity: 0.3
                $("#gallery-button").css({
                    opacity: 0.3
                $("#page-wrap div.button").click(function(){
                    $clicked = $(this);
                    // if the button is not already "transformed" AND is not animated
                    if ($clicked.css("opacity") != "1" && $clicked.is(":not(animated)")) {
                        $clicked.animate({
                            opacity: 1,
                            borderWidth: 5
                        }, 600 );
                        // each button div MUST have a "xx-button" and the target div must have an id "xx"
                        var idToLoad = $clicked.attr("id").split('-');
                        //we search trough the content for the visible div and we fade it out
                        $("#contents").find("div:visible").fadeOut("fast", function(){
                            //once the fade out is completed, we start to fade in the right div
                            $(this).parent().find("#"+idToLoad[0]).fadeIn();
                    //we reset the other buttons to default style
                    $clicked.siblings(".button").animate({
                        opacity: 0.5,
                        borderWidth: 1
                    }, 600 );
    </script>
    <!--End Tabs-->
    <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    <style type="text/css">
    <!--
    #realtor panel {
        width: 1000px;
    body {
        background-color: #282828;
        margin: 0px;
    .style4 {color: #A1A1A1}
    -->
    </style>
    <!-- InstanceBeginEditable name="Gallery" -->
    <title>Example tour page</title>
    <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="Gallery/js/jquery.galleriffic.js"></script>
    <script type="text/javascript" src="Gallery/js/jquery.opacityrollover.js"></script>
    <script type="text/javascript">
                document.write('<style>.noscript { display: none; }</style>');
    </script>
    <link rel="stylesheet" type="text/css" href="Gallery/css/galleriffic-2.css">
    <link rel="stylesheet" type="text/css" href="Gallery/css/basic.css">
    <!-- InstanceEndEditable -->
    </head>
    <!-- InstanceBeginEditable name="body" -->
    <body>
    <div id="realtor panel"><table width="100%" border="0">
      <tr>
        <td width="18%"> <div align="center"></div></td>
        <td width="82%"> </td>
      </tr>
    </table>
    </div>
    <div id="page-wrap">
            <div id="tour-button" class="button">
                <img src="MenuFader/images/TOUR.png" alt="tour" class="button" />
            </div>
            <div id="gallery-button" class="button">
                <img src="MenuFader/images/GALLERY.png" alt="property gallery" class="button" />
            </div>
            <div id="info-button" class="button">
                <img src="MenuFader/images/INFO.png" alt="info" class="button" />
            </div>
            <div id="specs-button" class="button">
                <img src="MenuFader/images/SPECS.png" alt="specs" class="button" />
            </div>
            <div class="clear"></div>
      <div id="contents">
        <div id="tour">
          <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','1270','height','443','src','swf files/Tudor Arms interative floor plan','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','swf files/Tudor Arms interative floor plan' ); //end AC code
    </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="1270" height="443">
            <param name="movie" value="swf files/Tudor Arms interative floor plan.swf" />
            <param name="quality" value="high" />
            <embed src="swf files/Tudor Arms interative floor plan.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1270" height="443"></embed>
          </object></noscript>
        </div>
        <div id="property gallery">
             <div id="container">
                    <div id="gallery" class="content">
                        <div id="controls" class="controls"></div>
                        <div class="slideshow-container">
                            <div id="slideshow" class="slideshow"></div>
                        </div>
                    </div>
                    <div id="thumbs" class="navigation">
                        <ul class="thumbs noscript">
                            <li>
                                <a class="thumb" href="Gallery/images/example/apt entrance1.jpg">
                                <img src="Gallery/images/example/Tudor thumbs/apt face1.jpg" alt="apt entrance1" />
                                </a>
                           </li>
                          <li>
                                <a class="thumb" href="Gallery/images/example/apt entrance2.jpg" >
                                <img src="Gallery/images/example/Tudor thumbs/apt face2.jpg" alt="apt entrance2" />
                                </a>
                          </li>
                          <li>
                                 <a class="thumb" href="Gallery/images/example/apt entrance3.jpg" >
                                <img src="Gallery/images/example/Tudor thumbs/apt face3.jpg" alt="apt entrance3" />
                              </a>
                          </li>   
                            <li>
                                 <a class="thumb" href="Gallery/images/example/apt sign.jpg" >
                                <img src="Gallery/images/example/Tudor thumbs/apt sign.jpg"  alt="apt sign" />
                              </a>
                          </li>
                          <li>
                                 <a class="thumb" href="Gallery/images/example/entryway1.jpg" >
                                <img src="Gallery/images/example/Tudor thumbs/entry.jpg" alt="entry" />
                              </a>
                          </li>
                            <li>
                                 <a class="thumb" href="Gallery/images/example/living room1.jpg" >
                                <img src="Gallery/images/example/Tudor thumbs/living1.jpg"  alt="living1" />
                              </a>
                          </li>
                           <li>
                                 <a class="thumb" href="Gallery/images/example/living room2.jpg" >
                                 <img src="Gallery/images/example/Tudor thumbs/living2.jpg" alt="living3" />
                              </a>
                          </li>
                            <li>
                                 <a class="thumb" href="Gallery/images/example/living room3.jpg" >
                                <img src="Gallery/images/example/Tudor thumbs/living3.jpg"  alt="living3" />
                              </a>
                          </li>
                          <li>
                                 <a class="thumb" href="Gallery/images/example/dining1.jpg" >
                                 <img src="Gallery/images/example/Tudor thumbs/dining1.jpg"  alt="dining1" />
                              </a>
                          </li>
                            <li>
                                 <a class="thumb" href="Gallery/images/example/Dining2.jpg" >
                                <img src="Gallery/images/example/Tudor thumbs/dining2.jpg"  alt="dining2" />
                              </a>
                          </li>
                          <li>
                                 <a class="thumb" href="Gallery/images/example/dining3.jpg" >
                                <img src="Gallery/images/example/Tudor thumbs/dining3.jpg" alt="dining3" />
                              </a>
                          </li>
                            <li>
                                 <a class="thumb" href="Gallery/images/example/Kitchen1.jpg" >
                                <img src="Gallery/images/example/Tudor thumbs/kitchen1.jpg"  alt="kitchen1" />
                              </a>
                          </li>
                          <li>
                                 <a class="thumb" href="Gallery/images/example/Kitchen2.jpg" >
                                <img src="Gallery/images/example/Tudor thumbs/kitchen2.jpg" alt="kitchen2" />
                              </a>
                          </li>
                            <li>
                                 <a class="thumb" href="Gallery/images/example/bedroom1.jpg" >
                                <img src="Gallery/images/example/Tudor thumbs/bed1.jpg"  alt="bed1" />
                              </a>
                          </li>
                           <li>
                                 <a class="thumb" href="Gallery/images/example/bedroom2.jpg">
                                <img src="Gallery/images/example/Tudor thumbs/bed2.jpg"  alt="bed2" />
                              </a>
                          </li>
                            <li>
                                 <a class="thumb" href="Gallery/images/example/bedroom3.jpg" >
                                <img src="Gallery/images/example/Tudor thumbs/bed3.jpg"  alt="bed3" />
                              </a>
                          </li>
                            <li>
                                 <a class="thumb" href="Gallery/images/example/bathroom.jpg">
                                <img src="Gallery/images/example/Tudor thumbs/bath.jpg"  alt="bath" />
                              </a>
                            </li>
                        </ul>
                    </div>
                <div style="clear: both;"></div>
            </div>
        </div>
        <div id="info">
            <p class="style4">Content for info</p>
        </div>
        <div id="specs">
            <p class="style4">This content is for specs.</p>
        </div>
      </div>
    </div>
    <!--script for gallery-->
    <script type="text/javascript">
                jQuery(document).ready(function($) {
                    // We only want these styles applied when javascript is enabled
                    $('div.navigation').css({'width' : '400px', 'float' : 'left'});
                    $('div.content').css('display', 'block');
                    // Initially set opacity on thumbs and add
                    // additional styling for hover effect on thumbs
                    var onMouseOutOpacity = 0.67;
                    $('#thumbs ul.thumbs li').opacityrollover({
                        mouseOutOpacity:   onMouseOutOpacity,
                        mouseOverOpacity:  1.0,
                        fadeSpeed:         'fast',
                        exemptionSelector: '.selected'
                    // Initialize Advanced Galleriffic Gallery
                    var gallery = $('#thumbs').galleriffic({
                        delay:                     2500,
                        numThumbs:                 15,
                        preloadAhead:              10,
                        enableTopPager:            true,
                        enableBottomPager:         true,
                        maxPagesToShow:            7,
                        imageContainerSel:         '#slideshow',
                        controlsContainerSel:      '#controls',
                        captionContainerSel:       '#caption',
                        loadingContainerSel:       '#loading',
                        renderSSControls:          true,
                        renderNavControls:         true,
                        playLinkText:              'Play Slideshow',
                        pauseLinkText:             'Pause Slideshow',
                        prevLinkText:              '&lsaquo; Previous Photo',
                        nextLinkText:              'Next Photo &rsaquo;',
                        nextPageLinkText:          'Next &rsaquo;',
                        prevPageLinkText:          '&lsaquo; Prev',
                        enableHistory:             false,
                        autoStart:                 false,
                        syncTransitions:           true,
                        defaultTransitionDuration: 900,
                        onSlideChange:             function(prevIndex, nextIndex) {
                            // 'this' refers to the gallery, which is an extension of $('#thumbs')
                            this.find('ul.thumbs').children()
                                .eq(prevIndex).fadeTo('fast', onMouseOutOpacity).end()
                                .eq(nextIndex).fadeTo('fast', 1.0);
                        onPageTransitionOut:       function(callback) {
                            this.fadeTo('fast', 0.0, callback);
                        onPageTransitionIn:        function() {
                            this.fadeTo('fast', 1.0);
    </script>  
    </body>
    <!-- InstanceEndEditable -->
    <!-- InstanceEnd --></html>

    Sure thing:
    http://www.acresllc.net/TA501001.html

  • Call Actionscript function from Javascript

    Can anyone show me a simple example of calling an
    actionscript function from within javascript? Everything I have
    found searching online refers to using the ExternalInterface but I
    was sure I also read that Adobe Air does not support it. I am
    currently using htmlloader to load a html page containing
    javascript into an <mx:HTML>. But I cant seem to touch the
    actionscript functions from within javascript. I am specifically
    trying to work with the FCKeditor that I have integrated so if
    anyone has any examples other methods of integrating the editor I
    would love to see them as well.
    Thanks!

    Let's assume u have embeded swf object named "flashObj"
    <embed src="MYSWF.swf" quality="high"
    width="100%" height="100%" name="flashObj"
    play="true"
    loop="false"
    quality="high"
    allowScriptAccess="sameDomain"
    type="application/x-shockwave-flash"
    pluginspage="
    http://www.adobe.com/go/getflashplayer">
    </embed>
    On each time onblur is called it invoke AS function
    myActionScriptFn
    window.onblur = function() {
    if(flashObj != null){
    flashObj.myActionScriptFn(navigator.appName);
    You need to add a listener in Action Script code
    ExternalInterface.addCallback("myActionScriptFn",
    myActionScriptFn);
    public function myActionScriptFn(appName:String):void
    // Any code here
    Regards

Maybe you are looking for

  • How to throw Custom Error  message in Portal

    Hi Experts ! I am working on CRM 5.0 and using BADI CRM_ORDER_STATUS for LEAD transaction. This BADI is checking the userid when user is trying to change the status of a lead. if userid is not correct than it is  throwing an Error Message  in GUI but

  • ERROR in this BAPI_CUSTOMER_GETLIST

    Hello, Please help me ,I am getting error while executing  this report. I want to Execute a BAPI . BAPI_CUSTOMER_GETLIST. INPUT : I,EQ,0000002156. where it went wrong REPORT  ZRBAPI_CUSTOMER_GETLIST. DATA : IDRANGE     LIKE      BAPICUSTOMER_IDRANGE

  • Saving Report output to File

    Hello, I remember Portal(first version and WebDB prior to that) perfectly saving a Report as File even if the Report output spans multiple pages. Now I am using the latest version of Portal and I am unable to save the Report to file when the Report o

  • Creating a Two Dimensional Array in Xcode and populating it with a values f

    Whats the easiest way to declare a two dimensional array in Xcode. I am reading an matrix of numbers from a text file from a website and want to take the data and place it into a 3x3 matrix. Once I read the URL into a string, I create an NSArray and

  • Solaris Adapter account creation

    We are working with Solaris adapter(Out of Box) and have set up the Solaris adapter in Sun IdM. We are able to create account through Sun IdM at resource with some accountId. But if we try with the same accountId to create another account for differe