Results 1 to 8 of 8

Thread: Horizontal Scroll

  1. #1

    Thread Starter
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Question Horizontal Scroll

    I want to create horizontal scroll that are mention in the website http://www.nicholsinstitute.com/Default.aspx

    let me know if you have any idea about that.

    Thanks
    shakti

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Horizontal Scroll

    I don't see any horizontal scrollbar on that site, is that what you're trying to add to your page? Or are you referring to something else?

  3. #3
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: Horizontal Scroll

    Bet he is talking about he scrolling marquee in the top right corner.

    You can read about that here. Not a very popular thing to use though.
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  4. #4

    Thread Starter
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Smile Re: Horizontal Scroll

    Yes you was right I was talking about scrolling marque at top right corner... but I do not want to use marque here.
    do you have any other suggestion.

  5. #5
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: Horizontal Scroll

    Good decision...marquee's is an IE only thing.

    Yeah, as it have to happen on the client side, JavaScript should do the trick.

    Try the following (you can tinker with it to make it work for your specific scenario):

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Untitled Page</title>
        <script type="text/javascript">
            message = "Stranger strange land.  gwarra gwarra gwarra";
            initial_delay = 0;
            scroll_delay = 75;
            max_indent = 50;
            function scroll() {
                message = message.substring(1, message.length)
                  + message.substring(0, 1);
                document.scrollbox_form.scrollbox.value = message;
                window.setTimeout("scroll ()", scroll_delay);
            }
            function start_scroll() {
                for (var i = 1; i <= max_indent; i++)
                    message = " " + message;
                scrollbox = document.scrollbox_form.scrollbox;
                window.setTimeout("scroll ()", initial_delay);
            }
        </script>
    </head>
    <body onload="start_scroll ();">
        Text will scroll below if your browser support Javascript.
        <form name="scrollbox_form">
        <input type="text" name="scrollbox" size="25">
        </form>
        ....
    </body>
    </html>
    Last edited by StrangerInBeijing; Mar 25th, 2009 at 10:00 AM.
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  6. #6

    Thread Starter
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Re: Horizontal Scroll

    Thanks for answer but that was not similar as it was mention in the website can we use its JS and CSs?

  7. #7
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: Horizontal Scroll

    Sure. Look at the source, get the path's to the js files and open. I'll never try do that (hate figuring out other's code)
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  8. #8
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Horizontal Scroll

    The specific name for that is a 'ticker'. The most popular being the BBC news ticker.

    http://www.mioplanet.com/rsc/newsticker_javascript.htm

Posting Permissions

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



Click Here to Expand Forum to Full Width