Dynamic Include Page? Change what's included as mouse moves?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mr B

    Dynamic Include Page? Change what's included as mouse moves?

    Howdy,

    I want to set up an Include page in a cell of a table. Then I want to be able to change which page
    is included on the fly as the user moves the mouse of the various links on the page. How can I do
    this?

    THe include page was set up via FrontPage so it put it's Bot stuff in there, but if someone could
    tell me the "standard" way to use an include page and if there's a way using onMouseover etc to then
    change that and refresh it on the fly, that'd be great.

    Thanks.
  • Lee

    #2
    Re: Dynamic Include Page? Change what's included as mouse moves?

    Mr B said:[color=blue]
    >
    >Howdy,
    >
    >I want to set up an Include page in a cell of a table. Then I want to be able
    >to change which page
    >is included on the fly as the user moves the mouse of the various links on the
    >page.[/color]

    Things that happen as a mouse moves over an area should generally be limited
    to things that can happen *very* quickly, so that it can be done before the
    mouse moves on to some other spot.
    Loading new content over the Internet doesn't qualify as something that can
    happen *very* quickly.

    Comment

    • Mr B

      #3
      Re: Dynamic Include Page? Change what's included as mouse moves?

      Yeah but loading in 3 lines of text doesn't take more than a split second or so.

      On 22 Sep 2003 13:45:10 -0700, Lee <REM0VElbspamtr ap@cox.net> wrote:
      [color=blue]
      >Mr B said:[color=green]
      >>
      >>Howdy,
      >>
      >>I want to set up an Include page in a cell of a table. Then I want to be able
      >>to change which page
      >>is included on the fly as the user moves the mouse of the various links on the
      >>page.[/color]
      >
      >Things that happen as a mouse moves over an area should generally be limited
      >to things that can happen *very* quickly, so that it can be done before the
      >mouse moves on to some other spot.
      >Loading new content over the Internet doesn't qualify as something that can
      >happen *very* quickly.[/color]

      Comment

      • Ivo

        #4
        Re: Dynamic Include Page? Change what's included as mouse moves?


        "Mr B" <ladeeda@hahaha .com> wrote in message
        news:gnpumvg6ih 3v8jcb3sci6rl1e l1831d2of@4ax.c om...[color=blue]
        > Yeah but loading in 3 lines of text doesn't take more than a split second[/color]
        or so.

        Yes, it does. I have closed my dail-up connection after the initial load.

        On top of that, I can get quite impatient when the connection dialog
        re-appears without me expecting it.
        And even with a connection alive, the request for an empty file takes some
        time. It is much better to load 100x three lines once, than 100 times load
        three lines.
        Please don't do too fancy things onmouseover. It will not make you many
        friends.
        Ivo


        Comment

        • Mr B

          #5
          Re: Dynamic Include Page? Change what's included as mouse moves?

          But there are ways to make the data all load up right away and jsut display whichever you want
          depending on where the mouse is. I don't know if you do it with Layers or CSS stuff or what but I
          know it's possible because there are lots of sites that use it. I just don't know the best way to
          accomplish it.

          On Mon, 22 Sep 2003 23:35:09 +0200, "Ivo" <no@thank.you > wrote:
          [color=blue]
          >
          >"Mr B" <ladeeda@hahaha .com> wrote in message
          >news:gnpumvg6i h3v8jcb3sci6rl1 el1831d2of@4ax. com...[color=green]
          >> Yeah but loading in 3 lines of text doesn't take more than a split second[/color]
          >or so.
          >
          >Yes, it does. I have closed my dail-up connection after the initial load.
          >
          >On top of that, I can get quite impatient when the connection dialog
          >re-appears without me expecting it.
          >And even with a connection alive, the request for an empty file takes some
          >time. It is much better to load 100x three lines once, than 100 times load
          >three lines.
          >Please don't do too fancy things onmouseover. It will not make you many
          >friends.
          >Ivo
          >[/color]

          Comment

          • Lee

            #6
            Re: Dynamic Include Page? Change what's included as mouse moves?

            Mr B said:[color=blue]
            >
            >Yeah but loading in 3 lines of text doesn't take more than a split second or so.[/color]

            Longer than you seem to realize, and the exact amount of time depends on
            too many conditions that you can't control.

            If it's only three lines of text, load all of the data into an array,
            instead of hitting the server again for each one.

            Comment

            • Ivo

              #7
              Re: Dynamic Include Page? Change what's included as mouse moves?

              "Mr B" <ladeeda@hahaha .com> wrote in message
              news:matumv8k0v e07hn2m5vulu7g2 jjmst8h44@4ax.c om...[color=blue]
              > On Mon, 22 Sep 2003 23:35:09 +0200, "Ivo" <no@thank.you > wrote:[color=green]
              > >"Mr B" <ladeeda@hahaha .com> wrote in message
              > >news:gnpumvg6i h3v8jcb3sci6rl1 el1831d2of@4ax. com...[color=darkred]
              > >> Yeah but loading in 3 lines of text doesn't take more than a split[/color][/color][/color]
              second[color=blue][color=green]
              > >or so.
              > >
              > >Yes, it does. I have closed my dail-up connection after the initial load.
              > >
              > >On top of that, I can get quite impatient when the connection dialog
              > >re-appears without me expecting it.
              > >And even with a connection alive, the request for an empty file takes[/color][/color]
              some[color=blue][color=green]
              > >time. It is much better to load 100x three lines once, than 100 times[/color][/color]
              load[color=blue][color=green]
              > >three lines.
              > >Please don't do too fancy things onmouseover. It will not make you many
              > >friends.
              > >Ivo
              > >[/color]
              > But there are ways to make the data all load up right away and jsut[/color]
              display whichever you want[color=blue]
              > depending on where the mouse is. I don't know if you do it with Layers or[/color]
              CSS stuff or what but I[color=blue]
              > know it's possible because there are lots of sites that use it. I just[/color]
              don't know the best way to[color=blue]
              > accomplish it.
              >[/color]
              Ah, that I did not know. It is usually done with some function which changes
              the "innerHTML" or "innerText" of (a section of) the page. Javascript can
              also change style to make it (in)visible. Layers are history. For examples,
              from the most basic to as complex as you want it, have a look at
              www.dynamicdrive.com and click on "dynamic content". And as with any
              research, don't shy away from Google.
              Ivo


              Comment

              • Mr B

                #8
                Re: Dynamic Include Page? Change what's included as mouse moves?

                Well, for anyone else folowing this thread.... Here's what I did to solve the problem. the
                dropmsg0 Div below is the default. The rest are what replaces it when the mouse is in certain
                places.



                Here's the code from the Header Section:

                <style type="text/css">
                ..dropcontent{
                width: 300px;
                height: 140px;
                background-color: #FFFFFF;
                display:block;
                }
                </style>


                <script type="text/javascript">
                function expandone(which )
                {
                var inc=0
                while (document.getEl ementById("drop msg"+inc))
                {
                document.getEle mentById("dropm sg"+inc).style. display="none"
                inc++
                }
                document.getEle mentById("dropm sg"+which).styl e.display="bloc k"
                }



                Then in the area where I wanted to modify the information shown, I created a bunch of DIV sections
                such as:

                <div id="dropmsg0" class="dropcont ent">
                formatted info here
                </div>

                <div id="dropmsg1" class="dropcont ent">
                formatted info here
                </div>

                <div id="dropmsg2" class="dropcont ent">
                formatted info here
                </div>

                <div id="dropmsg3" class="dropcont ent">
                formatted info here
                </div>


                Then on whatever you want to do the onMouseOver stuff on, just put in a line such as:
                <a href="link.html " onMouseOver="ex pandone('1')" onMouseOut="exp andone('0')">


                Was really easy once I figured out what I was doing since I had never used Divs before.







                On Tue, 23 Sep 2003 01:35:45 +0200, "Ivo" <no@thank.you > wrote:
                [color=blue]
                >"Mr B" <ladeeda@hahaha .com> wrote in message
                >news:matumv8k0 ve07hn2m5vulu7g 2jjmst8h44@4ax. com...[color=green]
                >> On Mon, 22 Sep 2003 23:35:09 +0200, "Ivo" <no@thank.you > wrote:[color=darkred]
                >> >"Mr B" <ladeeda@hahaha .com> wrote in message
                >> >news:gnpumvg6i h3v8jcb3sci6rl1 el1831d2of@4ax. com...
                >> >> Yeah but loading in 3 lines of text doesn't take more than a split[/color][/color]
                >second[color=green][color=darkred]
                >> >or so.
                >> >
                >> >Yes, it does. I have closed my dail-up connection after the initial load.
                >> >
                >> >On top of that, I can get quite impatient when the connection dialog
                >> >re-appears without me expecting it.
                >> >And even with a connection alive, the request for an empty file takes[/color][/color]
                >some[color=green][color=darkred]
                >> >time. It is much better to load 100x three lines once, than 100 times[/color][/color]
                >load[color=green][color=darkred]
                >> >three lines.
                >> >Please don't do too fancy things onmouseover. It will not make you many
                >> >friends.
                >> >Ivo
                >> >[/color]
                >> But there are ways to make the data all load up right away and jsut[/color]
                >display whichever you want[color=green]
                >> depending on where the mouse is. I don't know if you do it with Layers or[/color]
                >CSS stuff or what but I[color=green]
                >> know it's possible because there are lots of sites that use it. I just[/color]
                >don't know the best way to[color=green]
                >> accomplish it.
                >>[/color]
                >Ah, that I did not know. It is usually done with some function which changes
                >the "innerHTML" or "innerText" of (a section of) the page. Javascript can
                >also change style to make it (in)visible. Layers are history. For examples,
                >from the most basic to as complex as you want it, have a look at
                >www.dynamicdrive.com and click on "dynamic content". And as with any
                >research, don't shy away from Google.
                >Ivo
                >[/color]

                Comment

                Working...