Home › Forums › JavaScript › Javascript animated Divs trouble.
- This topic is empty.
-
AuthorPosts
-
April 23, 2009 at 3:15 am #24671NiploParticipant
Hi,
I’m pretty new to web design and javascript, I watched the Starry Night Video tutorial on this website that featured large images for a background that adjusted as you moved the browser window.
I’ve done a similar thing with a large image background that adjusts with the browser. I’m using Java Script for an accordion menu and also to slide down the main window. PROBLEM. When the main window animates down the background image gets warped, lines appear. Works fine if I don’t use the ‘repeat 20% 20%’ but I like the effect:
[img]http://www.get-over.net/Images/over/shot1.jpg[/img]
[img]http://www.get-over.net/Images/over/shot2.jpg[/img]any help.
CSS Part:
Code:body {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size:11px;
line-height:15px;
background:url(images/face.jpg) repeat 20% 20%;
text-align:left;
}HTML
Code:Hey yall wassup
April 23, 2009 at 4:40 am #56584Rob MacKayParticipantyou dont have a live link by chance do you? Just kinda like pokin stuff with a stick, I mean firebug lol
April 23, 2009 at 9:10 am #56684NiploParticipantJust put something up:
http://www.get-over.net/Tester/index.html
Pretty sketchy but I’m still honing my skills. Any help or suggestions is greatly appreciated. Thanks
April 23, 2009 at 3:08 pm #56694Rob MacKayParticipantmmm link not working? :(
April 23, 2009 at 11:33 pm #56705NiploParticipantNot sure man, I tried the link on a different computer and it worked fine:
http://www.get-over.net/Tester/index.html
Not sure if being in Australia would have any bearing on this.April 28, 2009 at 4:19 am #56840Rob MacKayParticipantworks now :D
Its coz you have your background position as a %, its some strangely weird issue – which is well above my head lol
If you set a solid PX to the background pos instead of % then it works lovely, the only problem is you loose the reason you have a % position lol
I dunno how to get round that one dude… unless you dont mind having a more fixed bg… I will give it a think through again when its not so early in the morning…
-
AuthorPosts
- The forum ‘JavaScript’ is closed to new topics and replies.