Jump to content

Hello,

 

i have to make a website as final assigment with a buddy,  and we tried our best to make the overwatch website but one thing i don't understand how they made this.

how can i make it so that our website also can switch between overview and story? thats done with javascript right?

 

Thanks

Screenshot_1.png

Screenshot_2.png

Link to comment
https://linustechtips.com/topic/672858-need-help-with-javascript/
Share on other sites

Link to post
Share on other sites

https://jsfiddle.net/z7tuexue/

 

There are different approaches, I did so when you active one tab you first hide all other tabs and then display tab you clicked, but you could remeber active tab, and hide it.

It is all easier to do with jquery as it has some animations and you can bind events, change style on a collections easier.

Link to post
Share on other sites

1 minute ago, Mr_KoKa said:

https://jsfiddle.net/z7tuexue/

 

There are different approaches, I did so when you active one tab you first hide all other tabs and then display tab you clicked, but you could remeber active tab, and hide it.

It is all easier to do with jquery as it has some animations and you can bind events, change style on a collections easier.

 

Thanks for showing how that is done!

 

i have to say it is my first year in college for programming, and the term jquery means nothing to me, but i will do some research!! :)

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×