51 users online (0 members and 51 guests)  


  Results 1 to 8 of 8

Related

  1. css question    Forum: CSS Forum
    Replies: 2
  2. Yet another question?    Forum: HTML Forum
    Replies: 3
  3. AnOtHeR QuEsTiOn    Forum: HTML Forum
    Replies: 1
  4. Question    Forum: HTML Forum
    Replies: 2
  5. another question...    Forum: HTML Forum
    Replies: 6
  1. #1
    sshadow's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Mar 2001
    Location
    Ga, USA
    Posts
    48

    Question Another question (Yes sorry another one)

    I thought I was doing good with HTML and all till i got into this stuff. Besides the huge frustrations im having with my CGI I have another question about 2 scripts I have. Hopefully If these are answered I will know what to do about this in the future. In the below scripts numbered 1 and 2 I was wondering if anyone could tell me where to put the Value or Target of the frame i want it opened in. Sorry to clutter the board but I get frustrated easy and i cant figure it out.

    1.
    THIS SCRIPT BROUGHT TO YOU BY JAVAFILE.COM - http://www.javafile.com

    PASTE THIS SCRIPT INTO YOUR HEAD TAG

    <style type="text/css">
    <!--
    .menu {font-family:Verdana; font-size:7pt; font-weight:bold}
    -->
    </style>

    <script language="javascript">
    <!--
    function movein(which,html){
    which.style.background='coral'
    description.innerHTML=html
    }

    function moveout(which){
    which.style.background='bisque'
    description.innerHTML=' '
    }

    -->
    </script>


    PASTE THIS SCRIPT INTO YOUR BODY TAG

    Now insert this code where you want your menu located. The first value in the onmouseover is the id of the <td>. The next value is the description you want. If you want more choices..Be sure to copy everything from <tr> to </tr>. Then change the id (eg choice5)

    <table bgcolor="black" border="1" bordercolor="ivory" cellpadding="2" cellspacing="0">

    <tr>
    <td cl***="menu" bordercolor="black" id="choice1" style="background-color:bisque; cursor:hand" onmouseover="movein(choice1,'Big archive of free scripts')" onmouseout="moveout(choice1)" onclick="location.href='http://www.javafile.com'">
    Javafile</td></tr>

    <td cl***="menu" bordercolor="black" id="choice2" style="background-color:bisque; cursor:hand" onmouseover="movein(choice2,'Where this script lives!')" onmouseout="moveout(choice2)" onclick="location.href='http://www.freebox.com/cereweb/'">
    Cerebus Webmaster Resources</td></tr>

    <td cl***="menu" bordercolor="black" id="choice3" style="background-color:bisque; cursor:hand" onmouseover="movein(choice3,'Cool FREE Web Tools!')" onmouseout="moveout(choice3)" onclick="location.href='http://www.bravenet.com'">Bravenet</td></tr>

    <td cl***="menu" bordercolor="black" id="choice4" style="background-color:bisque; cursor:hand" onmouseover="movein(choice4,'Count Your Links!')" onmouseout="moveout(choice4)" onclick="location.href='http://www.linkcounter.com/ea.exe?ref&claeld&1'">LinkCounter</td></tr>

    <tr>
    <td bordercolor="black" bgcolor="ivory" height="18"><font id="description" face="Verdana" size="1"></font></td></tr>
    </table>

    2.
    <html>

    <head>
    <title>This script allows you to add menu branding to your web pages!</title>
    <meta name="GENERATOR" content="Microsoft FrontPage 3.0">
    </head>

    <body>

    <?php include "../../head.php"; ?>
    <!-- THREE STEPS TO INSTALL MENU BRANDING:

    1. Copy the coding into the HEAD of your HTML document
    2. Add the onLoad event handler into the BODY tag
    3. Put the last coding into the BODY of your HTML document -->

    <!-- STEP ONE: Paste this code into the HEAD of your HTML document -->

    <HEAD>

    <SCRIPT LANGUAGE="JavaScript">
    <!-- Original: Randy Bennett -->
    <!-- Web Site: http://home.thezone.net/~rbennett/sitemap.htm -->

    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://javascript.internet.com -->

    <!-- Begin
    function setVariables() {
    if (navigator.appName == "Netscape") {
    v = ".top=";
    h = ".left=";
    dS = "document.";
    sD = "";
    y = "window.pageYOffset";
    x = "window.pageXOffset";
    iW = "window.innerWidth";
    iH = "window.innerHeight";
    }

    else {
    h = ".pixelLeft=";
    v = ".pixelTop=";
    dS = "";
    sD = ".style";
    y = "document.body.scrollTop";
    x = "document.body.scrollLeft";
    iW = "document.body.clientWidth";
    iH = "document.body.clientHeight";
    }
    xyz = 500;
    innerX = eval(iW) - 115;
    innerY = eval(iH) - 110;
    object = "logo";
    checkLocationA();
    }
    movex = 0;
    movey = 0;
    xdiff = 0;
    ydiff = 0;
    ystart = 0;
    xstart = 0;

    function checkLocation() {
    yy = eval(y);
    xx = eval(x);
    ydiff = ystart - yy;
    xdiff = xstart - xx;
    if ((ydiff < (-1)) | | (ydiff > (1))) movey = Math.round(ydiff / 10), ystart -= movey;
    if ((xdiff < (-1)) | | (xdiff > (1))) movex = Math.round(xdiff / 10), xstart -= movex;
    eval(dS + object + sD + v + (ystart + innerY));
    eval(dS + object + sD + h + (xstart + innerX));
    setTimeout("checkLocation()", 10);
    }

    function checkLocationA() {
    ystart = eval(y);
    xstart=eval(x);
    }

    function switchLogo(abc) {
    if (abc == "menu") {
    eval(dS + object + sD + v + 0);
    eval(dS + object + sD + h + (-200));
    object = abc;
    }
    else xyz = setTimeout("delayLogo()", 2000)
    }

    function delayLogo() {
    eval(dS + object + sD + v + 0);
    eval(dS + object + sD + h + (-200));
    object = 'logo';
    }
    // End -->
    </script>
    </HEAD>

    <!-- STEP TWO: Insert the onLoad event handler into your BODY tag -->

    <BODY OnLoad="setVariables();checkLocation()">

    <!-- STEP THREE: Copy this code into the BODY of your HTML document -->

    <div id="logo" style="position:absolute; visibility:show; left:0px; top:-200px; z-index:2">

    <table border=0 cellspacing=10 cellpadding=0 width=100>
    <tr>
    <td>
    <center><br><br><br>
    <A href="javascript:void(0)"; onmouseover="switchLogo('menu')">

    Logo

    </A>
    </center>
    </td>
    </tr>
    </table>


    </div>


    <div id="menu" style="position:absolute; visibility:show; left:0px; top:-200px; z-index:2">

    <table border=0 cellspacing=10 cellpadding=0 width=100>
    <tr>
    <td>
    <center>
    <a href="http://www.your-site.com/page-one.html"; onmouseover="clearTimeout(xyz)"; onmouseout="switchLogo('logo')">Page One</a>
    </center>
    </td>
    </tr>
    <tr>
    <td>
    <center>
    <a href="http://www.your-site.com/page-two.html"; onmouseover="clearTimeout(xyz)"; onmouseout="switchLogo('logo')">Page Two</a>
    </center>
    </td>
    </tr>
    <tr>
    <td>
    <center>
    <a href="http://www.your-site.com/page-three.html"; onmouseover="clearTimeout(xyz)"; onmouseout="switchLogo('logo')">Page Three</a>
    </center>
    </td>
    </tr>
    </table>

    </div>

    <p><center>
    <font face="arial, helvetica" SIZE="-2">Free JavaScripts provided<br>
    by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
    </center><p>

    <!-- Script Size: 3.24 KB -->
    <p align="center"> </p>

    <p>This script allows you to add menu branding to your pages! The example appeares at the bottom right of this page.</p>

    <p>Author: <a href="http://www.javascriptsource.com">The JavaScriptSource</a>   <a
    href="http://www.javafile.com/javascripts/navigation/menubrand.zip">Download the Script</a></p>
    </body>
    </html>

    Again im really sorry to clutter the board. but i really want to know this so i can use it and learn. Thanx.

    ------------------
    Shadow

  2. #2
    sshadow's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Mar 2001
    Location
    Ga, USA
    Posts
    48

    Question

    Another short question. I saw somewhere about a way to get more than one script in the <HEAD></HEAD> tag to work but I cant for the life of me find it again. Could someone point me to a page that will help.

    ------------------
    Shadow

  3. #3
    sshadow's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Mar 2001
    Location
    Ga, USA
    Posts
    48

    Talking

    Ok great thank you very much for the help.

    ------------------
    Shadow

  4. #4
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel

    Post

    not a problem...if it were not for people with questions where would I be

  5. #5
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel

    Post

    ok, in the first script:

    <tr>
    <td cl***="menu" bordercolor="black" id="choice1" style="background-color:bisque; cursor:hand" onmouseover="movein(choice1,'Big archive of free scripts')" onmouseout="moveout(choice1)" onclick="location.href='http://www.javafile.com'">
    Javafile</td></tr>
    change to:
    onclick="top.frameName.location.href='http://www.javafile.com'">

    change framename to the name of the frame you want it opened in.

    let me work out the second script.

    You can put as many scripts in the head section as you need without muchh worry.

    Dave



    [This message has been edited by Dave (edited 03-10-2001).]

  6. #6
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel

    Post

    The second one has a mistake in the code
    find this :
    --------
    if ((ydiff < (-1)) | | (ydiff > (1))) movey = Math.round(ydiff / 10), ystart -= movey;
    if ((xdiff < (-1)) | | (xdiff > (1))) movex = Math.round(xdiff / 10), xstart -= movex;
    -------

    make certain that thei is only 1 space and not 2 between these pipes. It may be the UBB forcing an extra space on it.
    _________

    now to target your frame

    find:
    ____________

    <a href="http://www.your-site.com/page-one.html"; onmouseover="clearTimeout(xyz)"; onmouseout="switchLogo('logo')">Page One</a>
    _____________

    and add your target to look like this:

    _____________

    <a href="http://www.your-site.com/page-one.html" target="framename"; onmouseover="clearTimeout(xyz)"; onmouseout="switchLogo('logo')">Page One</a>
    ________

    change frame name to the name of your target frame.

    Dave



    [This message has been edited by Dave (edited 03-10-2001).]

  7. #7
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662

    Post

    lol. Bored, methinks.

    ------------------
    QuietDean-

  8. #8
    allstarr
    allstarr's Avatar
    Guest

    Post

    flipping burgers maybe...Mcdonalds?



Tags for this Thread