The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> new site, new layout
xxkasperxx
post Nov 14 2011, 10:44 PM
Post #1


Serious Coder
*****

Group: Members
Posts: 251
Joined: 30-April 11
Member No.: 14,449



I want to create a website for a driving school, and i want the page to be a long road, and on the side it has signs.. and when you click on the link bar it will go down the road to that sign and show the info on that sign, is that possible? and if so how would i go about doing that?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Nov 14 2011, 11:04 PM
Post #2


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 13,726
Joined: 9-August 06
Member No.: 6



Flash?


--------------------
“Never go to excess, but let moderation be your guide.”
– Cicero

IPB Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Nov 15 2011, 06:54 AM
Post #3


.
********

Group: WDG Moderators
Posts: 4,759
Joined: 10-August 06
Member No.: 7



Or maybe internal links, but that would look less elegant, and going down a page might feel like driving backwards.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
xxkasperxx
post Nov 15 2011, 07:07 PM
Post #4


Serious Coder
*****

Group: Members
Posts: 251
Joined: 30-April 11
Member No.: 14,449



so what would be the best way to go about this? and if flash is the way to go, how would i do that? I have never used flash when coding..
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Nov 15 2011, 08:56 PM
Post #5


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 13,726
Joined: 9-August 06
Member No.: 6



If you just want the page to scroll down to the traffic sign and show a text there, you can probably do it with JavaScript + CSS too. It's a little hard to imagine exactly how you want it.

If you are going for Flash, I guess you need to learn Flash. And start to save up for the program.


--------------------
“Never go to excess, but let moderation be your guide.”
– Cicero

IPB Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
xxkasperxx
post Nov 15 2011, 09:02 PM
Post #6


Serious Coder
*****

Group: Members
Posts: 251
Joined: 30-April 11
Member No.: 14,449



i would love to use java-script and css.. How can i go about doing that? so my idea is to have a pic of a road... and then on the side have signs.. and text be on the sign, however i need to create a nav-bar in the sky and when you click on a particular button in the nav bar it zooms you down the street to that sign, and vice versa for going backwards..

This post has been edited by xxkasperxx: Nov 15 2011, 09:03 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Nov 15 2011, 09:48 PM
Post #7


.
********

Group: WDG Moderators
Posts: 4,759
Joined: 10-August 06
Member No.: 7



If you mean a road that disappears at the horizon, it might be made with a static picture that actually never moves.

Then when the button is clicked, maybe you can use a JS timer to gradually increase the size of the road sign image and move it down diagonally next to the road side (to create an illusion of the driver approaching it).
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
xxkasperxx
post Nov 28 2011, 04:38 PM
Post #8


Serious Coder
*****

Group: Members
Posts: 251
Joined: 30-April 11
Member No.: 14,449



QUOTE(Christian J @ Nov 15 2011, 10:48 PM) *

If you mean a road that disappears at the horizon, it might be made with a static picture that actually never moves.

Then when the button is clicked, maybe you can use a JS timer to gradually increase the size of the road sign image and move it down diagonally next to the road side (to create an illusion of the driver approaching it).



How would i go about doing this? i tried to Google it and found nothing sad.gif Please help!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Nov 28 2011, 05:28 PM
Post #9


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 13,726
Joined: 9-August 06
Member No.: 6



That's what I call a tall order! biggrin.gif


--------------------
“Never go to excess, but let moderation be your guide.”
– Cicero

IPB Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
xxkasperxx
post Nov 28 2011, 06:32 PM
Post #10


Serious Coder
*****

Group: Members
Posts: 251
Joined: 30-April 11
Member No.: 14,449



"tall order"?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
xxkasperxx
post Nov 28 2011, 08:44 PM
Post #11


Serious Coder
*****

Group: Members
Posts: 251
Joined: 30-April 11
Member No.: 14,449



please guide me on the track to making a java-script script that zooms onto a sign on the picture when a link is clicked..
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Nov 28 2011, 08:50 PM
Post #12


.
********

Group: WDG Moderators
Posts: 4,759
Joined: 10-August 06
Member No.: 7



QUOTE(xxkasperxx @ Nov 28 2011, 10:38 PM) *

How would i go about doing this?

Let a function keep calling itself (recursively) after short delays (using the setTimeout method), each time adding 1px to the size and position of the image, until the image is at its max size/position.

An extra complication (at least if you allow multiple road signs simultaneously) is that (IIRC) the variable scope of setTimeout is always global. There are workarounds, but I can't remember the details.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
xxkasperxx
post Nov 29 2011, 07:49 AM
Post #13


Serious Coder
*****

Group: Members
Posts: 251
Joined: 30-April 11
Member No.: 14,449



christian can you please explain further.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Nov 29 2011, 09:59 AM
Post #14


.
********

Group: WDG Moderators
Posts: 4,759
Joined: 10-August 06
Member No.: 7



Not without writing the whole thing, no. sad.gif Which part are you having trouble with?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Nov 29 2011, 10:07 AM
Post #15


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 13,726
Joined: 9-August 06
Member No.: 6



That's what makes it a tall order. You ask for too much at once.


--------------------
“Never go to excess, but let moderation be your guide.”
– Cicero

IPB Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
xxkasperxx
post Dec 1 2011, 12:06 AM
Post #16


Serious Coder
*****

Group: Members
Posts: 251
Joined: 30-April 11
Member No.: 14,449



where would be a good place to begin to start learning enough java-script to do something like this site? http://www.nofrks.com/
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Dec 1 2011, 04:41 AM
Post #17


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 13,726
Joined: 9-August 06
Member No.: 6



The beginning is usually a good place to start. Search for JavaScript tutorials.

That page isn't as complicated as it may seem. View Source and save it on your HD. Add this at the top of HEAD
CODE
<base href="http://www.nofrks.com/">

and this at the bottom
CODE
<style type="text/css">
*  { overflow: visible !important }
</style

and you can see how it's done. The only thing you need JavaScript for is the precise scrolling, possibly it's also slowed down a little.


--------------------
“Never go to excess, but let moderation be your guide.”
– Cicero

IPB Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 21st May 2013 - 03:52 PM