PDA

View Full Version : Scroll table


00XxXxX00
03-21-2003, 01:48 AM
ok, on my site at www.geocities.com/riwskate/home Instead of putting a table in the middle for each update, I want there to be a box plopped in the middle of the page, where you can scroll up and down, without anything around it moving. And inside that scroll box I can put my updates, any ideas?

cooldood03
03-21-2003, 03:17 AM
What is the code for a scrollable table?
I think my site needs some of those.
http://cooldood.hey.to
:thumbsup:

00XxXxX00
03-21-2003, 09:40 PM
your site needs alot of things...

redhead
03-21-2003, 10:11 PM
heres a way to make a div scroll:

<div style="overflow-y: scroll; width: 200px; height: 100px;">
Greetings. This div can be filled with nonsense and it should scroll... ;)
im not too sure which browsers this will work in but it works for me...
well, this is meant to be just a div that is full of garbage so that it
scrolls, and i think it could well need a little encouagement:
<br>:)<br>:P<br>
There we go, is this nearer scrolling? i sure hope it is...
</div>

:thumbsup:

cg9com
03-21-2003, 10:25 PM
you could also use clips

<div style="clip:15px 15px 15px 15px;overflow-y:scroll"></div>

overflow-y meaning the y (vertical) axis, and overflow-x controlling the horizontal. or just use overflow: to control both at once.
overflow:auto|hidden|scroll|visible;

cooldood03
03-22-2003, 05:17 AM
Thanks a lot. I'm only an amateur @ html coding, but I'm inproving.:thumbsup:

cg9com
03-22-2003, 05:33 AM
you can improve by staying here :D
great learning atmosphere.

cooldood03
03-22-2003, 01:19 PM
Hey Redhead, I went 2 ur site, & I'm interested in de scrollbar. What's the script for the code where u put the cursor on de scrollbar arrow & the frame is scrooled up or down?
:thumbsup:

redhead
03-22-2003, 01:52 PM
erm, that was a script i had tryed writing but i couldnt... i think mine just kept... not working...

i really didnt like the idea of using cut 'n' paste on my site... as i like things to be all my own work... but in the end i compromised. it doesnt get much traffic anyways and it's only my "personal" site so i decided that no one would see it anways (but no, here i am declaring to the whole of CF that i use cut and paste on my site... woe to me:() ;)

a note of warning: it only works in IE... (the others will render something but i forget what ;))

it's from http://getElementById.com/ you'll have to have a poke around to find it.....

:thumbsup:

cooldood03
03-22-2003, 02:06 PM
Thanx. I like de intro in dat site u put in de reply. I'm amazed dat it wasn't made by flash. I guess javascripts can be juz as good as flash!
:thumbsup:

cooldood03
03-22-2003, 02:13 PM
This may not b de rite place 2 ask dis, but I'm asking.
In IE, there is a standard button dat says edit, & if u klik on it, u can c the entire code of a site. So how can I prevent my CHEAPSKATE friends from copying my code? Already 2 of them hav copied bcoz of dat. PLS HELP!!!

Nightfire
03-22-2003, 02:27 PM
You can't stop it, so don't even waste your time trying to stop it

redhead
03-22-2003, 03:21 PM
So how can I prevent my CHEAPSKATE friends from copying my code?[/B] nightfire summed it up;) if you need to be convinced you might want to read this thread: http://www.codingforums.com/showthread.php?threadid=4437

cooldood03
03-23-2003, 03:01 AM
Thanx anyway. I may hav 2 use flash 2 do my site so dat no1 copies it. :'( :(
I was considering of doin dat, but mayb I shld leave it as it iz.
Mayb add a bit of flash. Any1 knows flash here? Any1 has msn messenger & an msn account? Pls add me( inform me b4 adding me). :p :thumbsup: :cool:

Nightfire
03-23-2003, 01:39 PM
ppl can still rip flash from sites ;) Only way to prevent ppl from copying you is to not put the site online

00XxXxX00
03-23-2003, 03:40 PM
OK i got that scroll body up, works great.

cooldood03
03-25-2003, 12:14 PM
Wat is de code 4 opening a new window like in www.nikefootball.com (http://www.nikefootball.com )

brothercake
03-25-2003, 12:30 PM
you have

target="_blank"

in HTML, and

var newWin = open('page.html');

in JS.

BTW - this question is not really related to the thread; when you have an unrelated question please start a new one.

cooldood03
03-25-2003, 12:50 PM
Thanx brothercake 4 de code. I juz set up a new forum. It's called "Anything". It's under HTML & CSS. I'm inviting evry1 2 go there

ronaldb66
03-25-2003, 01:43 PM
... not put the site online which in his case would be a blessing for everyone...