tennis8668
New member
Wow, I haven't visited the online Pokemon community in a while. However, I do remember the CoD member base to be more knowledgeable with javascript than most other pokemon forums, so I have come here to request assistance.
I am currently building a website primarily focusing on iPhone games, and I need help with the splash page.
My design idea is for the page to simulate the unlock screen UI on iPhones and iPod Touches. You know, where you have to slide the arrow to unlock it? So I'm trying to simulate this with scriptaculous (http://script.aculo.us) to get a visitor to slide the gray piece to enter the main site, just like the iPhone unlocks when the gray thing is slid all the way to the right. It's definitely doable but I do not know enough about javascript to write my needed script correctly.
I have already uploaded all of the pieces of the iPhone screen when it is locked necessary, and I have the image of the bar that says "slide to unlock", as well as an image of the individual gray sliding piece. These are the two script functions one needs to use to complete this task:
http://github.com/madrobby/scriptaculous/wikis/draggable
http://github.com/madrobby/scriptaculous/wikis/droppables
If you scroll down on the second link, you will see a demo where a small square can be dragged freely on the page, and when it hovers over a larger box, the box reacts, and when released over this box, the box reacts differently.
This is essentially what I need to do; However, I need to limit the sliding gray piece to only horizontal movement (you can't drag it off the "slide to unlock" track on the iPhone), and the horizontal movement must be limited to a certain area, because obviously the gray sliding piece can't escape the "slide to unlock track" by going too far left or right either.
If I have you completely confused, this is a picture of the sliding track thingy, on my currently empty website:
http://iphonegamingnetwork.com/media/slidetoenter.png
The gray piece on the left is the "gray sliding piece" and the entire image is the sliding track I'm referring too.
Obviously I would need to make the gray piece it's own image (which I have done here) and make the sliding track an image without the gray piece, which I can do in a minute on Photoshop.
However, from here I am pretty much lost. I know the gray piece has to be it's own div or something for script.aculo.us to work or something, but can someone please help me whip up a code like the one found following the demo on the second page and help me get this to work?
All posts are appreciated :)
Thanks, tennis8668
I am currently building a website primarily focusing on iPhone games, and I need help with the splash page.
My design idea is for the page to simulate the unlock screen UI on iPhones and iPod Touches. You know, where you have to slide the arrow to unlock it? So I'm trying to simulate this with scriptaculous (http://script.aculo.us) to get a visitor to slide the gray piece to enter the main site, just like the iPhone unlocks when the gray thing is slid all the way to the right. It's definitely doable but I do not know enough about javascript to write my needed script correctly.
I have already uploaded all of the pieces of the iPhone screen when it is locked necessary, and I have the image of the bar that says "slide to unlock", as well as an image of the individual gray sliding piece. These are the two script functions one needs to use to complete this task:
http://github.com/madrobby/scriptaculous/wikis/draggable
http://github.com/madrobby/scriptaculous/wikis/droppables
If you scroll down on the second link, you will see a demo where a small square can be dragged freely on the page, and when it hovers over a larger box, the box reacts, and when released over this box, the box reacts differently.
This is essentially what I need to do; However, I need to limit the sliding gray piece to only horizontal movement (you can't drag it off the "slide to unlock" track on the iPhone), and the horizontal movement must be limited to a certain area, because obviously the gray sliding piece can't escape the "slide to unlock track" by going too far left or right either.
If I have you completely confused, this is a picture of the sliding track thingy, on my currently empty website:
http://iphonegamingnetwork.com/media/slidetoenter.png
The gray piece on the left is the "gray sliding piece" and the entire image is the sliding track I'm referring too.
Obviously I would need to make the gray piece it's own image (which I have done here) and make the sliding track an image without the gray piece, which I can do in a minute on Photoshop.
However, from here I am pretty much lost. I know the gray piece has to be it's own div or something for script.aculo.us to work or something, but can someone please help me whip up a code like the one found following the demo on the second page and help me get this to work?
All posts are appreciated :)
Thanks, tennis8668