Web Analytics Made Easy -
StatCounter scrollable content - CodingForum

Announcement

Collapse
No announcement yet.

scrollable content

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • scrollable content

    Been looking online for a scrollable-content code, and usually found stuff like this or this .

    I need SC code like the first link , but without the horizontal scroll included (or at least not visible on the page)...

    Anyone? Please? Help?

    =(O.o)=

  • #2
    try this:

    <div id="cdiv" style="OVERFLOW-Y: auto; WIDTH: 92%; HEIGHT: 250px" >
    <div align="left">

    Insert text here

    <div>
    </div>

    and change the width and height as required.
    An example is shown at my site

    Mxx
    "Imagination is more important than knowledge" A. Einstein's 'Twin Paradox'

    Comment


    • #3
      thanks for the help, this is exactly what i've been looking for.

      Comment


      • #4
        Is there a way to create a link, and have the page/picture appear within the content box?

        Any help will be appreciated.

        thanks!!

        dan
        dan

        Comment


        • #5
          Is there a way to create a link, and have the page/picture appear within the content box?

          Any help will be appreciated.

          thanks!!

          dan
          dan

          Comment


          • #6
            <div id="cdiv" style="OVERFLOW-Y: auto; WIDTH: 92%; HEIGHT: 250px" >
            <div align="left" id="blah">

            Insert text here

            </div>
            </div>
            <a href="javascript:ChangeContent()">Change it!</a>
            <script>
            function ChangeContent(){
            var x=document.getElementById("blah");
            x.innerHTML="text and images <img src=\"test.gif\">";
            }
            </script>

            Comment


            • #7
              That worked!!

              thank you very much!!
              dan

              Comment


              • #8
                I was reading this topic and this sounded like the perfect solution to a problem I was experiencing, however, I ran into a brain freeze trying to expand on it.

                I added the script as you stated and added a $content1 and $content2 variables to it that would contain the 'home page' content like so:

                <script>
                $content[1] = "This is a test.";
                $content[2] = "This is another test.";
                function ChangeContent(type){
                var x=document.getElementById("mainContent");
                x.innerHTML=$content[type];
                }
                </script>

                <a href="javascript:ChangeContent(2);"
                onMouseover="window.status='Return to the Main Page';return true">Home</a><br>

                How would I pass the proper $content[Number] to the script? I'm guessing I'm not using the arrays right, but not sure.

                Thanks in advance!
                if ( bad && possible ) happen();
                Sig re-written for faster processing...

                Comment


                • #9
                  Nevermind, this post should be followed by a big *Duh!*
                  if ( bad && possible ) happen();
                  Sig re-written for faster processing...

                  Comment

                  Working...
                  X