Help integrate the code (Jscript)

Hello

Forgive my lack of exp, but I just grabbed this little piece of code and try to embrace it in Html to test.

http://jsfiddle.NET/amustill/wQQEM/

I'm missing something to make it work, probably a request, but...

Can someone tell me what I'm missing?

--

<! DOCTYPE html >

< html lang = "en" >

< head >

< meta charset = "UTF-8" >

< meta http-equiv = "X-UA-Compatible" content = "IE = edge" >

< meta name = "viewport" content = "width = device-width, original scale = 1" >

< title > Untitled Document < /title >

<!-"bootstrap"->

< link href = "file:///Macintosh HD/users/sarahlegris/Documents/TOBY/recipes in pot/Site web/REP-Responsive-Test1/css/bootstrap.css" rel = "stylesheet" >

<! - HTML5 shim and Respond.js for IE8 take in charge of the HTML5 elements and questions from the media - >

<!-WARNING: Respond.js does not work if you view the page via file://-->

<!-[if lt IE 9] >

" < script src =" https://OSS.MaxCDN.com/html5shiv/3.7.2/html5shiv.min.js "> < / script > .

" < script src =" https://OSS.MaxCDN.com/respond/1.4.2/respond.min.js "> < / script > .

<! [endif]-->

< style >

HTML, body {}

height: 100%;

}

. Panel {}

position: relative;

min-height: 500px;

z-index: 5;

}

{.panel-fixed

z-index: 1;

}

{.panel-Interior

Padding: 1em;

Width: 100%;

}

. Fixed-Panel Interior .panel {}

position: fixed;

top: 0;

left: 0;

z-index: 2;

}

{.panel-one

background-color: red;

}

. Panel-{two}

background-color: blue;

}

{.panel-three

background-color: green;

}

/ * Base * /.

*,: * before, *: after {-webkit-box-sizing: border-box; - moz-box-sizing: border-box, box-sizing: border-box ;}}

{body

Police: 100% / 1.5 Arial, without serif.

}

H1, h2, h3 {}

margin-bottom: 1.5em;

make-weight: bold;

}

< / style >

< script >

{$(function()}

Implement the vars

_window var = $(window).

panels = $('.panel'),

panelsY = [];

The cache of each Panel position

$(panneaux, fonction (i, el) {} .each)

panelsY.push (panels.eq (i) .offset () .top);

});

Bind our function of scrolling of the window

_window.bind ("scroll", function() {}

updateWindow();

});

Refresh the window

updateWindow() {} function

var y = _window.scrollTop ();

Browse our panel positions

for (i = 0, l = panels.length; i < l; i ++) {}

/*

First, we break if we check our last Panel,

in the contrary case, we compare so he y position is between the two

two panels

*/

If ((i === l-1) |) (y > = panelsY [i] & & y < = panelsY[i+1])) {

break;

}

};

Update classes

panels.not (': eq ("+ i +" ' ") ' ' ').removeClass('panel-fixed');

panels. EQ (i). AddClass('panel-fixed');

};

});

< /script >

< / head >

< body >

< / html >

< div class = "a panel Panel" >

< div class = 'Panel-interiors' >

Lorem ipsum dolor sit amet < h1 > < / h1 >

< p > Donec id odio ipsum. CRAs accumsan 195kgs nibh, vitae pretium dui hendrerit sed Cum sociis natoque penatibus and magnis say parturient montes, nascetur ridiculus MUS Sed elit orci ac. Nunc faucibus eros purus aliquam blandit ligula pharetra vel fitness. < /p >

< / div >

< / div >

< div class = "Panel Panel two" >

< div class = 'Panel-interiors' >

< h2 > Lorem ipsum dolor sit amet < / h2 >

< p > Donec id odio ipsum. CRAs accumsan 195kgs nibh, vitae pretium dui hendrerit sed Cum sociis natoque penatibus and magnis say parturient montes, nascetur ridiculus MUS Sed elit orci ac. Nunc faucibus eros purus aliquam blandit ligula pharetra vel fitness. < /p >

< / div >

< / div >

< div class = "Panel Panel-three" >

< div class = 'Panel-interiors' >

< h3 > Lorem ipsum dolor sit amet < / h3 >

< p > Donec id odio ipsum. CRAs accumsan 195kgs nibh, vitae pretium dui hendrerit sed Cum sociis natoque penatibus and magnis say parturient montes, nascetur ridiculus MUS Sed elit orci ac. Nunc faucibus eros purus aliquam blandit ligula pharetra vel fitness. < /p >

< / div >

< / div >

<! - jQuery (necessary to Bootstrap JavaScript plugins) - >

< script src = "file:///Macintosh HD/users/sarahlegris/Documents/TOBY/recipes in pot/Site web/REP-Responsive-Test1/js/jquery-1.11.2.min.js" > < / script >

<! - include all the plugins compiled (see below), or include individual files to the need - >

< script src = "file:///Macintosh HD/users/sarahlegris/Documents/TOBY/recipes in pot/Site web/REP-Responsive-Test1/js/bootstrap.js" > < / script >

< / body >

If you are going to use jQuery code, you must include a link to the base jQuery Library, or nothing will work.

Usually, I put my link to external scripts at the bottom of my page, just above the closing tag.

Tags: Dreamweaver

Similar Questions

  • Help with the code if possible.

    Hi again = D adobe community!

    IM VERY new flash, but have been crocheted line and weighed after trying to make my own game! I learned a lot (in my mind) in the short time I've been using flash. But like any new person I need a hand every once in a while ...

    And im stuck so I think I might need a lot of help (then again im new would be too difficult to grasp)... but we shall see.

    OK, I looked everywhere on the internet for a tutorial or a guide or a little info on an inventory system that works with the mouse and not crash.

    everywhere wherever I look I find guide on how to do these inventorys of collision, but nothing like the one I'm after.

    OK so I have _global.bottleofwater = 0; like my var.

    I also added the element of water bottle, which gives the code

    on (release) {}

    _Global.bottleofwater += 1;

    }

    But outside the flash registration I indeed had a bottle of water id also like to appear in my inventory. I tried to give him just a dynamic textbox(that worked), but then I wanted to make a usable item and not only a key to enable me to move to a new setting... so I tried to make the dynamic box a button, whereas if I click on the box it would consume the bottle of water (except of course the amount 0)... who did not flash mx unfortunate... he launched my game without error... but when I mouse over My dynamic box (which is also a button), overall the program crashes.

    Please any help!

    IM using Flash MX and I am VERY new so please answers to understand I'm new and I'm learning.

    It's good that you worked on it!... because there is nothing in the code you showed would break a file.

  • Need help with the code to add dates to form

    Hello fans forum

    I am new to make forms and understood how to auto add the date, but I need the shape to change the date for each copy made.

    For example, is today 08/06/2012 if I print 10 copies of the form it will display 10 pages from 08/06/2012 to 17/06/2012. If the code exists for this I would be very gratefull to one who helps, I also wouldn't mind if this is not possible for manually inputing start / end dates.

    Currently I have print 15-30 copies of the form and hand write each of the dates but I get just to busy to do it. Also I can't print one a day, it must be in batches.

    Thanks in advance.

    I think that you misunderstood my comment about the Console window. Please see the Console window tutorial link in my previous answer. The Acrobat JavaScript Console window is internal to Acrobat, so there is no system restrictions that may prevent you from using it. It's a perfect place to run short automation scripts that do things like print separate copies.

    George also underscores a great solution, put the script in a (non-printable) button on the document itself. However, due to security restrictions this solution can be a bit tricky, but no more so than using the Console window. Each solution takes a little extra effort.

    The problem with having multiple pages, it's that you must manually create a document with pages already in it.  It is certainly a feasible solution, it comes you limit the number of pages that you have already created manually.  At least one solution AcroForm. If you re-create your form as a dynamic LiveCycle, then creating new pages on the fly is not a problem.

    None of these solutions will work fine, the real trick is to increment the date.

    Here's a short script that begins with today's date and adds a day for each iteration of the loop and then prints

    One day in milliseconds

    var nOneDay = 24 * 60 * 60 * 1000;

    var nToday = (new Date()) .getTime ();

    for (var i = 0; i)<>

    {

    oTheDate = new Date (nToday + i * nOneDay);

    Date format

    cTheDate = util.printd("mm/dd/yyyy",oTheDate);

    this.getField("MyDate").value = cTheDate;

    This.Print)

    }

    This same loop could be used to fill in a form on the page - multi (repeated) fields.

    Using the util.scand () function, this loop could be setup to start at an arbitrary date.

    See you soon,.

  • Need help with the code for drop-down selection, please!

    I'm falling out of scope with a drop of water in my form. My form is long, and certain areas are in Page 2. When I click on the "Customer hospitality event" drop-down list selection, the fields of P2 do not hide. Here is the code that I have on the menu drop-down:

    -form1. P1.meetDetails.meetType::exit :-(JavaScript, client).

    switch

    (this.rawValue)

    {

    " case" " Customer home ' :

    Header.PRESENCE = "visible";

    meetDetails.presence = "visible";

    meetDetailsaddl.presence = "visible";

    Form1. P2.rstatus.presence = 'hidden '.

    Form1. P2. Status.Presence = 'hidden '.

    breaking ;

    }

    Help, please!

    Thank you!

    I see that references to the P2 have no end of line separators (-).

    Form1. P2.rstatus.presence = 'hidden '.

    Form1. P2. Status.Presence = 'hidden '.

    The JavaScript runtime engine is perhaps unfortunate. Try to add them.

    Steve

  • I need help with the code of php mailer

    I followed the instructions to make this announcement and I get an email but no inside information. No message, no who he comes, nothing. only the mailer 'shape' is received. I am new to DW, still using training wheels. can anyone help?

    Here's the code for the contact page:

    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
    "< html xmlns ="http://www.w3.org/1999/xhtml">".
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
    < title > Untitled Document < /title >
    < / head >

    < body >
    < do action = "mailer.php" method = "post" > "

    Name: < br / > < input name = "test" type = "text" size = "32" / > < br / >
    E-mail: < br / > < input name = "email" type = "text" size = "32" / > < br / >
    Message: < br / > < textarea name = "message" rows = "10" cols = "40" > < / textarea > < br / >
    < input type = "submit" name = "submit" value = "Submit" / >
    < / make >
    < / body >
    < / html >

    code for mailer:

    <? PHP
    $to = "[email address removed by Moderator] ';
    $subject = "from my Web site";
    $headers = "from: Form Mailer ';
    $forward = 0; 0 = no redirect, redirection of 1 = 1
    $location = ""; If 1 then "yoursite.com".

    $date = date ("' 1, f js, y" ");
    $time = date (' h: i A ");

    $mgs = "this is the result of your feedback form. He received the $date $time.\n\n ";

    If ($_SERVER ['REQUEST_METHOD'] == 'POST') {}
    foreach ($_POST as $key = > $value) {}
    $mgs. = ucfirst ($key). » : «. $value. "\n";
    }
    }
    else {}
    foreach ($_GET as $key = > $value) {}
    $mgs. = ucfirst ($key). » : «. $value. » \n » ;
    }
    }
    mail ($à, $subject, $msg, $headers);
    If ($forward == 1) {}
    Header ("' Location: $location '");
    }
    else {}
    echo "thank you for your visit. We will review your information that has been sent to us. Be blessed! « ;
    }

    ? >

    [Proposed by the correct forum Moderator]

    The problem really has nothing to do with Dreamweaver, but your lack of experience with PHP.

    For example, you have this line of code:

    $date = date ("1,f js,y");
    

    If you use echo to display the output of the $date, what you get is this:

    1,f 1257,09
    

    Not a very useful date, I think you would agree.

    What should be your code is the following:

    $date = date ("l, F jS, Y");
    

    Very similar, but completely different insofar as PHP is concerned. Note that the first character is lowercase L and not one. The other letters are also crucial.

    This code generates "Sunday, July 12, 2009.

    Now, why have you not no messages? Elementary, my dear Watson. Throughout your code, you assign to a variable called $mgs the message. When finally, you send the mail, the variable you are using is $msg. I suspect that $mgs should be $msg throughout. As humans, we can identify the misspelling and may ignore it. The computers cannot. You must be very attentive to the spelling when you work with a language like PHP.

  • 3 buttons calling 6 boxes. Help in the code.

    Hello
    Here is the code for the 3 buttons. Each calls for 2 boxes. There are 2 problems.
    1. first clicked button does nothing.
    2. after clicking once they do not meet the second click.
    Help, please.

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "absolute".
    >

    < mx:Script >
    <! [CDATA]


    import flash.events. *;

    public function clickHandler (): void
    {
    B1.addEventListener (MouseEvent.CLICK, change4Button);
    B2.addEventListener (MouseEvent.CLICK, change5Button);
    B3.addEventListener (MouseEvent.CLICK, change6Button);

    }

    public void change4Button(Event:MouseEvent):void
    {
    v1.visible = "true";
    v4.visible = "true";
    }
    public void change5Button(Event:MouseEvent):void
    {
    v2.visible = "true";
    V5.visible = "true";
    }
    public void change6Button(Event:MouseEvent):void
    {
    v3.visible = "true";
    V6.visible = "true";
    }

    []] >
    < / mx:Script >

    < mx:Button = "55" x y = "58" label = "Button" click = "(clickHandler ())" id = "b1" / > "
    < mx:Button = "145" x y = "58" label = "Button" click = "{clickHandler ()}" id = "b2" / > "
    < mx:Button = '239' x y = "58" label = "Button" click = "{clickHandler ()}" id = "b3" / > "


    < mx:VBox backgroundColor = "#00CCff" x = "83" y = "135" width = "50" height = "50" id = "v1" visible = "false" / >
    < mx:VBox = "#ffCCff" x = "83" backgroundColor = "135" width = "50" height = "50" id = "v2" visible = "false" / >
    < mx:VBox backgroundColor = "#00CC00" x = "83" y = "135" width = "50" height = "50" id = "v3" visible = "false" / >
    < mx:VBox = "#ffCCfd" x = "393" backgroundColor = "135" width = "50" height = "50" id = "v4" visible = "false" / >
    < mx:VBox = "#ffffff" x = "393" backgroundColor = "135" width = "50" height = "50" id = "v5" visible = "false" / >
    < mx:VBox = "#fcCfdc" x = "393" backgroundColor = "135" width = "50" height = "50" id = "v6" visible = "false" / >



    < / mx:Application >

    I'll chime in here too. Your components id naming convention lends itself to adding parts into repeaters or loops, but I don't change the way you said these components. I used constants to be used in the for loop for simplicity, but you could put variables dynamically depending on the number of children that are of a specific type (button or VBox).

    Try to reduce the duties and don't have only one which I believe is what you may be looking to do.

    TS

  • Help with the code of practice!

    Hi all

    I'm not sure of the error in the code, I try to print max and min sal from the emp table.

    but I get the error.

    DECLARE

    Vmax emp % ROWTYPE;

    Vmin emp % ROWTYPE;

    BEGIN

    SELECT *.

    IN vmax

    WCP

    Sal WHERE = (SELECT Max (sal)

    FROM emp);

    SELECT *.

    IN vmin

    WCP

    Sal WHERE = (SELECT Min (sal)

    FROM emp);

    dbms_output. Put_line (vmax.ename |) » -'|| Vmax.DEPTNO);

    dbms_output. Put_line (vmin.ename |) » -'|| Vmin.DEPTNO);

    END;

    /

    Analytic function can be handy...

    SQL > start
    2 for i in
    3     (
    4. Select case when rank_min = 1 then 'MIN SAL'
    When 5 rank_max = 1 then 'MAX SAL.
    6 end indicator
    7, ename
    8, deptno
    9              , sal
    10 of)
    11. Select dense_rank() on rank_min (order of sal)
    12, dense_rank() over (order by sal desc) rank_max
    13                        , e.*
    e emp 14
    15                )
    16 where rank_min = 1 or rank_max = 1
    Order 17
    18 by rank_min
    19)
    loop 20
    dbms_output.put_line 21
    22        (
    23 rpad (i.flag, 20)
    24           || RPAD (i.ename, 20)
    25           || RPAD (to_char (i.deptno, '999'), 10)
    26           || LPAD (to_char (i.sal, 'fm9999999'), 10, ' ')
    27        );
    28 end of loop;
    29 end;
    30.

    KING OF SAL 10 5000 MIN
    MAX SAL 20 13000 SCOTT

    PL/SQL procedure successfully completed.

  • How to integrate the code into a mobile zone?

    I'm looking to incorporate the code of Google maps however I can't seem to embed on the page where I can move or change the size of it. What code I'm missing why?

    Did you consult the documentation for the Google Maps API?  NOTE: You will need an API key.

    Embed a Google Maps API |  Embed a Google Maps API |  Google developers

    Nancy O.

  • Help integrate the music player in site

    I use podsnack to create a music player to embed in my Web site and when I copy the html code given by podsnack I get an error on the page code: your browser does not support the audio element.  I tried to put the code in the metadata section of page properties, both in a box on the screen in the Edit html section.  A that someone has had this problem and solved?  Thank you!

    HTML5 Audio tag is supported by most modern browsers, have a look here - http://www.w3schools.com/html/html5_audio.asp. If you host the audio file on your own, you can grab the code for this same article and insert it to the object-> the option Insert HTML code by updating the reference to audio files.

    Thank you

    Vinayak

  • Help for the code to add a box placed in the middle of the page

    Hello everyone would be able to help me with a html code to add two boxes (spaced at a distance) like the one shown on the picture in the middle of an html page? The boxes must be positioned at approximately 1/4 to the bottom on the page not at the top of the html page.

    Thanks in advance

    Untitled.png

    In fact you can simplify it further.

    
    
    
    
    
    
    
    
    

    Drag the symbols into the rectangle:


    $$\sum$$ $$\int$$ $$\alpha$$ $$\beta$$
  • integrate the code in labview

    Hello

    I don't know if this action is possible with Labview but I would among other things, to implement a simple C code outside of labview to offer the developer, different settings to create a database in the program has adapted to needs.

    Example, if I want my labview program has four external devices, for example, the port is connected to port B with buttons or displays positioned on {x, y} and the conditions of each object are defined according to the needs of the developer, it would be the C program that define these parameters in a text file and the text file déparerait a result in Labview as an import by defining a base with connections program and the positions of each Vi buttons, screens...

    To give you a better idea of the thing, I take an example, home automation, or where each House has its own characteristics to determine the number of devices, type,... that are automatically defined by the developer in the C program because it has already identified its needs.

    Thanks in advance for your answers

    You try to automatically generate a user input from VI?  The LabVIEW Code generation engine can be useful.

  • help understand the code

    Hi all

    I appreciate if someone guide me to understand the following code in red...

    Code

    CREATE OR REPLACE

    PROCEDURE plch_show_one_col)

    id_in IN pl_ch_employees.employee_id%TYPE,

    col_in IN VARCHAR2)

    IS

    l_value VARCHAR2 (100);

    BEGIN

    EXECUTE IMMEDIATE 'select ' | col_in | "of pl_ch_employees where employee_id =: id' INTO l_value USING id_in;

    dbms_output.put_line (l_value);

    END;

    -------------------------

    Maybe

    create or replace function emp_show_one_col (id_in emp.empno%type,col_in varchar2) return varchar2 is

    the_sql varchar2 (500);

    ret_val varchar2 (100);

    Start

    Select "select" |

    data_type case when 'VARCHAR2' then col_in

    When "NUMBER" then ' to_char (' | col_in |) ')'

    When 'DATE' then ' to_char (' | col_in |) 'fmMonth ddth, yyyy")'

    another "unexpected data type".

    end | ' ' ||

    col_in |

    ' from emp where empno =: id '.

    in the_sql

    of user_tab_cols

    where table_name = 'EMP '.

    and column_name = dbms_assert.simple_sql_name (upper (col_in));

    execute immediate the_sql in ret_val using id_in;

    return ret_val;

    end;

    Select emp_show_one_col(7900,'ename') double column_val

    COLUMN_VAL
    JAMES

    Select emp_show_one_col(7900,'sal') double column_val

    COLUMN_VAL
    950

    Select emp_show_one_col(7900,'hiredate') double column_val

    COLUMN_VAL
    December 3, 1981

    Select emp_show_one_col(7900,'abracadabra') double column_val

    COLUMN_VAL
    -

    Select emp_show_one_col (7900,' salvation 'or 1 = 1-') double column_val

    ORA-44003: invalid SQL name

    Concerning

    Etbin

  • How to integrate the code from Vimeo?

    Why can't I mode Code Dreamvewer paste an embed code from Vimeo?

    If I try with Iframe, it does not in anything other than the name of the file.

    He works in many other editors HTML, such as WordPress.

    Addressed to myself! When I have Dreamweaver, select F12 to see the results it does not work, but when I upload it on the server it works. I'm learning as long as I practice.

  • need help with the code for update of a record (conditional release)

    all together

    Published by: 871431 on July 9, 2011 18:30

    871431 wrote:
    Hello

    I am looking to update a table that contains documents approved & not homologous, for this combination date & funds it should allow the only recording not approved.

    what I did is check if the recording is U if the incoming value is not approved for this error of combination stimulus funds & date, but if I need to update this unlicensed recording error... so I need to update record, and trigger the error if try to insert another disc not approved.
    Hope I am clear...

    Not clear for me

    Help pls

    Please realize and understand that everyone here talks about SQL

    Please post DDL for table
    Please provide the sample/test data & then explain with the help of data from the trial itself said it that results should be & why

  • need help with the code "meter."

    Hi I had this form of testing that executes_query on the new block instance.
    See the image below:

    http://i95.photobucket.com/albums/l133/element81/screenies.jpg
    [http://i95.photobucket.com/albums/l133/element81/screenies.jpg]

    I have this code on the button (next question) that captures the selected answer and compare it to the correct answer and then move to the next record:

    "If: blk_exam.radio_group76 =: blk_exam.answer_id then.
    -message('correct');
    -other
    -message('wrong');
    : blk_exam.score: =: blk_exam.score + 1;
    end if;
    next_record;
    "

    the problem is I want to create a score counter, but I do not know how to display it in the text (circled in blue) element.

    p.s. I'll hide the score counter, hurt later use it to record the score in the database.


    Ty in advance

    Hello
    No, there are no gaps. In fact, there is error in your code.

    Scenario 1:
    If the blk_exam is on the top of blk_score when I run the blk_exam form works with execute_query but the text of the note element is a bit turn off so I have to click on to a grey, she and her show '0' because of its first value 0 then walla pressing "next question" with my codes work... it increments...

    For this scenario, you use NVL then it will work as...

    :NON_DB_BLOCK.SCORE_FLD:=NVL(:NON_DB_BLOCK.SCORE_FLD,0)+1;
    

    Scenario 2:
    If I make blk_score on top of my blk_exam the text of the note element contains the value 0, but the test module does not work still... I had to click on any text element or anywhere on the form first seized execute_query and shows the question and choices... but then after that, it works well...

    So now don't need to keep the DB NO BLOCK on top just keep the issue/block on top. Normal then run query which is now to work it will work.

    hope you can imagine the two scenario hehe...

    Hope you can imagine the fault encoding ;)

    -Clément

Maybe you are looking for

  • "In - app Purchase: may not be completed."

    So, yesterday I made a purchase in-app on the app 'Pokémon go' (2 or 3 points) and today when I tried to make another purchase, the system tells me: "your purchase could not be done: If you need help, get in touch with support of iTunes through www.a

  • Can not see files on the NAS

    Hello I am trying to establish a SIN by connecting a WD My Passport HDD to the USB port on my router ASUS RT066N-U. First the player was also dismantled.  Reformat to FAT32 BACK cured that. The iMac was the NAS drive and the two folders that were cre

  • Satellite A200 - 1 M 8 close and then open the lid of the screen to start to work

    Dear community,A few months ago my screen has stopped working. I took an external display and worked this way. (laptop screen did not work at all, even not toshiba logo)All until once, I turned on my laptop, closed the lid and then he fired after 5 s

  • Save more than 16 channels in a file

    Hi, I use lots of Dasylab and would like to save about 25 channels to the same ASCII file, I have used the write data module, but it is limited to 16 channels. Is it possible to get all 25 channels to write to the same file, so I don't have to have s

  • Help the development of the HAL during imaging using SCCM

    We currently have 12 different models of hardware of the PC / laptop. We would like to migrate in a single Image - HARDWARE independent Image deployed via SCCM.Have successfully deployed. The WIM images but no independent material.Nobody knows, how H