stirlingit
asked on
JavaScript & CSS Tab issue on PHP site
Hello,
I am implementing the following CSS tab system:
http://www.my-html-codes.com/javascript-tabs-html-5-css3
However, I would like to use a URL variable to change the tab that should be displayed on page reload.
i.e. http://www.testsite.com/?tab=2
Would default to the 2nd tab being open rather than the first.
The site is running with PHP as well, though I would prefer a pure JavaScript option (and my skills are really rusty).
I have tried to get in touch with the Author but they are not responding.
Thanks in advance.
I am implementing the following CSS tab system:
http://www.my-html-codes.com/javascript-tabs-html-5-css3
However, I would like to use a URL variable to change the tab that should be displayed on page reload.
i.e. http://www.testsite.com/?tab=2
Would default to the 2nd tab being open rather than the first.
The site is running with PHP as well, though I would prefer a pure JavaScript option (and my skills are really rusty).
I have tried to get in touch with the Author but they are not responding.
Thanks in advance.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Managed to get a friend to re-write the main code that meant that I only needed to add URL hash tags rather that adding additional script to the main page.
ASKER
As ideally, I would like to use form.php?tab=3 if the user then submits form three.