Results 1 to 6 of 6

Thread: help with Sticky Note script v2.0

  1. #1
    Join Date
    Apr 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation help with Sticky Note script v2.0

    I fixed it! All I had to do was add

    pos:['right', 'bottom'],

    to the 1st sticky note.


    Below is my original post.

    1) Script Title:
    Sticky Note script v2.0

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...stickynote.htm

    3) Describe problem:
    How do I make the 1st sticky note with the spaceship to appear on the BOTTOM LEFT HAND SIDE outside of the content DIV and how do I make
    the 2nd sticky note to appear on the BOTTOM RIGHT HAND SIDE outside of the content DIV that way the 2 sticky notes will be displayed on top of my background.

    Right now, it appears that the 1st sticky note is the only note that needs to be positioned.
    The bottom right sticky note looks good.

    Please test your code before replying
    to this post to make sure that your code works.


    Please open the attachments to get the java script files and text file.
    Thanks so much for your help.

    My website html and css code is as follows:


    <style type="text/css">

    #container{
    border: 4px solid #FF3;
    width: 965px;
    margin-right: auto;
    margin-left: auto;
    }


    body {
    background-image: url(mybghere.com);
    background-repeat: repeat;
    background-color: #f7180c;
    }

    .stickynote{
    position:absolute;
    visibility:hidden;
    width: 300px;
    border: 2px solid black;
    background-color: lightyellow;
    padding: 4px;
    box-shadow: 3px 3px 8px #818181;
    -webkit-box-shadow: 3px 3px 8px #818181;
    -moz-box-shadow: 3px 3px 8px #818181;
    }

    </style>

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>

    <script src="java/stickynote.js">

    /***********************************************
    * Sticky Note Script (c) Dynamic Drive (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit http://www.dynamicdrive.com/ for this script and 100s more.
    ***********************************************/

    </script>

    <script>

    var mysticky=new stickynote({
    content:{divid:'stickynote1', source:'inline'},
    showfrequency:'always',

    })

    var mysticky2=new stickynote({
    content:{divid:'stickynote2', source:'stickydata.txt'},
    pos:['right', 'bottom'],
    showfrequency:'always' //<--no comma following last setting!
    })

    </script>



    </head>

    <body>

    <div id="container">


    This is my home page.<br>
    <br>
    How do I make the 1st sticky note with the spaceship to appear on the BOTTOM LEFT HAND SIDE outside of the content DIV<br>
    and how do I make the 2nd sticky note to appear on the BOTTOM RIGHT HAND SIDE outside of the content DIV<br>
    that way the 2 sticky notes will be displayed on top of my background.<br>
    <br>
    Right now, the 2 sticky notes are showing inside of the content DIV which is incorrect.<br>
    Please test your code before replying to this post to make sure that your code works.<br>
    Thanks so much for your help.

    <div id="stickynote1" class="stickynote">
    <img src="http://i52.tinypic.com/2usu1ad.gif" align="left" />


    <div align="right">
    <a href="#" onClick="mysticky.showhidenote('hide');return false">[Hide Box]</a>
    This is my 1st sticky note that I want to display on the BOTTOM LEFT HAND SIDE outside of the content DIV.<br>
    </div>
    </div>



    <div id="stickynote2" class="stickynote">
    This is my 2nd sticky note that I want to display on the BOTTOM RIGHT HAND SIDE outside of the content DIV. <a href="#" onClick="mysticky2.showhidenote('hide');return false">[Hide Box]</a>
    </div>


    </body>
    </html>
    Last edited by djr33; 04-02-2012 at 11:45 PM.

  2. #2
    Join Date
    Apr 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I fixed it! All I had to do was add

    pos:['right', 'bottom'],


    to the 1st sticky note.

  3. #3
    Join Date
    Mar 2011
    Posts
    2,144
    Thanks
    59
    Thanked 116 Times in 113 Posts
    Blog Entries
    4

    Default

    If this thread is finished, please set it to resolved.
    You can do this by editing the first post within the thread - Pressing go advanced - then where it says no prefix, selecting resolved then save.

  4. #4
    Join Date
    Apr 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question

    How do I post this PHP Code?

    Inside the HTML or where?

    What does this code do exactly?

    I thought I fixed my page, but
    I did not completely.
    I am still working on it.

    Please post the entire code.

    Thanks.

  5. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    If you're talking about the PHP code in keyboard1333's post, that's just his signature (for every post). It's not a suggestion.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  6. #6
    Join Date
    Mar 2011
    Posts
    2,144
    Thanks
    59
    Thanked 116 Times in 113 Posts
    Blog Entries
    4

    Default

    It's my equivlent of Daniel's

    Daniel - Freelance Web Design | <?php?> | <html>| Deutsch | italiano | español | português | català | un peu de français | Ninasoma Kiswahili | 日本語の学生でした。| درست العربية


    If you're still having trouble, please post a link to the page your having trouble with, or post the relevant code.


    Please also explain the problem you're experiencing.
    Last edited by keyboard; 04-03-2012 at 12:35 AM. Reason: Redid English

Bookmarks

Posting Permissions

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