Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom frame scrolling

Status
Not open for further replies.

webmaestrodude

Programmer
Aug 31, 2005
37
GB
hi,

I was feeling ambitious, and once - quite recently, i decided to undertake the task of making a scrolling pagne in a webpage.

I havn't started coding yet, this more an outloud think.

Do you think it could be done with a bit of javascript. i mean, for example, i know how to make it scroll to specific places with the: JavaScript:scroll(value,value) function

but how would i make it scroll like a scroll bar?

This is my idea:
I have an iframe and within that iframe i have a frameset and in one of the 2 frames, 'text' on the left and 'scroll' on the right. Then if I have an up and down arrow with a target set to 'text' for example, thus scrolling the text in the 'text' frame.

I'm sure its gonna be tricky-ish, but...any ideas?

cheers!


-----
Best Regards
Rob Kelsey
_________________________________________________________________
My computer makes me say: "Somebody stop the world, I want to get off!
 
You can do this with CSS and/or DHTML.

If you create a DIV on a page and set the overflow property to Auto you will get a box with scrollbars if the data in the window overflows the window.

Or, you can use a marquee field and the scrollamount, scrolldelay, direction and behavior attributes to get the effect of scrolling.

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title></title>
</head>
<body>
<div align="center">
<strong>
<marquee bgcolor="gray" scrollAmount="2" direction="up" loop="true" width="400">
<center><font color="#ffffff" size="+1">
This is line 1<br>
This is line 2<br>
This is line 3<br>
This is line 4<br>
This is line 5<br>
This is line 6<br>
This is line 7<br>
This is line 8<br>
This is line 9<br>
This is line 10<br>
This is line 11<br>
This is line 12<br>
This is line 13<br>
This is line 14<br>
</font></center>
</marquee>
</strong>
</div>
</body>
</html>

Paranoid? ME?? WHO WANTS TO KNOW????
 
yes i thought about doing something like that, but i was thinking of making it like a navigational menu. I thought maybe an applet might work? its not really that important, its just something i'm working on in my spare time.

is there a special type of software i need to make .class files?

-----
Best Regards
Rob Kelsey
_________________________________________________________________
My computer makes me say: "Somebody stop the world, I want to get off!
 
That would be Java programming and you would need the Java environment. There are plenty of tutorials on installing and configuring it on your PC so that you can test and complie anything you create.

An applet would be the most flexible since it is more accurately supported across the different browsers.
There is quite a bit you can do with javascript though.

Paranoid? ME?? WHO WANTS TO KNOW????
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top