Results 1 to 3 of 3

Thread: Floating Message script

  1. #1
    Join Date
    Mar 2005
    Location
    Fareham
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Floating Menu script

    http://www.dynamicdrive.com/dynamici...staticmenu.htm

    Heya, I'm trying to use the Floating Message Script on my site, servicestations.richesrace.com.

    I have to questions:

    1) Is there any way to make the navigation "higher up"
    2) Also, I selected six diffent links but it is only displaying the top three!

    Thanks!
    Last edited by j0hnny; 03-05-2005 at 01:37 PM.

  2. #2
    Join Date
    Mar 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up I get you... TOTALY!

    Hi,
    I know EXACTLY what you mean!!! I have the same script on my site, and I also want it higher up, I don't now how though. However, if you post me that script EXACTLY how you have edited it, I should be able to help you.


    From Joe

  3. #3
    Join Date
    Mar 2005
    Location
    Fareham
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool The code I used

    <script>
    if (!document.layers)
    document.write('<div id="divStayTopLeft" style="position:absolute">')
    </script>

    <layer id="divStayTopLeft">

    <!--EDIT BELOW CODE TO YOUR OWN MENU-->
    <p align="left"><a href="http://www.richesrace.com/servicestations/services/index.html" target=content><img src=http://www.richesrace.com/servicestations/opt1.jpg></a><br>
    <a href="http://www.richesrace.com/servicestations/companies/index.html" target=content><img src=http://www.richesrace.com/servicestations/opt2.jpg></a><br>
    <a href="http://www.richesrace.com/servicestations/articles/index.html" target=content><img src=http://www.richesrace.com/servicestations/opt3.jpg></a><br>
    <a href="http://www.richesrace.com/servicestations/guestbook/index.php" target=content><img src=http://www.richesrace.com/servicestations/opt4.jpg></a>
    <br>
    <a href="http://www.richesrace.com/servicestations/links.html" target=content><img src=http://www.richesrace.com/servicestations/opt5.jpg></a><br>
    <a href="http://www.richesrace.com/servicestations/help/index.html" target=content><img src=http://www.richesrace.com/servicestations/opt6.jpg></a></p>
    <!--END OF EDIT-->

    </layer>


    <script type="text/javascript">

    /*
    Floating Menu script- Roy Whittle (http://www.javascript-fx.com/)
    Script featured on/available at http://www.dynamicdrive.com/
    This notice must stay intact for use
    */

    //Enter "frombottom" or "fromtop"
    var verticalpos="frombottom"

    if (!document.layers)
    document.write('</div>')

    function JSFX_FloatTopDiv()
    {
    var startX = 3,
    startY = 150;
    var ns = (navigator.appName.indexOf("Netscape") != -1);
    var d = document;
    function ml(id)
    {
    var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
    if(d.layers)el.style=el;
    el.sP=function(x,y){this.style.left=x;this.style.top=y;};
    el.x = startX;
    if (verticalpos=="fromtop")
    el.y = startY;
    else{
    el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
    el.y -= startY;
    }
    return el;
    }
    window.stayTopLeft=function()
    {
    if (verticalpos=="fromtop"){
    var pY = ns ? pageYOffset : document.body.scrollTop;
    ftlObj.y += (pY + startY - ftlObj.y)/8;
    }
    else{
    var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
    ftlObj.y += (pY - startY - ftlObj.y)/8;
    }
    ftlObj.sP(ftlObj.x, ftlObj.y);
    setTimeout("stayTopLeft()", 10);
    }
    ftlObj = ml("divStayTopLeft");
    stayTopLeft();
    }
    JSFX_FloatTopDiv();
    </script>

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
  •