User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » looking for a quick html/javascript Page [1]  
Novicane
All American
15413 Posts
user info
edit post

Google the hell out of this, i've seen it before but can't seem to find it now.

I'm looking a simple script that will take an image or div and have it move as the page scrolls up and down.

the image will probably be linked to another page.

3/22/2010 1:35:31 PM

qntmfred
retired
40551 Posts
user info
edit post

do you want the div to animate at the page scrolls, or do you just want the div to stay in the same place on the screen?

3/22/2010 1:41:38 PM

Novicane
All American
15413 Posts
user info
edit post

just stay in the same place

So if its 100 px from the top then if you scroll down, id like it to stay 100 px from the top. Nothing fancy.

3/22/2010 2:07:53 PM

Stein
All American
19842 Posts
user info
edit post

In CSS, it's just "position: fixed"

Though this won't work in IE6, nor other versions of IE unless you specify a doctype.

3/22/2010 2:10:44 PM

Novicane
All American
15413 Posts
user info
edit post

never played with fixed before, i'll try that, thnx

3/22/2010 2:22:15 PM

FroshKiller
All American
51908 Posts
user info
edit post

If you don't declare a DOCTYPE, you're not writing valid HTML anyway. ;P

3/22/2010 2:52:50 PM

Shaggy
All American
17820 Posts
user info
edit post

doctype shmocktype. if it works in IE thats all that matters.

3/22/2010 2:53:59 PM

FroshKiller
All American
51908 Posts
user info
edit post



NOT A FAN OF Shaggy RIGHT NOW

3/22/2010 2:58:07 PM

Stein
All American
19842 Posts
user info
edit post

The doctype issue comes up when you go "yo, lemme check that real quick"

<html>
<body>
<div style="position: fixed; left: 50px; top: 10px">aaaaaaa</div>
</body>
</html>

And then bang your head on a desk for 15 minutes when it doesn't work

[Edited on March 22, 2010 at 3:26 PM. Reason : who memorizes <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"> anyway?]

3/22/2010 3:25:28 PM

FroshKiller
All American
51908 Posts
user info
edit post

More like who doesn't use an IDE that generates one for you automatically. ;P

3/22/2010 3:34:12 PM

Shaggy
All American
17820 Posts
user info
edit post

yea lemme use an IDE thats gonna generate junk code that doesn't work in IE.

3/22/2010 3:35:50 PM

FroshKiller
All American
51908 Posts
user info
edit post

since when does IE choke on doctype declarations

because that's news to me

[Edited on March 22, 2010 at 3:37 PM. Reason : though i guess i wouldn't be surprised]

3/22/2010 3:36:42 PM

Stein
All American
19842 Posts
user info
edit post

Quote :
"More like who doesn't use an IDE that generates one for you automatically. ;P"


When I hit "New File" it gives me a nice, blank file. Ain't no templatin' here.

3/22/2010 3:43:48 PM

Shaggy
All American
17820 Posts
user info
edit post

im saying IE doesnt care about doctype, therefore doctype is optional.

3/22/2010 3:43:50 PM

Golovko
All American
27023 Posts
user info
edit post

Negative NancyShaggy at it again!

3/22/2010 3:47:23 PM

Ernie
All American
45943 Posts
user info
edit post

doctype is optional if you suck at your job

or if you don't know what you're talking about

3/22/2010 4:03:59 PM

Shaggy
All American
17820 Posts
user info
edit post

If it works in IE, its production ready. Doctype or no.

3/22/2010 4:09:54 PM

Ernie
All American
45943 Posts
user info
edit post

Shaggy makes some junk

3/22/2010 4:12:09 PM

Shaggy
All American
17820 Posts
user info
edit post

nope, that would be anything to do with firefox.

3/22/2010 4:12:52 PM

Ernie
All American
45943 Posts
user info
edit post

lol browsar fight!!1

3/22/2010 4:13:55 PM

Shaggy
All American
17820 Posts
user info
edit post

although to be honest I would never dirty myself by touching unpure languages like html, css, javascript, or php.

3/22/2010 4:16:34 PM

Kris
All American
36908 Posts
user info
edit post

Javascript is great, it's really funky, but it's by far the most powerful web tool out there.

I haven't written straight HTML in years, why would you when there are so many other tools that can generate it for you, like JSF.

3/22/2010 6:02:18 PM

Golovko
All American
27023 Posts
user info
edit post

Quote :
"If it works in IE, its production ready. Doctype or no."


lol. Shaggy brings the funny.

Quote :
"
I haven't written straight HTML in years, why would you when there is frontpage are so many other tools that can generate it for you, like JSF."


fixed it for you

[Edited on March 22, 2010 at 6:41 PM. Reason : .]

3/22/2010 6:40:45 PM

qntmfred
retired
40551 Posts
user info
edit post

Shaggy is like the lafta of browser discussion

3/22/2010 8:35:13 PM

Kris
All American
36908 Posts
user info
edit post

frontpage is to web tool as access is to database tool.

3/23/2010 11:31:44 AM

Golovko
All American
27023 Posts
user info
edit post

it generates 'straight HTML' for you.

3/23/2010 11:35:24 AM

Kris
All American
36908 Posts
user info
edit post

so does JSF

3/23/2010 11:59:25 AM

Golovko
All American
27023 Posts
user info
edit post

nvm...

3/23/2010 12:16:38 PM

Kris
All American
36908 Posts
user info
edit post

OIC no wait

3/23/2010 12:59:15 PM

 Message Boards » Tech Talk » looking for a quick html/javascript Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.38 - our disclaimer.