![]() ![]() |
| xxkasperxx |
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?
|
| pandy |
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?
-------------------- |
| Christian J |
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.
|
| xxkasperxx |
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..
|
| pandy |
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. -------------------- |
| xxkasperxx |
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 |
| Christian J |
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). |
| xxkasperxx |
Nov 28 2011, 04:38 PM
Post
#8
|
|
Serious Coder ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 251 Joined: 30-April 11 Member No.: 14,449 |
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 |
| pandy |
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!
-------------------- |
| xxkasperxx |
Nov 28 2011, 06:32 PM
Post
#10
|
|
Serious Coder ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 251 Joined: 30-April 11 Member No.: 14,449 |
"tall order"?
|
| xxkasperxx |
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..
|
| Christian J |
Nov 28 2011, 08:50 PM
Post
#12
|
|
. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: WDG Moderators Posts: 4,759 Joined: 10-August 06 Member No.: 7 |
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. |
| xxkasperxx |
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.
|
| Christian J |
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.
|
| pandy |
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.
-------------------- |
| xxkasperxx |
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/
|
| pandy |
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. -------------------- |
![]() ![]() |
|
Lo-Fi Version | Time is now: 21st May 2013 - 03:52 PM |