|
-
Mar 24th, 2009, 02:27 PM
#1
Thread Starter
Just Married
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
-
Mar 25th, 2009, 02:58 AM
#2
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?
-
Mar 25th, 2009, 04:12 AM
#3
Frenzied Member
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.
-
Mar 25th, 2009, 09:31 AM
#4
Thread Starter
Just Married
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.
-
Mar 25th, 2009, 09:55 AM
#5
Frenzied Member
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.
-
Mar 25th, 2009, 02:09 PM
#6
Thread Starter
Just Married
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?
-
Mar 25th, 2009, 09:49 PM
#7
Frenzied Member
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)
-
Mar 26th, 2009, 02:31 AM
#8
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|