April 8, 201214 yr Hello, so im just doing a mock site. I want to have it where there is a small header like 30px which has some navigation on it. These navigation buttons show different pages but i dont want it to load new pages but just change the tab. But the whole page wish to be a tab. Any help if you know what i mean? EDIT: Like this, but with tabs... http://wpbase.comze.com/?page_id=2 Edited April 8, 201214 yr by Lovelock
April 8, 201214 yr Author Okay, ive found a tutorial for this so have this working. However when using php include, the file i have included isnt showing in the tab... any ideas? The tabs are shown via javascript, can i use php include within javascript? I have made a jsfiddle here: http://jsfiddle.net/5DQAU/2/ It appears that nothing inside the tabs is showing unless its plain text... Edited April 8, 201214 yr by Lovelock
April 9, 201214 yr $("#content div").hide(); You're hiding ALL divs within #content with this. $('#' + $(this).attr('title')).fadeIn(); Over here you're only showing the outer divs, which means the divs inside are still hidden. By replacing the two lines which hide the divs by this: $("#content>div").hide(); It works because the content never gets hidden. Edited April 9, 201214 yr by sebdd
April 9, 201214 yr Author Thankyou for the reply, it now shows... but is all the included file has been spread out... heres a direct link: (click on online store tab) http://www.vinylpenguin.co.uk/new.php Edited April 9, 201214 yr by Lovelock
April 9, 201214 yr Author Sorted it out. The content div had a fixed height causing the file to be stretched across it. (didnt know that was possible but seems to have happened)
Create an account or sign in to comment