should I use php, but people say it use DOM so the browser know where my posisition is
I know a little about php, but what the hell DOM is..???
example on attachments
| SitePoint Sponsor |
should I use php, but people say it use DOM so the browser know where my posisition is
I know a little about php, but what the hell DOM is..???
example on attachments


PHP generates the output for the css to style and so would make no difference to dreating the navbar.
DOM is Document Object Model and can be manipulated using Javascript.
jQuery and Mootools are very common ways of using Javascript, have a look at them.
The other thing to look at is CSS,
http://www.pmob.co.uk/temp/tabmenu_mine2.htm#
http://www.pmob.co.uk/temp/tabexample4.htm
view the page source to see the coding.
and for DOM:
http://www.w3.org/DOM/
http://en.wikipedia.org/wiki/Document_Object_Model
Welcome to SitePoint![]()
Mike Swiffin - Community Team Leader
Only a woman can read between the lines of a one word answer.....
I started out with nothing... and still got most of it left!
thx spike
so its really must be php,
and about DOM its only showing model of our html isnt? its really make me confuse I always think it was programming language![]()


no, php is just one way of generating the HTML required. You could just write it out.
The actual nav tabs are:
How you get to that is up to you, HTML, PHP, ASP or whatever.Code:<div id="tab"><a class="current" href="#">Home</a> <a href="#">About us</a> <a href="#">Contact</a> <a href="#">links </a></div>
Mike Swiffin - Community Team Leader
Only a woman can read between the lines of a one word answer.....
I started out with nothing... and still got most of it left!

CSS. Get a wordpress template like those nav buttons, look at the code, and modify it with yours.
█ Game Website Builder - Start Your Own Money Making Game Website
█ Blogging For Money - Learn Profit Blogging
█ Web Traffic Academy - Learn How To Get More Web Traffic
Bookmarks