AJAX, Javascript or JQuery Slot Machine like menu

Hi Experts,

I am trying to re-design the following site using ajax, javascript or JQuery. I am looking for help with 2 aspects.

1. How can I create a menu using JQuery or AJAX that looks the same as the example site?
2. Can you point me in the right direction with regards to getting the content of each page load in a similar way as the example site?

Example Site: http://goo.gl/JWiqU

Looking forward to your response.
LVL 21
Hendrik WieseInformation Security ManagerAsked:
Who is Participating?
 
mrGreenConnect With a Mentor Commented:
Hi,

if you download the jQuery quickie: Slot machine navigation zip file, open it up and look in the images folder, you'll see buttons.png

open the image and youll see that the top half is the menu that is displayed normally and the bottom half is what slide over the top on mouse over.

So, the first thing you need to do is make an equivalent image for your menu.

Next you'll need to alter the html and css to suite your image.

What you could do is get a copy of the example on the site working and then replace buttons.png with your own version for your menu.

You can then experiment with the css to get it working for your version. buttons.png height is 150px, in the css you'll see the height for <ul> and <li> is 75px, the actual height of the menu, you'll need to change this. 75 is used in the javascript code in 2 places  as well:

"px " + $(this).data("newYpos") * 75 + "px"

You'll need to set that to whatever height you are using.

You'll also need to set the backgoround position for each menu item eg:

.navigation li a.marcofolio { background-position:0 0; }
2      .navigation li a.rss { background-position:-200px 0;  }
3      .navigation li a.twitter { background-position:-400px 0; }
4      .navigation li a.jquery { background-position:-600px 0; }


in his version each menu item is 200px wide.

Let me know how you get on it should be easy enough to customise this script.





0
 
Gurvinder Pal SinghCommented:
which browser is required for this site? Its not opening in IE8 and FF2
0
 
Hendrik WieseInformation Security ManagerAuthor Commented:
Firefox and IE works fine on my side. I have shortened the URL but you can access it directly at: www.wix.com/hennie79gmailcom/TWALA
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
Gurvinder Pal SinghCommented:
I tried this url only
0
 
Hendrik WieseInformation Security ManagerAuthor Commented:
are you still not able to open it?
0
 
Gurvinder Pal SinghCommented:
its showing me 'Loading' for last 5 minutes
0
 
Hendrik WieseInformation Security ManagerAuthor Commented:
It's very quick on my side. Please note that the current website is a flash site, so you would need to have flash player installed for your browser
0
 
Gurvinder Pal SinghCommented:
Okay, i guess i don't have flash on my browser.
Can you post a pic which can explain the working of the menu?
0
 
Hendrik WieseInformation Security ManagerAuthor Commented:
Please see if you can open the following link, as the menu is very similar: http://osc4.template-help.com/wt_28854/menu.swf?button=1

0
 
Gurvinder Pal SinghCommented:
Yes, i can see. Let me see what i can do
0
 
Kim WalkerWeb Programmer/TechnicianCommented:
It looks like you're trying to mimic flash. This is what I would do, I'm sure there are lots of other ways to do it, too.

You don't need JQuery nor Ajax.

Create your menu as an un-ordered list and set the css for the list items to display: inline with a 1px or so margin. The list items should appear side-by-side as menu tabs.

Include all of your pages in different divs on a single html page but set display: none to hide all but the first page div.

Set the onclick or onmouseup event on each tab of your menu to hide all the page divs then unhide the page div associated with that menu tab. The same onclick or onmouseup function can change the background color of the menu tab.

I've tried to post the code in here several times, but it just disappears. Here's a link to my example.
0
 
Hendrik WieseInformation Security ManagerAuthor Commented:
Dear xmediaman,

I had a look at your example and it does not look like the example at all. Am I missing something?
0
 
Kim WalkerWeb Programmer/TechnicianCommented:
I think I totally missed the point. I just noticed the "slot machine" reference in the title. I'm not sure you can replicate that type of animation in javascript unless the viewer has a really fast computer. I'm anxious to see what gurvinder372 comes up with.
0
 
Hendrik WieseInformation Security ManagerAuthor Commented:
Hi gurvinder372,

Did you manage to get anything on this?

Thanks in advance!!!
0
 
leakim971Connect With a Mentor PluritechnicianCommented:
0
 
Hendrik WieseInformation Security ManagerAuthor Commented:
Dear Leakim971,

Thank you for your comment, I have already been to that link (Query-quickie-Slot-machine-navigation) but not sure how I can change it to look like my example site http://goo.gl/JWiqU 

Any other suggestions would be greatly appreciated.

Thanks!!!
0
 
Michel PlungjanIT ExpertCommented:
You can animate with the jRumble or vibrate plugins

http://plugins.jquery.com/plugin-tags/vibrate
0
 
Gurvinder Pal SinghCommented:
@HendrikWiese: Sorry, i am not able to come up with anything on this.
I guess @leak's solution is the best you can go for
0
 
Michel PlungjanConnect With a Mentor IT ExpertCommented:
Just a few pointers:

1: Ajax is Asynchronous JavaScript and XML and has to do with fetching new data without reloading the page using Javascript.
2: jQuery is a Javascript framework, written in JavaScript

So Ajax does nothing for the rolling of buttons, jQuery has some plugins that manipulate the CSS to show animations which is what plain JS would need to do too.
0
 
Hendrik WieseInformation Security ManagerAuthor Commented:
Hi Experts,

As mentioned I have already looked at the link posted by Leakim971 prior to submitting this question. Will any of you be able to modify the code on the link posted by Leak to give me the desired effect??

Please this would be much appreciated.

Thanks!!!
0
 
Hendrik WieseInformation Security ManagerAuthor Commented:
Did not receive a complete solution. So I used completely new buttons. But thanks for the response.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.